_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c163000
train
// LocalMaps returns a slice of CT maps for the endpoint, which are local to // the endpoint and not shared with other endpoints. If ipv4 or ipv6 are false, // the maps for that protocol will not be returned. // // The returned maps are not yet opened.
{ "resource": "" }
c163001
train
// WriteBPFMacros writes the map names for conntrack maps into the specified // writer, defining usage of the global map or local maps depending on whether // the specified CtEndpoint is nil.
{ "resource": "" }
c163002
train
// WithPayload adds the payload to the patch prefilter o k response
{ "resource": "" }
c163003
train
// WithPayload adds the payload to the patch prefilter invalid c Id r response
{ "resource": "" }
c163004
train
// WithPayload adds the payload to the patch prefilter failure response
{ "resource": "" }
c163005
train
// NewGetEndpointIDLog creates a new http.Handler for the get endpoint ID log operation
{ "resource": "" }
c163006
train
// Trace is used to trace kvstore debug messages
{ "resource": "" }
c163007
train
// InitDefaultPrefix initializes the node address and allocation prefixes with // default values derived from the system. device can be set to the primary // network device of the system in which case the first address with global // scope will be regarded as the system's node address.
{ "resource": "" }
c163008
train
// GetIPv4ClusterRange returns the IPv4 prefix of the cluster
{ "resource": "" }
c163009
train
// GetIPv6AllocRange returns the IPv6 allocation prefix of this node
{ "resource": "" }
c163010
train
// SetIPv6NodeRange sets the IPv6 address pool to be used on this node
{ "resource": "" }
c163011
train
// AutoComplete completes the parts of addressing that can be auto derived
{ "resource": "" }
c163012
train
// ValidatePostInit validates the entire addressing setup and completes it as // required
{ "resource": "" }
c163013
train
// IsHostIPv4 returns true if the IP specified is a host IP
{ "resource": "" }
c163014
train
// IsHostIPv6 returns true if the IP specified is a host IP
{ "resource": "" }
c163015
train
// GetNodeAddressing returns the NodeAddressing model for the local IPs.
{ "resource": "" }
c163016
train
// getCiliumHostIPs returns the Cilium IPv4 gateway and router IPv6 address from // the node_config.h file if is present; or by deriving it from // defaults.HostDevice interface, on which only the IPv4 is possible to derive.
{ "resource": "" }
c163017
train
// AcquireID acquires a service ID
{ "resource": "" }
c163018
train
// GetID returns the L3n4AddrID that belongs to the given id.
{ "resource": "" }
c163019
train
// DeleteID deletes the L3n4AddrID belonging to the given id from the kvstore.
{ "resource": "" }
c163020
train
// LookupBackendID looks up already allocated backend ID for the given backend // addr. If such cannot be found, returns an error.
{ "resource": "" }
c163021
train
// Reset sets the timestamp to the current time
{ "resource": "" }
c163022
train
// NewDriver creates and returns a new Driver for the given API URL. // If url is nil then use SockPath provided by CILIUM_SOCK // or the cilium default SockPath
{ "resource": "" }
c163023
train
// Listen listens for docker requests on a particular set of endpoints on the given // socket path.
{ "resource": "" }
c163024
train
// getPolicy returns a reference to the SelectorPolicy that is cached, and // the revision for that policy. // // Users should treat the result as immutable state that MUST NOT be modified.
{ "resource": "" }
c163025
train
// setPolicy updates the reference to the SelectorPolicy that is cached.
{ "resource": "" }
c163026
train
// Consume returns the EndpointPolicy that defines connectivity policy to // Identities in the specified cache. // // This denotes that a particular endpoint is 'consuming' the policy from the // selector policy cache.
{ "resource": "" }
c163027
train
// WithPayload adds the payload to the get healthz failed response
{ "resource": "" }
c163028
train
// WithPayload adds the payload to the get endpoint Id healthz o k response
{ "resource": "" }
c163029
train
// Run starts the daemon.
{ "resource": "" }
c163030
train
// Restart stops the launcher which will trigger a rerun.
{ "resource": "" }
c163031
train
// SetTarget sets the Launcher target.
{ "resource": "" }
c163032
train
// GetTarget returns the Launcher target.
{ "resource": "" }
c163033
train
// SetArgs sets the Launcher arg.
{ "resource": "" }
c163034
train
// GetArgs returns the Launcher arg.
{ "resource": "" }
c163035
train
// setProcess sets the internal process with the given process.
{ "resource": "" }
c163036
train
// GetProcess returns the internal process.
{ "resource": "" }
c163037
train
// setStdout sets the stdout pipe.
{ "resource": "" }
c163038
train
// GetStdout gets the stdout pipe.
{ "resource": "" }
c163039
train
// GetPolicyLabelsv1 extracts the name of np. It uses the name from the Cilium // annotation if present. If the policy's annotations do not contain // the Cilium annotation, the policy's name field is used instead.
{ "resource": "" }
c163040
train
// parsePorts converts list of K8s NetworkPolicyPorts to Cilium PortRules.
{ "resource": "" }
c163041
train
// openMonitorSock attempts to open a version specific monitor socket It // returns a connection, with a version, or an error.
{ "resource": "" }
c163042
train
// consumeMonitorEvents handles and prints events on a monitor connection. It // calls getMonitorParsed to construct a monitor-version appropraite parser. // It closes conn on return, and returns on error, including io.EOF
{ "resource": "" }
c163043
train
// getMonitorParser constructs and returns an eventParserFunc. It is // appropriate for the monitor API version passed in.
{ "resource": "" }
c163044
train
// Validate validates this IP a m status
{ "resource": "" }
c163045
train
// DeepCopy makes a new copy of the received IntCounter.
{ "resource": "" }
c163046
train
// Add increments the reference count for the specified integer key.
{ "resource": "" }
c163047
train
// Delete decrements the reference count for the specified integer key.
{ "resource": "" }
c163048
train
// ToBPFData returns the keys as a slice, sorted from high to low.
{ "resource": "" }
c163049
train
// NewPatchPrefilter creates a new http.Handler for the patch prefilter operation
{ "resource": "" }
c163050
train
// Validate validates this label configuration status
{ "resource": "" }
c163051
train
// NewMap creates a new Map instance - object representing a BPF map
{ "resource": "" }
c163052
train
// scheduleErrorResolver schedules a periodic resolver controller that scans // all BPF map caches for unresolved errors and attempts to resolve them. On // error of resolution, the controller is-rescheduled in an expedited manner // with an exponential back-off. // // m.lock must be held for writing
{ "resource": "" }
c163053
train
// Path returns the path to this map on the filesystem.
{ "resource": "" }
c163054
train
// DeepEquals compares the current map against another map to see that the // attributes of the two maps are the same.
{ "resource": "" }
c163055
train
// EndParallelMode ends the parallel mode of a map
{ "resource": "" }
c163056
train
// DumpWithCallback iterates over the Map and calls the given callback // function on each iteration. That callback function is receiving the // actual key and value.
{ "resource": "" }
c163057
train
// DumpWithCallbackIfExists is similar to DumpWithCallback, but returns earlier // if the given map does not exist.
{ "resource": "" }
c163058
train
// deleteCacheEntry evaluates the specified error, if nil the map key is // removed from the cache to indicate successful deletion. If non-nil, the map // key entry in the cache is updated to indicate deletion failure with the // specified error. // // Caller must hold m.lock for writing
{ "resource": "" }
c163059
train
// scopedLogger returns a logger scoped for the map. m.lock must be held.
{ "resource": "" }
c163060
train
// DeleteAll deletes all entries of a map by traversing the map and deleting individual // entries. Note that if entries are added while the taversal is in progress, // such entries may survive the deletion process.
{ "resource": "" }
c163061
train
//GetNextKey returns the next key in the Map after key.
{ "resource": "" }
c163062
train
// ConvertKeyValue converts key and value from bytes to given Golang struct pointers.
{ "resource": "" }
c163063
train
// GetModel returns a BPF map in the representation served via the API
{ "resource": "" }
c163064
train
// agentPipeReader reads agent events from the agentPipe and distributes to all listeners
{ "resource": "" }
c163065
train
// NewMonitor creates a Monitor, and starts client connection handling and agent event // handling. // Note that the perf buffer reader is started only when listeners are // connected.
{ "resource": "" }
c163066
train
// removeListener deletes the MonitorListener from the list, closes its queue, and // stops perfReader if this is the last MonitorListener
{ "resource": "" }
c163067
train
// perfEventReader is a goroutine that reads events from the perf buffer. It // will exit when stopCtx is done. Note, however, that it will block in the // Poll call but assumes enough events are generated that these blocks are // short.
{ "resource": "" }
c163068
train
// dumpStat prints out the monitor status in JSON.
{ "resource": "" }
c163069
train
// connectionHandler1_0 handles all the incoming connections and sets up the // listener objects. It will block on Accept, but expects the caller to close // server, inducing a return.
{ "resource": "" }
c163070
train
// send enqueues the payload to all listeners.
{ "resource": "" }
c163071
train
// NewConfiguration returns a new MTU configuration. The MTU can be manually // specified, otherwise it will be automatically detected. if encapEnabled is // true, the MTU is adjusted to account for encapsulation overhead for all // routes involved in node to node communication.
{ "resource": "" }
c163072
train
// Insert inserts the endpoint into the global maps.
{ "resource": "" }
c163073
train
// Lookup looks up the endpoint by prefix id
{ "resource": "" }
c163074
train
// LookupCiliumID looks up endpoint by endpoint ID
{ "resource": "" }
c163075
train
// LookupContainerID looks up endpoint by Docker ID
{ "resource": "" }
c163076
train
// LookupIPv4 looks up endpoint by IPv4 address
{ "resource": "" }
c163077
train
// LookupIPv6 looks up endpoint by IPv6 address
{ "resource": "" }
c163078
train
// LookupIP looks up endpoint by IP address
{ "resource": "" }
c163079
train
// LookupPodName looks up endpoint by namespace + pod name
{ "resource": "" }
c163080
train
// Remove removes the endpoint from the global maps and releases the node-local // ID allocated for the endpoint. // Must be called with ep.Mutex.RLock held. Releasing of the ID of the endpoint // is done asynchronously. Once the ID of the endpoint is released, the returned // channel is closed.
{ "resource": "" }
c163081
train
// RemoveAll removes all endpoints from the global maps.
{ "resource": "" }
c163082
train
// lookupCiliumID looks up endpoint by endpoint ID
{ "resource": "" }
c163083
train
// UpdateReferences updates the mappings of various values to their corresponding // endpoints, such as ContainerID, Docker Container Name, Pod Name, etc.
{ "resource": "" }
c163084
train
// RegenerateAllEndpoints calls a SetStateLocked for each endpoint and // regenerates if state transaction is valid. During this process, the endpoint // list is locked and cannot be modified. // Returns a waiting group that can be used to know when all the endpoints are // regenerated.
{ "resource": "" }
c163085
train
// RegenerateEndpointSetSignalWhenEnqueued regenerates the endpoints represented // by endpointIDs. It signals to the provided WaitGroup when all of the endpoints // in said set have had regenerations queued up.
{ "resource": "" }
c163086
train
// HasGlobalCT returns true if the endpoints have a global CT, false otherwise.
{ "resource": "" }
c163087
train
// GetEndpoints returns a slice of all endpoints present in endpoint manager.
{ "resource": "" }
c163088
train
// AddEndpoint takes the prepared endpoint object and starts managing it.
{ "resource": "" }
c163089
train
// WaitForEndpointsAtPolicyRev waits for all endpoints which existed at the time // this function is called to be at a given policy revision. // New endpoints appearing while waiting are ignored.
{ "resource": "" }
c163090
train
// CallbackForEndpointsAtPolicyRev registers a callback on all endpoints that // exist when invoked. It is similar to WaitForEndpointsAtPolicyRevision but // each endpoint that reaches the desired revision calls 'done' independently. // The provided callback should not block and generally be lightweight.
{ "resource": "" }
c163091
train
// WithPayload adds the payload to the delete service Id failure response
{ "resource": "" }
c163092
train
// NewServer creates a new api cilium health server but does not configure it
{ "resource": "" }
c163093
train
// ConfigureAPI configures the API and handlers.
{ "resource": "" }
c163094
train
// Logf logs message either via defined user logger or via system one if no user logger is defined.
{ "resource": "" }
c163095
train
// Fatalf logs message either via defined user logger or via system one if no user logger is defined. // Exits with non-zero status after printing
{ "resource": "" }
c163096
train
// Listen creates the listeners for the server
{ "resource": "" }
c163097
train
// UnixListener returns the domain socket listener
{ "resource": "" }
c163098
train
// HTTPListener returns the http listener
{ "resource": "" }
c163099
train
// TLSListener returns the https listener
{ "resource": "" }