_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c163300 | train | // WithTimeout adds the timeout to the get service ID params | {
"resource": ""
} | ||
c163301 | train | // WithContext adds the context to the get service ID params | {
"resource": ""
} | ||
c163302 | train | // WithHTTPClient adds the HTTPClient to the get service ID params | {
"resource": ""
} | ||
c163303 | train | // WithID adds the id to the get service ID params | {
"resource": ""
} | ||
c163304 | train | // GetPolicyLabels returns a LabelArray for the given namespace and name. | {
"resource": ""
} | ||
c163305 | train | // getEndpointSelector converts the provided labelSelector into an EndpointSelector,
// adding the relevant matches for namespaces based on the provided options. | {
"resource": ""
} | ||
c163306 | train | // namespacesAreValid checks the set of namespaces from a rule returns true if
// they are not specified, or if they are specified and match the namespace
// where the rule is being inserted. | {
"resource": ""
} | ||
c163307 | train | // ParseToCiliumRule returns an api.Rule with all the labels parsed into cilium
// labels. | {
"resource": ""
} | ||
c163308 | train | // ParseToCiliumLabels returns all ruleLbls appended with a specific label that
// represents the given namespace and name along with a label that specifies
// these labels were derived from a CiliumNetworkPolicy. | {
"resource": ""
} | ||
c163309 | train | // Init initializes the iptables manager and checks for iptables kernel modules
// availability. | {
"resource": ""
} | ||
c163310 | train | // RemoveRules removes iptables rules installed by Cilium. | {
"resource": ""
} | ||
c163311 | train | // install or remove rules for a single proxy port | {
"resource": ""
} | ||
c163312 | train | // Validate validates this endpoint health | {
"resource": ""
} | ||
c163313 | train | // Validate validates this prefilter status | {
"resource": ""
} | ||
c163314 | train | // NewGetMetrics creates a new http.Handler for the get metrics operation | {
"resource": ""
} | ||
c163315 | train | // WithTimeout adds the timeout to the post IP a m params | {
"resource": ""
} | ||
c163316 | train | // WithContext adds the context to the post IP a m params | {
"resource": ""
} | ||
c163317 | train | // WithHTTPClient adds the HTTPClient to the post IP a m params | {
"resource": ""
} | ||
c163318 | train | // WithFamily adds the family to the post IP a m params | {
"resource": ""
} | ||
c163319 | train | // WithOwner adds the owner to the post IP a m params | {
"resource": ""
} | ||
c163320 | train | // WithEndpointSelector configures the Rule with the specified selector. | {
"resource": ""
} | ||
c163321 | train | // WithIngressRules configures the Rule with the specified rules. | {
"resource": ""
} | ||
c163322 | train | // WithEgressRules configures the Rule with the specified rules. | {
"resource": ""
} | ||
c163323 | train | // WithLabels configures the Rule with the specified labels metadata. | {
"resource": ""
} | ||
c163324 | train | // WithDescription configures the Rule with the specified description metadata. | {
"resource": ""
} | ||
c163325 | train | // RequiresDerivative it return true if the rule has a derivative rule. | {
"resource": ""
} | ||
c163326 | train | // CreateDerivative will return a new Rule with the new data based gather
// by the rules that autogenerated new Rule | {
"resource": ""
} | ||
c163327 | train | // PolicyMapPathLocked returns the path to the policy map of endpoint. | {
"resource": ""
} | ||
c163328 | train | // CallsMapPathLocked returns the path to cilium tail calls map of an endpoint. | {
"resource": ""
} | ||
c163329 | train | // BPFConfigMapPath returns the path to the BPF config map of endpoint. | {
"resource": ""
} | ||
c163330 | train | // addNewRedirects must be called while holding the endpoint lock for writing.
// On success, returns nil; otherwise, returns an error indicating the problem
// that occurred while adding an l7 redirect for the specified policy.
// The returned map contains the exact set of IDs of proxy redirects that is
// required to... | {
"resource": ""
} | ||
c163331 | train | // Must be called with endpoint.Mutex held. | {
"resource": ""
} | ||
c163332 | train | // DeleteMapsLocked releases references to all BPF maps associated with this
// endpoint.
//
// For each error that occurs while releasing these references, an error is
// added to the resulting error slice which is returned.
//
// Returns nil on success. | {
"resource": ""
} | ||
c163333 | train | // DeleteBPFProgramLocked delete the BPF program associated with the endpoint's
// veth interface. | {
"resource": ""
} | ||
c163334 | train | // SkipStateClean can be called on a endpoint before its first build to skip
// the cleaning of state such as the conntrack table. This is useful when an
// endpoint is being restored from state and the datapath state should not be
// claned.
//
// The endpoint lock must NOT be held. | {
"resource": ""
} | ||
c163335 | train | // GetBPFKeys returns all keys which should represent this endpoint in the BPF
// endpoints map | {
"resource": ""
} | ||
c163336 | train | // GetBPFValue returns the value which should represent this endpoint in the
// BPF endpoints map | {
"resource": ""
} | ||
c163337 | train | // NewCollector creates a collector and starts the given probes.
//
// Each probe runs in a separate goroutine. | {
"resource": ""
} | ||
c163338 | train | // GetStaleProbes returns a map of stale probes which key is a probe name and
// value is a time when the last instance of the probe has been started.
//
// A probe is declared stale if it hasn't returned in FailureThreshold. | {
"resource": ""
} | ||
c163339 | train | // spawnProbe starts a goroutine which invokes the probe at the particular interval. | {
"resource": ""
} | ||
c163340 | train | // runProbe runs the given probe, and returns either after the probe has returned
// or after the collector has been closed. | {
"resource": ""
} | ||
c163341 | train | // NewDeleteFqdnCache creates a new http.Handler for the delete fqdn cache operation | {
"resource": ""
} | ||
c163342 | train | // WithTimeout adds the timeout to the get policy resolve params | {
"resource": ""
} | ||
c163343 | train | // WithContext adds the context to the get policy resolve params | {
"resource": ""
} | ||
c163344 | train | // WithHTTPClient adds the HTTPClient to the get policy resolve params | {
"resource": ""
} | ||
c163345 | train | // WithTraceSelector adds the traceSelector to the get policy resolve params | {
"resource": ""
} | ||
c163346 | train | // InitIdentityAllocator creates the the identity allocator. Only the first
// invocation of this function will have an effect. | {
"resource": ""
} | ||
c163347 | train | // WaitForInitialIdentities waits for the initial set of security identities to
// have been received and populated into the allocator cache | {
"resource": ""
} | ||
c163348 | train | // AllocateIdentity allocates an identity described by the specified labels. If
// an identity for the specified set of labels already exist, the identity is
// re-used and reference counting is performed, otherwise a new identity is
// allocated via the kvstore. | {
"resource": ""
} | ||
c163349 | train | // ReleaseSlice attempts to release a set of identities. It is a helper
// function that may be useful for cleaning up multiple identities in paths
// where several identities may be allocated and another error means that they
// should all be released. | {
"resource": ""
} | ||
c163350 | train | // WatchRemoteIdentities starts watching for identities in another kvstore and
// syncs all identities to the local identity cache. | {
"resource": ""
} | ||
c163351 | train | // DeleteService deletes a legacy service from the lbmap. The given key has to
// be of the master service. | {
"resource": ""
} | ||
c163352 | train | // updateServiceWeights updates cilium_lb6_rr_seq or cilium_lb4_rr_seq bpf maps. | {
"resource": ""
} | ||
c163353 | train | // lookupAndDeleteServiceWeights deletes entry from cilium_lb6_rr_seq or cilium_lb4_rr_seq | {
"resource": ""
} | ||
c163354 | train | // gcd computes the gcd of two numbers. | {
"resource": ""
} | ||
c163355 | train | // generateWrrSeq generates a wrr sequence based on provided weights. | {
"resource": ""
} | ||
c163356 | train | // DumpBackendMapsToUserspace dumps the backend entries from the BPF maps. | {
"resource": ""
} | ||
c163357 | train | // DumpRevNATMapsToUserspace dumps the contents of both the IPv6 and IPv4
// revNAT BPF maps, and stores the contents of said dumps in a RevNATMap.
// Returns the errors that occurred while dumping the maps. | {
"resource": ""
} | ||
c163358 | train | // RestoreService restores a single service in the cache. This is required to
// guarantee consistent backend ordering, slave slot and backend by backend
// address ID lookups. | {
"resource": ""
} | ||
c163359 | train | // updateServiceWeightsV2 updates cilium_lb6_rr_seq_v2 or cilium_lb4_rr_seq_v2 bpf maps. | {
"resource": ""
} | ||
c163360 | train | // lookupAndDeleteServiceWeightsV2 deletes entry from cilium_lb6_rr_seq or cilium_lb4_rr_seq | {
"resource": ""
} | ||
c163361 | train | // DeleteServiceV2 deletes a service from the lbmap and deletes backends of it if
// they are not used by any other service.
//
//The given key has to be of the master service. | {
"resource": ""
} | ||
c163362 | train | // DeleteServiceCache deletes the service cache. | {
"resource": ""
} | ||
c163363 | train | // Init initializes the datapath cache with base program hashes derived from
// the LocalNodeConfiguration. | {
"resource": ""
} | ||
c163364 | train | // RestoreTemplates populates the object cache from templates on the filesystem
// at the specified path. | {
"resource": ""
} | ||
c163365 | train | // NewObjectCache creates a new cache for datapath objects, basing the hash
// upon the configuration of the datapath and the specified node configuration. | {
"resource": ""
} | ||
c163366 | train | // Update may be called to update the base hash for configuration of datapath
// configuration that applies across the node. | {
"resource": ""
} | ||
c163367 | train | // serialize finds the channel that serializes builds against the same hash.
// Returns the channel and whether or not the caller needs to compile the
// datapath for this hash. | {
"resource": ""
} | ||
c163368 | train | // build attempts to compile and cache a datapath template object file
// corresponding to the specified endpoint configuration. | {
"resource": ""
} | ||
c163369 | train | // fetchOrCompile attempts to fetch the path to the datapath object
// corresponding to the provided endpoint configuration, or if this
// configuration is not yet compiled, compiles it. It will block if multiple
// threads attempt to concurrently fetchOrCompile a template binary for the
// same set of EndpointConfigur... | {
"resource": ""
} | ||
c163370 | train | // EndpointHash hashes the specified endpoint configuration with the current
// datapath hash cache and returns the hash as string. | {
"resource": ""
} | ||
c163371 | train | // NewCache creates a new, empty cache with 0 as its current version. | {
"resource": ""
} | ||
c163372 | train | // Lookup finds the resource corresponding to the specified typeURL and resourceName,
// if available, and returns it. Otherwise, returns nil. If an error occurs while
// fetching the resource, also returns the error. | {
"resource": ""
} | ||
c163373 | train | // StatusCheckInterval returns the interval of status checks depending on the
// cluster size and the current connectivity state
//
// nodes OK Failing
// 1 20s 3s
// 4 45s 7s
// 8 1m05s 11s
// 32 1m45s 18s
// 128 2m25s 24s
// 512 3m07s 32s
// 204... | {
"resource": ""
} | ||
c163374 | train | // registerBackend must be called by kvstore backends to register themselves | {
"resource": ""
} | ||
c163375 | train | // getBackend finds a registered backend by name | {
"resource": ""
} | ||
c163376 | train | // getEnvName returns the environment variable to be used for the given option name. | {
"resource": ""
} | ||
c163377 | train | // BindEnv binds the option name with an deterministic generated environment
// variable which s based on the given optName. If the same optName is bind
// more than 1 time, this function panics. | {
"resource": ""
} | ||
c163378 | train | // BindEnvWithLegacyEnvFallback binds the given option name with either the same
// environment variable as BindEnv, if it's set, or with the given legacyEnvName.
//
// The function is used to work around the viper.BindEnv limitation that only
// one environment variable can be bound for an option, and we need multiple... | {
"resource": ""
} | ||
c163379 | train | // LogRegisteredOptions logs all options that where bind to viper. | {
"resource": ""
} | ||
c163380 | train | // GetNodeConfigPath returns the full path of the NodeConfigFile. | {
"resource": ""
} | ||
c163381 | train | // WorkloadsEnabled returns true if any workload runtimes are enabled | {
"resource": ""
} | ||
c163382 | train | // AlwaysAllowLocalhost returns true if the daemon has the option set that
// localhost can always reach local endpoints | {
"resource": ""
} | ||
c163383 | train | // Validate validates the daemon configuration | {
"resource": ""
} | ||
c163384 | train | // ReadDirConfig reads the given directory and returns a map that maps the
// filename to the contents of that file. | {
"resource": ""
} | ||
c163385 | train | // MergeConfig merges the given configuration map with viper's configuration. | {
"resource": ""
} | ||
c163386 | train | // ReplaceDeprecatedFields replaces the deprecated options set with the new set
// of options that overwrite the deprecated ones.
// This function replaces the deprecated fields used by environment variables
// with a different name than the option they are setting. This also replaces
// the deprecated names used in th... | {
"resource": ""
} | ||
c163387 | train | // Validate validates this datapath mode | {
"resource": ""
} | ||
c163388 | train | // Validate validates this ipvlan configuration | {
"resource": ""
} | ||
c163389 | train | // Validate validates this b p f map entry | {
"resource": ""
} | ||
c163390 | train | // WriteNetdevConfig writes the BPF configuration for the endpoint to a writer. | {
"resource": ""
} | ||
c163391 | train | // WriteEndpointConfig writes the BPF configuration for the endpoint to a writer. | {
"resource": ""
} | ||
c163392 | train | // WriteEndpointConfig writes the BPF configuration for the template to a writer. | {
"resource": ""
} | ||
c163393 | train | // updateStaleEntriesFunction returns a DumpCallback that will update the
// specified "keysToRemove" map with entries that exist in the BPF map which
// do not exist in the in-memory ipcache.
//
// Must be called while holding ipcache.IPIdentityCache.Lock for reading. | {
"resource": ""
} | ||
c163394 | train | // handleMapShuffleFailure attempts to move the map with name 'backup' back to
// 'realized', and logs a warning message if this can't be achieved. | {
"resource": ""
} | ||
c163395 | train | // shuffleMaps attempts to move the map with name 'realized' to 'backup' and
// 'pending' to 'realized'. If an error occurs, attempts to return the maps
// back to their original paths. | {
"resource": ""
} | ||
c163396 | train | // OnIPIdentityCacheGC spawns a controller which synchronizes the BPF IPCache Map
// with the in-memory IP-Identity cache. | {
"resource": ""
} | ||
c163397 | train | // WithTimeout adds the timeout to the delete policy params | {
"resource": ""
} | ||
c163398 | train | // WithContext adds the context to the delete policy params | {
"resource": ""
} | ||
c163399 | train | // WithHTTPClient adds the HTTPClient to the delete policy params | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.