_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c163100
train
// NewIdentityManager returns an initialized IdentityManager.
{ "resource": "" }
c163101
train
// Add inserts the identity into the identity manager. If the identity is // already in the identity manager, the reference count for the identity is // incremented.
{ "resource": "" }
c163102
train
// RemoveOldAddNew removes old from the identity manager and inserts new // into the IdentityManager.
{ "resource": "" }
c163103
train
// Remove deletes the identity from the identity manager. If the identity is // already in the identity manager, the reference count for the identity is // decremented. If the identity is not in the cache, this is a no-op. If the // ref count becomes zero, the identity is removed from the cache.
{ "resource": "" }
c163104
train
// GetIdentityModels returns the API representation of the IdentityManager.
{ "resource": "" }
c163105
train
// NewELF returns a new object from the specified reader. // // The ELF binary is expected to start at position 0 in the specified reader.
{ "resource": "" }
c163106
train
// Open an ELF file from the specified path.
{ "resource": "" }
c163107
train
// Close closes the ELF. If the File was created using NewELF directly instead // of Open, Close has no effect.
{ "resource": "" }
c163108
train
// CreateCustomResourceDefinitions creates our CRD objects in the kubernetes // cluster
{ "resource": "" }
c163109
train
// createCNPCRD creates and updates the CiliumNetworkPolicies CRD. It should be called // on agent startup but is idempotent and safe to call again.
{ "resource": "" }
c163110
train
// createCEPCRD creates and updates the CiliumEndpoint CRD. It should be called // on agent startup but is idempotent and safe to call again.
{ "resource": "" }
c163111
train
// UpdateController updates the controller with the specified name with the // provided list of parameters in endpoint's list of controllers.
{ "resource": "" }
c163112
train
// SetDesiredIngressPolicyEnabled sets Endpoint's ingress policy enforcement // configuration to the specified value. The endpoint's mutex must not be held.
{ "resource": "" }
c163113
train
// SetDesiredEgressPolicyEnabled sets Endpoint's egress policy enforcement // configuration to the specified value. The endpoint's mutex must not be held.
{ "resource": "" }
c163114
train
// WaitForProxyCompletions blocks until all proxy changes have been completed. // Called with BuildMutex held.
{ "resource": "" }
c163115
train
// NewEndpointWithState creates a new endpoint useful for testing purposes
{ "resource": "" }
c163116
train
// NewEndpointFromChangeModel creates a new endpoint from a request
{ "resource": "" }
c163117
train
// GetModelRLocked returns the API model of endpoint e. // e.mutex must be RLocked.
{ "resource": "" }
c163118
train
// GetHealthModel returns the endpoint's health object. // // Must be called with e.Mutex locked.
{ "resource": "" }
c163119
train
// GetHealthModel returns the endpoint's health object.
{ "resource": "" }
c163120
train
// GetModel returns the API model of endpoint e.
{ "resource": "" }
c163121
train
// policyStatus returns the endpoint's policy status // // Must be called with e.Mutex locked.
{ "resource": "" }
c163122
train
// GetLabels returns the labels as slice
{ "resource": "" }
c163123
train
// GetK8sPodLabels returns all labels that exist in the endpoint and were // derived from k8s pod.
{ "resource": "" }
c163124
train
// GetLabelsSHA returns the SHA of labels
{ "resource": "" }
c163125
train
// GetOpLabels returns the labels as slice
{ "resource": "" }
c163126
train
// ConntrackName returns the name suffix for the endpoint-specific bpf // conntrack map, which is a 5-digit endpoint ID, or "global" when the // global map should be used. // Must be called with the endpoint locked.
{ "resource": "" }
c163127
train
// String returns endpoint on a JSON format.
{ "resource": "" }
c163128
train
// applyOptsLocked applies the given options to the endpoint's options and // returns true if there were any options changed.
{ "resource": "" }
c163129
train
// SetDefaultOpts initializes the endpoint Options and configures the specified // options.
{ "resource": "" }
c163130
train
// ConntrackLocalLocked is the same as ConntrackLocal, but assumes that the // endpoint is already locked for reading.
{ "resource": "" }
c163131
train
// base64 returns the endpoint in a base64 format.
{ "resource": "" }
c163132
train
// parseBase64ToEndpoint parses the endpoint stored in the given base64 string.
{ "resource": "" }
c163133
train
// FilterEPDir returns a list of directories' names that possible belong to an endpoint.
{ "resource": "" }
c163134
train
// LogStatusOKLocked will log an OK message of the given status type with the // given msg string. // must be called with endpoint.Mutex held
{ "resource": "" }
c163135
train
// logStatusLocked logs a status message // must be called with endpoint.Mutex held
{ "resource": "" }
c163136
train
// HasLabels returns whether endpoint e contains all labels l. Will return 'false' // if any label in l is not in the endpoint's labels.
{ "resource": "" }
c163137
train
// hasLabelsRLocked returns whether endpoint e contains all labels l. Will // return 'false' if any label in l is not in the endpoint's labels. // e.Mutex must be RLocked
{ "resource": "" }
c163138
train
// RegenerateWait should only be called when endpoint's state has successfully // been changed to "waiting-to-regenerate"
{ "resource": "" }
c163139
train
// SetContainerName modifies the endpoint's container name
{ "resource": "" }
c163140
train
// GetK8sNamespace returns the name of the pod if the endpoint represents a // Kubernetes pod
{ "resource": "" }
c163141
train
// SetK8sNamespace modifies the endpoint's pod name
{ "resource": "" }
c163142
train
// GetK8sPodName returns the name of the pod if the endpoint represents a // Kubernetes pod
{ "resource": "" }
c163143
train
// HumanStringLocked returns the endpoint's most human readable identifier as string
{ "resource": "" }
c163144
train
// SetK8sPodName modifies the endpoint's pod name
{ "resource": "" }
c163145
train
// SetContainerID modifies the endpoint's container ID
{ "resource": "" }
c163146
train
// GetContainerID returns the endpoint's container ID
{ "resource": "" }
c163147
train
// GetShortContainerID returns the endpoint's shortened container ID
{ "resource": "" }
c163148
train
// SetDockerEndpointID modifies the endpoint's Docker Endpoint ID
{ "resource": "" }
c163149
train
// SetDockerNetworkID modifies the endpoint's Docker Endpoint ID
{ "resource": "" }
c163150
train
// GetDockerNetworkID returns the endpoint's Docker Endpoint ID
{ "resource": "" }
c163151
train
// SetDatapathMapIDAndPinMapLocked modifies the endpoint's datapath map ID
{ "resource": "" }
c163152
train
// SetStateLocked modifies the endpoint's state // endpoint.Mutex must be held // Returns true only if endpoints state was changed as requested
{ "resource": "" }
c163153
train
// BuilderSetStateLocked modifies the endpoint's state // endpoint.Mutex must be held // endpoint BuildMutex must be held!
{ "resource": "" }
c163154
train
// OnProxyPolicyUpdate is a callback used to update the Endpoint's // proxyPolicyRevision when the specified revision has been applied in the // proxy.
{ "resource": "" }
c163155
train
// getProxyStatisticsLocked gets the ProxyStatistics for the flows with the // given characteristics, or adds a new one and returns it. // Must be called with e.proxyStatisticsMutex held.
{ "resource": "" }
c163156
train
// UpdateProxyStatistics updates the Endpoint's proxy statistics to account // for a new observed flow with the given characteristics.
{ "resource": "" }
c163157
train
// APICanModify determines whether API requests from a user are allowed to // modify this endpoint.
{ "resource": "" }
c163158
train
// ModifyIdentityLabels changes the custom and orchestration identity labels of an endpoint. // Labels can be added or deleted. If a label change is performed, the // endpoint will receive a new identity and will be regenerated. Both of these // operations will happen in the background.
{ "resource": "" }
c163159
train
// UpdateLabels is called to update the labels of an endpoint. Calls to this // function do not necessarily mean that the labels actually changed. The // container runtime layer will periodically synchronize labels. // // If a net label changed was performed, the endpoint will receive a new // identity and will be rege...
{ "resource": "" }
c163160
train
// Must be called with e.Mutex NOT held.
{ "resource": "" }
c163161
train
// SetPolicyRevision sets the endpoint's policy revision with the given // revision.
{ "resource": "" }
c163162
train
// setPolicyRevision sets the endpoint's policy revision with the given // revision.
{ "resource": "" }
c163163
train
// cleanPolicySignals closes and removes all policy revision signals.
{ "resource": "" }
c163164
train
// IPs returns the slice of valid IPs for this endpoint.
{ "resource": "" }
c163165
train
// IsDisconnecting returns true if the endpoint is being disconnected or // already disconnected // // This function must be called after re-aquiring the endpoint mutex to verify // that the endpoint has not been removed in the meantime. // // endpoint.mutex must be held in read mode at least
{ "resource": "" }
c163166
train
// PinDatapathMap retrieves a file descriptor from the map ID from the API call // and pins the corresponding map into the BPF file system.
{ "resource": "" }
c163167
train
// SyncEndpointHeaderFile it bumps the current DNS History information for the // endpoint in the lxc_config.h file.
{ "resource": "" }
c163168
train
// PortNetworkPolicyRuleLess reports whether the r1 rule should sort before // the r2 rule. // L3-L4-only rules are less than L7 rules.
{ "resource": "" }
c163169
train
// HTTPNetworkPolicyRuleLess reports whether the r1 rule should sort before the // r2 rule.
{ "resource": "" }
c163170
train
// HeaderMatcherLess reports whether the m1 matcher should sort before the m2 // matcher.
{ "resource": "" }
c163171
train
// String converts the key into a human readable string format
{ "resource": "" }
c163172
train
// Direction gets the direction in human readable string format
{ "resource": "" }
c163173
train
// String converts the value into a human readable string format
{ "resource": "" }
c163174
train
// updatePrometheusMetrics checks the metricsmap key value pair // and determines which prometheus metrics along with respective labels // need to be updated.
{ "resource": "" }
c163175
train
// sanitize for FQDNSelector is a little wonky. While we do more processing // when using MatchName the basic requirement is that is a valid regexp. We // test that it can compile here.
{ "resource": "" }
c163176
train
// Sanitize checks that the matchName in the portRule can be compiled as a // regex. It does not check that a DNS name is a valid DNS name.
{ "resource": "" }
c163177
train
// GetAsEndpointSelectors will return a single EntityNone if any // toFQDNs rules exist, and a nil slice otherwise.
{ "resource": "" }
c163178
train
// GetDestinationEndpointSelectors returns a slice of endpoints selectors // covering all L3 destination selectors of the egress rule
{ "resource": "" }
c163179
train
// IsLabelBased returns true whether the L3 destination endpoints are selected // based on labels, i.e. either by setting ToEndpoints or ToEntities, or not // setting any To field.
{ "resource": "" }
c163180
train
// CreateDerivative will return a new rule based on the data gathered by the // rules that creates a new derivative policy. // In the case of ToGroups will call outside using the groups callback and this // function can take a bit of time.
{ "resource": "" }
c163181
train
// NewKey returns an Key based on the provided IP address and mask. The address // family is automatically detected
{ "resource": "" }
c163182
train
// Delete removes a key from the ipcache BPF map
{ "resource": "" }
c163183
train
// GetMaxPrefixLengths determines how many unique prefix lengths are supported // simultaneously based on the underlying BPF map type in use.
{ "resource": "" }
c163184
train
// NewGetIdentityEndpoints creates a new http.Handler for the get identity endpoints operation
{ "resource": "" }
c163185
train
// Validate validates this endpoint configuration spec
{ "resource": "" }
c163186
train
// GetPrefix returns the first key which matches the prefix and its value.
{ "resource": "" }
c163187
train
// ListPrefix returns the list of keys matching the prefix
{ "resource": "" }
c163188
train
// Update creates or updates a key value pair
{ "resource": "" }
c163189
train
// Set sets the value of a key
{ "resource": "" }
c163190
train
// DeletePrefix deletes all keys matching a prefix
{ "resource": "" }
c163191
train
// NewDeleteServiceID creates a new http.Handler for the delete service ID operation
{ "resource": "" }
c163192
train
// checkPrefixlen checks whether it's valid to manipulate elements in the map // with the specified key. If it's unsupported, it returns an error.
{ "resource": "" }
c163193
train
// InsertCIDR inserts an entry to 'cm' with key 'cidr'. Value is currently not // used.
{ "resource": "" }
c163194
train
// DeleteCIDR deletes an entry from 'cm' with key 'cidr'.
{ "resource": "" }
c163195
train
// CIDRExists returns true if 'cidr' exists in map 'cm'
{ "resource": "" }
c163196
train
// CIDRNext returns next CIDR entry in map 'cm'
{ "resource": "" }
c163197
train
// CIDRDump walks map 'cm' and dumps all CIDR entries
{ "resource": "" }
c163198
train
// Close closes the FD of the given CIDRMap
{ "resource": "" }
c163199
train
// OpenMap opens a new CIDRMap. 'bool' returns 'true' if the map was // created, and 'false' if the map already existed. prefixdyn denotes // whether element's prefixlen can vary and we thus need to use a LPM // trie instead of hash table.
{ "resource": "" }