_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c162600
train
// ParseCIDRs fetches all CIDRs referred to by the specified slice and returns // them as regular golang CIDR objects.
{ "resource": "" }
c162601
train
// Unlock unlocks a lock
{ "resource": "" }
c162602
train
// Validate validates this endpoint policy status
{ "resource": "" }
c162603
train
// NatDumpCreated returns time in seconds when NAT entry was created.
{ "resource": "" }
c162604
train
// DumpEntries iterates through Map m and writes the values of the // nat entries in m to a string.
{ "resource": "" }
c162605
train
// Flush deletes all NAT mappings from the given table.
{ "resource": "" }
c162606
train
// DeleteMapping removes a NAT mapping from the global NAT table.
{ "resource": "" }
c162607
train
// blockWaitGroupToSyncResources ensures that anything which waits on waitGroup // waits until all objects of the specified resource stored in Kubernetes are // received by the informer and processed by controller. // Fatally exits if syncing these initial objects fails. // If the given stop channel is closed, it does ...
{ "resource": "" }
c162608
train
// waitForCacheSync waits for k8s caches to be synchronized for the given // resource. Returns once all resourcesNames are synchronized with cilium-agent.
{ "resource": "" }
c162609
train
// initK8sSubsystem returns a channel for which it will be closed when all // caches essential for daemon are synchronized.
{ "resource": "" }
c162610
train
// updateK8sEventMetric incrment the given metric per event type and the result // status of the function
{ "resource": "" }
c162611
train
// Less returns true if the element in index `i` has the value of // TrafficDirection lower than `j`'s TrafficDirection or if the element in index // `i` has the value of TrafficDirection lower and equal than `j`'s // TrafficDirection and the identity of element `i` is lower than the Identity // of element j.
{ "resource": "" }
c162612
train
// ToHost returns a copy of key with fields converted from network byte-order // to host-byte-order if necessary.
{ "resource": "" }
c162613
train
// ToNetwork returns a copy of key with fields converted from host byte-order // to network-byte-order if necessary.
{ "resource": "" }
c162614
train
// newKey returns a PolicyKey representing the specified parameters in network // byte-order.
{ "resource": "" }
c162615
train
// newEntry returns a PolicyEntry representing the specified parameters in // network byte-order.
{ "resource": "" }
c162616
train
// AllowKey pushes an entry into the PolicyMap for the given PolicyKey k. // Returns an error if the update of the PolicyMap fails.
{ "resource": "" }
c162617
train
// Allow pushes an entry into the PolicyMap to allow traffic in the given // `trafficDirection` for identity `id` with destination port `dport` over // protocol `proto`. It is assumed that `dport` and `proxyPort` are in host byte-order.
{ "resource": "" }
c162618
train
// Exists determines whether PolicyMap currently contains an entry that // allows traffic in `trafficDirection` for identity `id` with destination port // `dport`over protocol `proto`. It is assumed that `dport` is in host byte-order.
{ "resource": "" }
c162619
train
// DeleteKey deletes the key-value pair from the given PolicyMap with PolicyKey // k. Returns an error if deletion from the PolicyMap fails.
{ "resource": "" }
c162620
train
// Delete removes an entry from the PolicyMap for identity `id` // sending traffic in direction `trafficDirection` with destination port `dport` // over protocol `proto`. It is assumed that `dport` is in host byte-order. // Returns an error if the deletion did not succeed.
{ "resource": "" }
c162621
train
// String returns a human-readable string representing the policy map.
{ "resource": "" }
c162622
train
// Open opens the policymap at the specified path.
{ "resource": "" }
c162623
train
// copyResultRLocked makes a copy of the path status for the specified IP.
{ "resource": "" }
c162624
train
// getResults gathers a copy of all of the results for nodes currently in the // cluster.
{ "resource": "" }
c162625
train
// resolveIP attempts to sanitize 'node' and 'ip', and if successful, returns // the name of the node and the IP address specified in the addressing element. // If validation fails or this IP should not be pinged, 'ip' is returned as nil.
{ "resource": "" }
c162626
train
// markIPsLocked marks all nodes in the prober for deletion.
{ "resource": "" }
c162627
train
// sweepIPsLocked iterates through nodes in the prober and removes nodes which // are marked for deletion.
{ "resource": "" }
c162628
train
// setNodes sets the list of nodes for the prober, and updates the pinger to // start sending pings to all of the nodes. // setNodes will steal references to nodes referenced from 'nodes', so the // caller should not modify them after a call to setNodes.
{ "resource": "" }
c162629
train
// Run sends a single probes out to all of the other cilium nodes to gather // connectivity status for the cluster.
{ "resource": "" }
c162630
train
// WithTimeout adds the timeout to the post IP a m IP params
{ "resource": "" }
c162631
train
// WithContext adds the context to the post IP a m IP params
{ "resource": "" }
c162632
train
// WithHTTPClient adds the HTTPClient to the post IP a m IP params
{ "resource": "" }
c162633
train
// WithIP adds the ip to the post IP a m IP params
{ "resource": "" }
c162634
train
// WithOwner adds the owner to the post IP a m IP params
{ "resource": "" }
c162635
train
// WithTimeout adds the timeout to the get debuginfo params
{ "resource": "" }
c162636
train
// WithContext adds the context to the get debuginfo params
{ "resource": "" }
c162637
train
// WithHTTPClient adds the HTTPClient to the get debuginfo params
{ "resource": "" }
c162638
train
// String returns a human readable representation of the LabelPrefix
{ "resource": "" }
c162639
train
// matches returns true and the length of the matched section if the label is // matched by the LabelPrefix. The Ignore flag has no effect at this point.
{ "resource": "" }
c162640
train
// parseLabelPrefix returns a LabelPrefix created from the string label parameter.
{ "resource": "" }
c162641
train
// ParseLabelPrefixCfg parses valid label prefixes from a file and from a slice // of valid prefixes. Both are optional. If both are provided, both list are // appended together.
{ "resource": "" }
c162642
train
// defaultLabelPrefixCfg returns a default LabelPrefixCfg using the latest // LPCfgFileVersion
{ "resource": "" }
c162643
train
// readLabelPrefixCfgFrom reads a label prefix configuration file from fileName. If the // version is not supported by us it returns an error.
{ "resource": "" }
c162644
train
// GetPreAllocateMapFlags returns the map flags for map which use conditional // pre-allocation.
{ "resource": "" }
c162645
train
// NewGetConfig creates a new http.Handler for the get config operation
{ "resource": "" }
c162646
train
// HasL3DependentL7Rules returns true if this L4Filter is created from rules // that require an L3 match as well as specific L7 rules.
{ "resource": "" }
c162647
train
// ToKeys converts filter into a list of Keys.
{ "resource": "" }
c162648
train
// MarshalIndent returns the `L4Filter` in indented JSON string.
{ "resource": "" }
c162649
train
// String returns the `L4Filter` in a human-readable string.
{ "resource": "" }
c162650
train
// HasRedirect returns true if at least one L4 filter contains a port // redirection
{ "resource": "" }
c162651
train
// IngressCoversContext checks if the receiver's ingress L4Policy contains // all `dPorts` and `labels`.
{ "resource": "" }
c162652
train
// EgressCoversContext checks if the receiver's egress L4Policy contains // all `dPorts` and `labels`.
{ "resource": "" }
c162653
train
// HasRedirect returns true if the L4 policy contains at least one port redirection
{ "resource": "" }
c162654
train
// RequiresConntrack returns true if if the L4 configuration requires // connection tracking to be enabled.
{ "resource": "" }
c162655
train
// WithTimeout adds the timeout to the put service ID params
{ "resource": "" }
c162656
train
// WithContext adds the context to the put service ID params
{ "resource": "" }
c162657
train
// WithHTTPClient adds the HTTPClient to the put service ID params
{ "resource": "" }
c162658
train
// WithConfig adds the config to the put service ID params
{ "resource": "" }
c162659
train
// WithID adds the id to the put service ID params
{ "resource": "" }
c162660
train
// NewRegexpList returns a new RegexpList, if any initialValues is in place // will add into the utility.
{ "resource": "" }
c162661
train
// Add function adds a new item in the list and sort the data based on the // length
{ "resource": "" }
c162662
train
// Remove removes the item from the internal array and keep the data sorted
{ "resource": "" }
c162663
train
// Increment adds one to the given key
{ "resource": "" }
c162664
train
// Decrement remove one to the given key. If the value is 0, the key will be // deleted.
{ "resource": "" }
c162665
train
// Keys return the list of keys that are in place.
{ "resource": "" }
c162666
train
// NewRegexpMap returns an initialized RegexpMap
{ "resource": "" }
c162667
train
// Add associates a Regular expression to a lookupValue that will be used in // the lookup functions. It will return an error and data will be not saved if // the regexp does not compile correctly
{ "resource": "" }
c162668
train
// LookupValues returns all lookupValues, inserted via Add, where the reStr // matches lookupKey
{ "resource": "" }
c162669
train
// LookupContainsValue returns true if any reStr in lookups, inserted via Add, // matches lookupKey AND has a lookupValue, inserted via the same Add, that // matches expectedValue.
{ "resource": "" }
c162670
train
// GetPrecompiledRegexp returns the regexp matching reStr if it is in the map. // This is a utility function to avoid recompiling regexps repeatedly, and the // RegexpMap keeps the refcount for us.
{ "resource": "" }
c162671
train
// keepUniqueStrings deduplicates strings in s. The output is sorted.
{ "resource": "" }
c162672
train
// FindEPConfigCHeader returns the full path of the file that is the CHeaderFileName from // the slice of files
{ "resource": "" }
c162673
train
// GetCiliumVersionString returns the first line containing CiliumCHeaderPrefix.
{ "resource": "" }
c162674
train
// RequireRootPrivilege checks if the user running cmd is root. If not, it exits the program
{ "resource": "" }
c162675
train
// MoveNewFilesTo copies all files, that do not exist in newDir, from oldDir.
{ "resource": "" }
c162676
train
// WithTimeout adds the timeout to the put endpoint ID params
{ "resource": "" }
c162677
train
// WithContext adds the context to the put endpoint ID params
{ "resource": "" }
c162678
train
// WithHTTPClient adds the HTTPClient to the put endpoint ID params
{ "resource": "" }
c162679
train
// WithEndpoint adds the endpoint to the put endpoint ID params
{ "resource": "" }
c162680
train
// WithID adds the id to the put endpoint ID params
{ "resource": "" }
c162681
train
// NewGetPrefilter creates a new http.Handler for the get prefilter operation
{ "resource": "" }
c162682
train
// NewGetPolicyResolve creates a new http.Handler for the get policy resolve operation
{ "resource": "" }
c162683
train
// DropReason prints the drop reason in a human readable string
{ "resource": "" }
c162684
train
// Validate validates this path status
{ "resource": "" }
c162685
train
// handleIPUpsert deletes elements from the NPHDS cache with the specified peer IP->ID mapping.
{ "resource": "" }
c162686
train
// ServeHTTP implements the http.Handler interface. It records the timestamp // this API call began at, then chains to the next handler.
{ "resource": "" }
c162687
train
// BPF programs and sockmaps working on cgroups
{ "resource": "" }
c162688
train
// First user of sockops root is sockops load programs so we ensure the sockops // root path no longer changes.
{ "resource": "" }
c162689
train
// SockmapEnable will compile sockops programs and attach the sockops programs // to the cgroup. After this all TCP connect events will be filtered by a BPF // sockops program.
{ "resource": "" }
c162690
train
// SockmapDisable will detach any sockmap programs from cgroups then "unload" // all the programs and maps associated with it. Here "unload" just means // deleting the file associated with the map.
{ "resource": "" }
c162691
train
// WithTimeout adds the timeout to the get endpoint ID healthz params
{ "resource": "" }
c162692
train
// WithContext adds the context to the get endpoint ID healthz params
{ "resource": "" }
c162693
train
// WithHTTPClient adds the HTTPClient to the get endpoint ID healthz params
{ "resource": "" }
c162694
train
// WithID adds the id to the get endpoint ID healthz params
{ "resource": "" }
c162695
train
// UpdateProxyRedirect updates the redirect rules in the proxy for a particular // endpoint using the provided L4 filter. Returns the allocated proxy port
{ "resource": "" }
c162696
train
// RemoveProxyRedirect removes a previously installed proxy redirect for an // endpoint
{ "resource": "" }
c162697
train
// UpdateNetworkPolicy adds or updates a network policy in the set // published to L7 proxies.
{ "resource": "" }
c162698
train
// RemoveNetworkPolicy removes a network policy from the set published to // L7 proxies.
{ "resource": "" }
c162699
train
// QueueEndpointBuild waits for a "build permit" for the endpoint // identified by 'epID'. This function blocks until the endpoint can // start building. The returned function must then be called to // release the "build permit" when the most resource intensive parts // of the build are done. The returned function is ...
{ "resource": "" }