_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c163200 | train | // OpenMapElems is the same as OpenMap only with defined maxelem as argument. | {
"resource": ""
} | ||
c163201 | train | // Close closes the proxy socket and stops accepting new connections. | {
"resource": ""
} | ||
c163202 | train | // Enqueue queues a message to be written into the connection. | {
"resource": ""
} | ||
c163203 | train | // Close closes this connection.
// The connection on the other side of the proxy is closed after it is queued
// for closing or after proxyConnectionCloseTimeout. | {
"resource": ""
} | ||
c163204 | train | // WithTimeout adds the timeout to the get identity ID params | {
"resource": ""
} | ||
c163205 | train | // WithContext adds the context to the get identity ID params | {
"resource": ""
} | ||
c163206 | train | // WithHTTPClient adds the HTTPClient to the get identity ID params | {
"resource": ""
} | ||
c163207 | train | // WithID adds the id to the get identity ID params | {
"resource": ""
} | ||
c163208 | train | // newCiliumEndpoints returns a CiliumEndpoints | {
"resource": ""
} | ||
c163209 | train | // WithTimeout adds the timeout to the get endpoint ID log params | {
"resource": ""
} | ||
c163210 | train | // WithContext adds the context to the get endpoint ID log params | {
"resource": ""
} | ||
c163211 | train | // WithHTTPClient adds the HTTPClient to the get endpoint ID log params | {
"resource": ""
} | ||
c163212 | train | // WithID adds the id to the get endpoint ID log params | {
"resource": ""
} | ||
c163213 | train | // Dump dumps NAT entry to string. | {
"resource": ""
} | ||
c163214 | train | // ToHost converts NatEntry4 ports to host byte order. | {
"resource": ""
} | ||
c163215 | train | // PrimaryIP returns the primary IP address of the node. | {
"resource": ""
} | ||
c163216 | train | // HealthIP returns the IP address of the health endpoint for the node. | {
"resource": ""
} | ||
c163217 | train | // Addresses returns a map of the node's addresses -> "primary" bool | {
"resource": ""
} | ||
c163218 | train | // transformEndpointForDowngrade modifies the specified endpoint to populate
// deprecated fields so that when the endpoint is serialized, an older version
// of Cilium will understand the format. This allows safe downgrade from this
// version to an older version. | {
"resource": ""
} | ||
c163219 | train | // ReadEPsFromDirNames returns a mapping of endpoint ID to endpoint of endpoints
// from a list of directory names that can possible contain an endpoint. | {
"resource": ""
} | ||
c163220 | train | // Init initializes the internal modules information store of modules manager. | {
"resource": ""
} | ||
c163221 | train | // findModules checks whether the given kernel modules are loaded and also
// returns a slice with names of modules which are not loaded. | {
"resource": ""
} | ||
c163222 | train | // FindOrLoadModules checks whether the given kernel modules are loaded and
// tries to load those which are not. | {
"resource": ""
} | ||
c163223 | train | // DeferTerminationCleanupFunction will execute the given function `f` when the
// channel `ch` is closed.
// The given waitGroup will be added with a delta +1 and once the function
// `f` returns from its execution that same waitGroup will signalize function
// `f` is completed. | {
"resource": ""
} | ||
c163224 | train | // UpdateIdentities informs the policy package of all identity changes
// and also triggers policy updates. | {
"resource": ""
} | ||
c163225 | train | // PolicyAdd adds a slice of rules to the policy repository owned by the
// daemon. Eventual changes in policy rules are propagated to all locally
// managed endpoints. Returns the policy revision number of the repository after
// adding the rules into the repository, or an error if the updated policy
// was not able t... | {
"resource": ""
} | ||
c163226 | train | // PolicyDelete deletes the policy rules with the provided set of labels from
// the policy repository of the daemon.
// Returns the revision number and an error in case it was not possible to
// delete the policy. | {
"resource": ""
} | ||
c163227 | train | // getParser must be called with dissectLock held | {
"resource": ""
} | ||
c163228 | train | // Dissect parses and prints the provided data if dissect is set to true,
// otherwise the data is printed as HEX output | {
"resource": ""
} | ||
c163229 | train | // GetDissectSummary returns DissectSummary created from data | {
"resource": ""
} | ||
c163230 | train | // ipNetToLabel turns a CIDR into a Label object which can be used to create
// EndpointSelector objects. | {
"resource": ""
} | ||
c163231 | train | // IPStringToLabel parses a string and returns it as a CIDR label.
//
// If "IP" is not a valid IP address or CIDR Prefix, returns an error. | {
"resource": ""
} | ||
c163232 | train | // isInjectedWithIstioSidecarProxy returns whether the given pod has been
// injected by Istio with a sidecar proxy that is compatible with Cilium. | {
"resource": ""
} | ||
c163233 | train | // GetPodLabels returns the labels of a pod | {
"resource": ""
} | ||
c163234 | train | // Validate validates this identity endpoints | {
"resource": ""
} | ||
c163235 | train | // sumEndpoint returns the hash of the complete datapath for an endpoint.
// It does not change the underlying hash state. | {
"resource": ""
} | ||
c163236 | train | // RequiresOption returns true if the option requires the specified option `name`. | {
"resource": ""
} | ||
c163237 | train | // ValidateConfigurationMap validates a given configuration map based on the
// option library | {
"resource": ""
} | ||
c163238 | train | // GetImmutableModel returns the set of immutable options as a ConfigurationMap API model. | {
"resource": ""
} | ||
c163239 | train | // GetMutableModel returns the set of mutable options as a ConfigurationMap API model. | {
"resource": ""
} | ||
c163240 | train | // SetValidated sets the option `key` to the specified value. The caller is
// expected to have validated the input to this function. | {
"resource": ""
} | ||
c163241 | train | // SetBool sets the specified option to Enabled. | {
"resource": ""
} | ||
c163242 | train | // Validate validates a given configuration map based on the option library | {
"resource": ""
} | ||
c163243 | train | // enable enables the option `name` with all its dependencies | {
"resource": ""
} | ||
c163244 | train | // set enables the option `name` with all its dependencies, and sets the
// integer level of the option to `value`. | {
"resource": ""
} | ||
c163245 | train | // disable disables the option `name`. All options which depend on the option
// to be disabled will be disabled. Options which have previously been enabled
// as a dependency will not be automatically disabled. | {
"resource": ""
} | ||
c163246 | train | // ApplyValidated takes a configuration map and applies the changes. For an
// option which is changed, the `ChangedFunc` function is called with the
// `data` argument passed in as well. Returns the number of options changed if
// any.
//
// The caller is expected to have validated the configuration options prior to
/... | {
"resource": ""
} | ||
c163247 | train | // AppendPrefixInKey appends the given prefix to all the Key's of the map and the
// respective Labels' Key. | {
"resource": ""
} | ||
c163248 | train | // Equals returns true if the two Labels contain the same set of labels. | {
"resource": ""
} | ||
c163249 | train | // GetFromSource returns all labels that are from the given source. | {
"resource": ""
} | ||
c163250 | train | // Matches returns true if l matches the target | {
"resource": ""
} | ||
c163251 | train | // NewLabelsFromModel creates labels from string array. | {
"resource": ""
} | ||
c163252 | train | // NewSelectLabelArrayFromModel parses a slice of strings and converts them
// into an array of selecting labels, sorted by the key. | {
"resource": ""
} | ||
c163253 | train | // GetModel returns model with all the values of the labels. | {
"resource": ""
} | ||
c163254 | train | // SHA256Sum calculates l' internal SHA256Sum. For a particular set of labels is
// guarantee that it will always have the same SHA256Sum. | {
"resource": ""
} | ||
c163255 | train | // FormatForKVStore returns the label as a formatted string, ending in
// a semicolon
//
// DO NOT BREAK THE FORMAT OF THIS. THE RETURNED STRING IS USED AS
// PART OF THE KEY IN THE KEY-VALUE STORE.
//
// Non-pointer receiver allows this to be called on a value in a map. | {
"resource": ""
} | ||
c163256 | train | // SortedList returns the labels as a sorted list, separated by semicolon
//
// DO NOT BREAK THE FORMAT OF THIS. THE RETURNED STRING IS USED AS KEY IN
// THE KEY-VALUE STORE. | {
"resource": ""
} | ||
c163257 | train | // LabelArray returns the labels as label array, sorted by the key. | {
"resource": ""
} | ||
c163258 | train | // IsReserved returns true if any of the labels has a reserved source. | {
"resource": ""
} | ||
c163259 | train | // NewFunctionQueue returns a FunctionQueue that will be used to execute
// functions in the same order they are enqueued. | {
"resource": ""
} | ||
c163260 | train | // run starts the FunctionQueue internal worker. It will be stopped once
// `stopCh` is closed or receives a value. | {
"resource": ""
} | ||
c163261 | train | // Wait until the FunctionQueue is stopped, or the specified context deadline
// expires. Returns the error from the context, or nil if the FunctionQueue
// was completed before the context deadline. | {
"resource": ""
} | ||
c163262 | train | // Enqueue enqueues the receiving function `f` to be executed by the function
// queue. Depending on the size of the function queue and the amount
// of functions queued, this function can block until the function queue
// is ready to receive more requests.
// If `f` returns an error, `waitFunc` will be executed and, d... | {
"resource": ""
} | ||
c163263 | train | // NewTrigger returns a new trigger based on the provided parameters | {
"resource": ""
} | ||
c163264 | train | // needsDelay returns whether and how long of a delay is required to fullfil
// MinInterval | {
"resource": ""
} | ||
c163265 | train | // Shutdown stops the trigger mechanism | {
"resource": ""
} | ||
c163266 | train | // V2 returns a new v2.Interface. | {
"resource": ""
} | ||
c163267 | train | // NewPutServiceID creates a new http.Handler for the put service ID operation | {
"resource": ""
} | ||
c163268 | train | // NewServer creates an xDS gRPC stream handler using the given resource
// sources.
// types maps each supported resource type URL to its corresponding resource
// source and ACK observer. | {
"resource": ""
} | ||
c163269 | train | // HandleRequestStream receives and processes the requests from an xDS stream. | {
"resource": ""
} | ||
c163270 | train | // NewEventQueueBuffered returns an EventQueue with a capacity of,
// numBufferedEvents at a time, and all other needed fields initialized. | {
"resource": ""
} | ||
c163271 | train | // NewEvent returns an Event with all fields initialized. | {
"resource": ""
} | ||
c163272 | train | // Enqueue pushes the given event onto the EventQueue. If the queue has been
// stopped, the Event will not be enqueued, and its cancel channel will be
// closed, indicating that the Event was not ran. This function may block if
// the queue is at its capacity for events. | {
"resource": ""
} | ||
c163273 | train | // Stop stops any further events from being processed by the EventQueue. Any
// event which is currently being processed by the EventQueue will continue to
// run. All other events waiting to be processed, and all events that may be
// enqueued will not be processed by the event queue; they will be cancelled.
// If the... | {
"resource": ""
} | ||
c163274 | train | // newSelectorCache creates a new SelectorCache. | {
"resource": ""
} | ||
c163275 | train | // updateSelections updates the immutable slice representation of the
// cached selections after the cached selections have been changed.
//
// lock must be held | {
"resource": ""
} | ||
c163276 | train | // AddIdentitySelector adds the given api.EndpointSelector in to the
// selector cache. If an identical EndpointSelector has already been
// cached, the corresponding CachedSelector is returned, otherwise one
// is created and added to the cache. | {
"resource": ""
} | ||
c163277 | train | // RemoveIdentitySelector removes CachedSelector for the user. | {
"resource": ""
} | ||
c163278 | train | // UpdateIdentities propagates identity updates to selectors | {
"resource": ""
} | ||
c163279 | train | // Export global functions to interface with the global selector cache
// AddIdentitySelector adds the given api.EndpointSelector in to the
// selector cache. If an identical EndpointSelector has already been
// cached, the corresponding CachedSelector is returned, otherwise one
// is created and added to the cache. | {
"resource": ""
} | ||
c163280 | train | // NewDeleteIPAMIP creates a new http.Handler for the delete IP a m IP operation | {
"resource": ""
} | ||
c163281 | train | // String returns the readable format. | {
"resource": ""
} | ||
c163282 | train | // NewPutPolicy creates a new http.Handler for the put policy operation | {
"resource": ""
} | ||
c163283 | train | // Validate validates this b p f map list | {
"resource": ""
} | ||
c163284 | train | // DeepCopy returns a deep copy of the LabelArray, with each element also copied. | {
"resource": ""
} | ||
c163285 | train | // Validate validates this endpoint state | {
"resource": ""
} | ||
c163286 | train | // handlingContainerID returns whether there is a goroutine already consuming
// events for this id | {
"resource": ""
} | ||
c163287 | train | // reapEmpty deletes empty queues from the map. This also causes the handler
// goroutines to exit. It is expected to be called periodically to avoid the
// map growing over time. | {
"resource": ""
} | ||
c163288 | train | // syncWithRuntime is used by the daemon to synchronize changes between Docker and
// Cilium. This includes identities, labels, etc. | {
"resource": ""
} | ||
c163289 | train | // NewIPAM returns a new IP address manager | {
"resource": ""
} | ||
c163290 | train | // EndpointList returns a list of all endpoints | {
"resource": ""
} | ||
c163291 | train | // EndpointGet returns endpoint by ID | {
"resource": ""
} | ||
c163292 | train | // EndpointCreate creates a new endpoint | {
"resource": ""
} | ||
c163293 | train | // EndpointPatch modifies the endpoint | {
"resource": ""
} | ||
c163294 | train | // EndpointDelete deletes endpoint | {
"resource": ""
} | ||
c163295 | train | // EndpointLogGet returns endpoint log | {
"resource": ""
} | ||
c163296 | train | // EndpointHealthGet returns endpoint healthz | {
"resource": ""
} | ||
c163297 | train | // EndpointConfigGet returns endpoint configuration | {
"resource": ""
} | ||
c163298 | train | // EndpointConfigPatch modifies endpoint configuration | {
"resource": ""
} | ||
c163299 | train | // EndpointLabelsGet returns endpoint label configuration | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.