_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c163400
train
// WithLabels adds the labels to the delete policy params
{ "resource": "" }
c163401
train
// NewPatchEndpointIDConfig creates a new http.Handler for the patch endpoint ID config operation
{ "resource": "" }
c163402
train
// RegisterList registers a list of collectors. If registration of one // collector fails, no collector is registered.
{ "resource": "" }
c163403
train
// GetCounterValue returns the current value // stored for the counter
{ "resource": "" }
c163404
train
// DumpMetrics gets the current Cilium metrics and dumps all into a // models.Metrics structure.If metrics cannot be retrieved, returns an error
{ "resource": "" }
c163405
train
// getPrefixesFromCIDR fetches all CIDRs referred to by the specified slice // and returns them as regular golang CIDR objects.
{ "resource": "" }
c163406
train
// GetPrefixesFromCIDRSet fetches all CIDRs referred to by the specified slice // and returns them as regular golang CIDR objects. // // Assumes that validation already occurred on 'rules'.
{ "resource": "" }
c163407
train
// GetCIDRPrefixes runs through the specified 'rules' to find every reference // to a CIDR in the rules, and returns a slice containing all of these CIDRs. // Multiple rules referring to the same CIDR will result in multiple copies of // the CIDR in the returned slice. // // Assumes that validation already occurred on ...
{ "resource": "" }
c163408
train
// IsDisconnected is a convenience function that wraps the absurdly long set of // checks for a disconnect.
{ "resource": "" }
c163409
train
// finish signals that a build of this buildGroup has completed
{ "resource": "" }
c163410
train
// NewBuildQueue returns a new build queue
{ "resource": "" }
c163411
train
// Stop stops the build queue and terminates all workers
{ "resource": "" }
c163412
train
// createAndAddNotificationChannel creates and adds a build notification // channel. This function may only be called while the build is not yet in // progress.
{ "resource": "" }
c163413
train
// reportStatus reports the status of a build to all notification channels. // This function may only be called if the build is the currentBuild. It may // never be called while the build is still assigned to nextBuild.
{ "resource": "" }
c163414
train
// cancel cancels a scheduled and not yet running build. q.mutex must be held.
{ "resource": "" }
c163415
train
// Remove removes the builder from the queue.
{ "resource": "" }
c163416
train
// Drain will drain the queue from any running or scheduled builds of a // Buildable. If a build is running, the function will block for the build to // complete. It is the responsibility of the caller that the Buildable does not // get re-scheduled during the draining. Returns true if waiting was required.
{ "resource": "" }
c163417
train
// checkBuildGuarantees reports errors when build conditions are currently not // being respected. This function is used for unit testing.
{ "resource": "" }
c163418
train
// NewGetStatus creates a new http.Handler for the get status operation
{ "resource": "" }
c163419
train
// RemoveGlobalMapping removes the mapping from the specified endpoint ID to // the BPF policy program for that endpoint.
{ "resource": "" }
c163420
train
// OpenCallMap opens the map that maps endpoint IDs to program file // descriptors, which allows tail calling into the policy datapath code from // other BPF programs.
{ "resource": "" }
c163421
train
// WithPayload adds the payload to the get config o k response
{ "resource": "" }
c163422
train
// NewTunnelMap returns a new tunnel map with the specified name.
{ "resource": "" }
c163423
train
// GetTunnelEndpoint removes a prefix => tunnel-endpoint mapping
{ "resource": "" }
c163424
train
// DeleteTunnelEndpoint removes a prefix => tunnel-endpoint mapping
{ "resource": "" }
c163425
train
// Validate validates this b p f map
{ "resource": "" }
c163426
train
// validateEndpoint attempts to determine that the endpoint is valid, ie it // still exists in k8s, its datapath devices are present, and Cilium is // responsible for its workload, etc. // // Returns true to indicate that the endpoint is valid to restore, and an // optional error.
{ "resource": "" }
c163427
train
// Skip bytes in input, or exhaust the input.
{ "resource": "" }
c163428
train
// getInjectBuf return the pointer to the inject buffer slice header for the indicated direction
{ "resource": "" }
c163429
train
// inject buffers data to be injected into the connection at the point of INJECT
{ "resource": "" }
c163430
train
// isInjectBufFull return true if the inject buffer for the indicated direction is full
{ "resource": "" }
c163431
train
// Validate validates this endpoint policy
{ "resource": "" }
c163432
train
// NewManager returns a new node manager
{ "resource": "" }
c163433
train
// Close shuts down a node manager
{ "resource": "" }
c163434
train
// overwriteAllowed returns true if an update from newSource can overwrite a node owned by oldSource.
{ "resource": "" }
c163435
train
// NodeSoftUpdated is called after the information of a node has be upated but // unlike a NodeUpdated does not require the datapath to be updated.
{ "resource": "" }
c163436
train
// GetNodes returns a copy of all of the nodes as a map from Identity to Node.
{ "resource": "" }
c163437
train
// DeleteAllNodes deletes all nodes from the node maanger.
{ "resource": "" }
c163438
train
// Translate calls TranslateEgress on all r.Egress rules
{ "resource": "" }
c163439
train
// generateToCidrFromEndpoint takes an egress rule and populates it with // ToCIDR rules based on provided endpoint object
{ "resource": "" }
c163440
train
// PreprocessRules translates rules that apply to headless services
{ "resource": "" }
c163441
train
// NewK8sTranslator returns RuleTranslator
{ "resource": "" }
c163442
train
// TimeSinceSafe returns the duration since t. If the duration is negative, // returns false to indicate the fact. // // Used to workaround a malfunctioning monotonic clock.
{ "resource": "" }
c163443
train
// Validate validates this request response statistics
{ "resource": "" }
c163444
train
// Validate validates this port
{ "resource": "" }
c163445
train
// Validate validates this controller statuses
{ "resource": "" }
c163446
train
// RestoreExecPermissions restores file permissions to 0740 of all files inside // `searchDir` with the given regex `patterns`.
{ "resource": "" }
c163447
train
// waitForHostDeviceWhenReady waits the given ifaceName to be up and ready. If // ifaceName is not found, then it will wait forever until the device is // created.
{ "resource": "" }
c163448
train
// CassandraRuleParser parses protobuf L7 rules to enforcement objects // May panic
{ "resource": "" }
c163449
train
// reply parsing is very basic, just focusing on parsing RESULT messages that // contain prepared query IDs so that we can later enforce policy on "execute" requests.
{ "resource": "" }
c163450
train
// lookupOrCreate adds the specified Identity to the policy cache, with a reference // from the specified Endpoint, then returns the threadsafe copy of the policy // and whether policy has been computed for this identity.
{ "resource": "" }
c163451
train
// insert adds the specified Identity to the policy cache, with a reference // from the specified Endpoint, then returns the threadsafe copy of the policy // and whether policy has been computed for this identity.
{ "resource": "" }
c163452
train
// delete forgets about any cached SelectorPolicy that this endpoint uses. // // Returns true if the SelectorPolicy was removed from the cache.
{ "resource": "" }
c163453
train
// updateSelectorPolicy resolves the policy for the security identity of the // specified endpoint and stores it internally. It will skip policy resolution // if the cached policy is already at the revision specified in the repo. // // Returns whether the cache was updated, or an error. // // Must be called with repo.M...
{ "resource": "" }
c163454
train
// Lookup attempts to locate the SelectorPolicy corresponding to the specified // identity. If policy is not cached for the identity, it returns nil.
{ "resource": "" }
c163455
train
// UpdatePolicy resolves the policy for the security identity of the specified // endpoint and caches it for future use. // // The caller must provide threadsafety for iteration over the provided policy // repository.
{ "resource": "" }
c163456
train
// Check performs a diff between two objects provided as parameters, and // returns either true if the objects are identical, or false otherwise. If // it returns false, it also returns the unified diff between the expected // and obtained output.
{ "resource": "" }
c163457
train
// getUpdatedCNPFromStore gets the most recent version of cnp from the store // ciliumV2Store, which is updated by the Kubernetes watcher. This reduces // the possibility of Cilium trying to update cnp in Kubernetes which has // been updated between the time the watcher in this Cilium instance has // received cnp, and ...
{ "resource": "" }
c163458
train
// UpdateStatus updates the status section of a CiliumNetworkPolicy. It will // retry as long as required to update the status unless a non-temporary error // occurs in which case it expects a surrounding controller to restart or give // up.
{ "resource": "" }
c163459
train
// must be called with c.mutex held
{ "resource": "" }
c163460
train
// OnUpdate is called when a service in a remote cluster is updated
{ "resource": "" }
c163461
train
// OnDelete is called when a service in a remote cluster is deleted
{ "resource": "" }
c163462
train
// RegisterStatusFunc registers a subsystem and associates a status function to // call for debug status collection
{ "resource": "" }
c163463
train
// WithTimeout adds the timeout to the get identity endpoints params
{ "resource": "" }
c163464
train
// WithContext adds the context to the get identity endpoints params
{ "resource": "" }
c163465
train
// WithHTTPClient adds the HTTPClient to the get identity endpoints params
{ "resource": "" }
c163466
train
// Validate validates this service
{ "resource": "" }
c163467
train
// Validate validates this DNS lookup
{ "resource": "" }
c163468
train
// Validate validates this endpoint status change
{ "resource": "" }
c163469
train
// WithPayload adds the payload to the get map name o k response
{ "resource": "" }
c163470
train
// PingEndpoint attempts to make an API ping request to the local cilium-health // endpoint, and returns whether this was successful.
{ "resource": "" }
c163471
train
// CleanupEndpoint cleans up remaining resources associated with the health // endpoint. // // This is expected to be called after the process is killed and the endpoint // is removed from the endpointmanager.
{ "resource": "" }
c163472
train
// Dump writes the contents of key to buffer and returns true if the value for // next header in the key is nonzero.
{ "resource": "" }
c163473
train
// ToNetwork converts ports to network byte order. // // This is necessary to prevent callers from implicitly converting // the TupleKey4Global type here into a local key type in the nested // TupleKey4 field.
{ "resource": "" }
c163474
train
// ToHost converts ports to host byte order. // // This is necessary to prevent callers from implicitly converting // the TupleKey4Global type here into a local key type in the nested // TupleKey4 field.
{ "resource": "" }
c163475
train
// NewGetMap creates a new http.Handler for the get map operation
{ "resource": "" }
c163476
train
// WithTimeout adds the timeout to the get healthz params
{ "resource": "" }
c163477
train
// WithContext adds the context to the get healthz params
{ "resource": "" }
c163478
train
// WithHTTPClient adds the HTTPClient to the get healthz params
{ "resource": "" }
c163479
train
// ParseIngressID parses the service ID from the ingress resource
{ "resource": "" }
c163480
train
// ParseIngress parses an ingress resources and returns the Service definition
{ "resource": "" }
c163481
train
// NewGetEndpointIDLabels creates a new http.Handler for the get endpoint ID labels operation
{ "resource": "" }
c163482
train
// Validate validates this proxy statistics
{ "resource": "" }
c163483
train
// NewGetIdentity creates a new http.Handler for the get identity operation
{ "resource": "" }
c163484
train
// The middleware configuration happens before anything, this middleware also applies to serving the swagger.json document. // So this is a good place to plug in a panic handling middleware, logging and metrics
{ "resource": "" }
c163485
train
// DumpInfo prints a summary of the trace messages.
{ "resource": "" }
c163486
train
// DumpVerbose prints the trace notification in human readable form
{ "resource": "" }
c163487
train
// TraceNotifyToVerbose creates verbose notification from base TraceNotify
{ "resource": "" }
c163488
train
// NewPatchEndpointIDLabels creates a new http.Handler for the patch endpoint ID labels operation
{ "resource": "" }
c163489
train
// WriteConfig dumps the configuration for the corresponding header file
{ "resource": "" }
c163490
train
// Dump dumps revision and CIDRs as string slice of all participating maps
{ "resource": "" }
c163491
train
// ProbePreFilter checks whether XDP mode is supported on given device
{ "resource": "" }
c163492
train
// NewPreFilter returns prefilter handle
{ "resource": "" }
c163493
train
// Dump prints the debug message in a human readable format.
{ "resource": "" }
c163494
train
// DumpInfo prints a summary of the capture messages.
{ "resource": "" }
c163495
train
// DumpVerbose prints the captured packet in human readable format
{ "resource": "" }
c163496
train
// DebugCaptureToVerbose creates verbose notification from base TraceNotify
{ "resource": "" }
c163497
train
// DumpIPAM dumps in the form of a map, the list of // reserved IPv4 and IPv6 addresses.
{ "resource": "" }
c163498
train
// getEndpointInfo returns a consistent snapshot of the given source. // The source's read lock must not be held.
{ "resource": "" }
c163499
train
// DetermineAllowLocalhost determines whether communication should be allowed to // the localhost. It inserts the Key corresponding to the localhost in // the desiredPolicyKeys if the endpoint is allowed to communicate with the // localhost.
{ "resource": "" }