_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c163500
train
// NewPrefixLengthCounter returns a new PrefixLengthCounter which limits // insertions to the specified maximum number of unique prefix lengths.
{ "resource": "" }
c163501
train
// checkLimits checks whether the specified new count of prefixes would exceed // the specified limit on the maximum number of unique keys, and returns an // error if it would exceed the limit.
{ "resource": "" }
c163502
train
// Add increments references to prefix lengths for the specified IPNets to the // counter. If the maximum number of unique prefix lengths would be exceeded, // returns an error. // // Returns true if adding these prefixes results in an increase in the total // number of unique prefix lengths in the counter.
{ "resource": "" }
c163503
train
// Delete reduces references to prefix lengths in the the specified IPNets from // the counter. Returns true if removing references to these prefix lengths // would result in a decrese in the total number of unique prefix lengths in // the counter.
{ "resource": "" }
c163504
train
// ToBPFData converts the counter into a set of prefix lengths that the BPF // datapath can use for LPM lookup.
{ "resource": "" }
c163505
train
// WithTimeout adds the timeout to the get fqdn cache ID params
{ "resource": "" }
c163506
train
// WithContext adds the context to the get fqdn cache ID params
{ "resource": "" }
c163507
train
// WithHTTPClient adds the HTTPClient to the get fqdn cache ID params
{ "resource": "" }
c163508
train
// WithCidr adds the cidr to the get fqdn cache ID params
{ "resource": "" }
c163509
train
// WithID adds the id to the get fqdn cache ID params
{ "resource": "" }
c163510
train
// WithMatchpattern adds the matchpattern to the get fqdn cache ID params
{ "resource": "" }
c163511
train
// isTopicAPIKey returns true if kind is apiKey message type which contains a // topic in its request.
{ "resource": "" }
c163512
train
// MatchesRule validates the Kafka request message against the provided list of // rules. The function will return true if the policy allows the message, // otherwise false is returned.
{ "resource": "" }
c163513
train
// EndpointUpdate updates the options of the given endpoint and regenerates the endpoint
{ "resource": "" }
c163514
train
// WithPayload adds the payload to the get endpoint Id labels o k response
{ "resource": "" }
c163515
train
// WithTimeout adds the timeout to the patch endpoint ID labels params
{ "resource": "" }
c163516
train
// WithContext adds the context to the patch endpoint ID labels params
{ "resource": "" }
c163517
train
// WithHTTPClient adds the HTTPClient to the patch endpoint ID labels params
{ "resource": "" }
c163518
train
// WithConfiguration adds the configuration to the patch endpoint ID labels params
{ "resource": "" }
c163519
train
// WithID adds the id to the patch endpoint ID labels params
{ "resource": "" }
c163520
train
// Validate validates this label configuration spec
{ "resource": "" }
c163521
train
// GetLabelsFromYaml iterates through the provided YAML file and for each // section in the YAML, returns the labels or an error if the labels could not // be parsed.
{ "resource": "" }
c163522
train
// getTemplateSHA returns the SHA that should be reported to the user for // the specified endpoint ID.
{ "resource": "" }
c163523
train
// AllocateIP allocates a IP address.
{ "resource": "" }
c163524
train
// AllocateIPString is identical to AllocateIP but takes a string
{ "resource": "" }
c163525
train
// AllocateNextFamily allocates the next IP of the requested address family
{ "resource": "" }
c163526
train
// AllocateNext allocates the next available IPv4 and IPv6 address out of the // configured address pool. If family is set to "ipv4" or "ipv6", then // allocation is limited to the specified address family. If the pool has been // drained of addresses, an error will be returned.
{ "resource": "" }
c163527
train
// ReleaseIP release a IP address.
{ "resource": "" }
c163528
train
// ReleaseIPString is identical to ReleaseIP but takes a string
{ "resource": "" }
c163529
train
// Dump dumps the list of allocated IP addresses
{ "resource": "" }
c163530
train
// End ends the current span and adds the measured duration to the total // cumulated duration, and to the success or failure cumulated duration // depending on the given success flag
{ "resource": "" }
c163531
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlimCNP.
{ "resource": "" }
c163532
train
// NewCiliumNetworkPolicyInformer constructs a new informer for CiliumNetworkPolicy type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
{ "resource": "" }
c163533
train
// NewFilteredCiliumNetworkPolicyInformer constructs a new informer for CiliumNetworkPolicy type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
{ "resource": "" }
c163534
train
// NewClient returns a new kvstore client based on the configuration
{ "resource": "" }
c163535
train
// updateEndpointsCaches iterates over a given list of rules to update the cache // within the rule which determines whether or not the given identity is // selected by that rule. If a rule in the list does select said identity, it is // added to epIDSet. Note that epIDSet can be shared across goroutines! // Returns wh...
{ "resource": "" }
c163536
train
// startXDSGRPCServer starts a gRPC server to serve xDS APIs using the given // resource watcher and network listener. // Returns a function that stops the GRPC server when called.
{ "resource": "" }
c163537
train
// DeleteElement deletes the map element with the given key.
{ "resource": "" }
c163538
train
// ObjPin stores the map's fd in pathname.
{ "resource": "" }
c163539
train
// ObjGet reads the pathname and returns the map's fd read.
{ "resource": "" }
c163540
train
// MapFdFromID retrieves a file descriptor based on a map ID.
{ "resource": "" }
c163541
train
// NewGetEndpointIDConfig creates a new http.Handler for the get endpoint ID config operation
{ "resource": "" }
c163542
train
// Covers returns true if the ports and protocol specified in the received // PortProtocol are equal to or a superset of the ports and protocol in 'other'.
{ "resource": "" }
c163543
train
// Len returns the total number of rules inside `L7Rules`. // Returns 0 if nil.
{ "resource": "" }
c163544
train
// IsEmpty returns whether the `L7Rules` is nil or contains nil rules.
{ "resource": "" }
c163545
train
// computeDesiredL4PolicyMapEntries transforms the EndpointPolicy.L4Policy into // the datapath-friendly format inside EndpointPolicy.PolicyMapState.
{ "resource": "" }
c163546
train
// getNetlinkRoute returns the route configuration as netlink.Route
{ "resource": "" }
c163547
train
// getNexthopAsIPNet returns the nexthop of the route as IPNet
{ "resource": "" }
c163548
train
// Lookup attempts to find the linux route based on the route specification. // If the route exists, the route is returned, otherwise an error is returned.
{ "resource": "" }
c163549
train
// replaceNexthopRoute verifies that the L2 route for the router IP which is // used as nexthop for all node routes is properly installed. If unavailable or // incorrect, it will be replaced with the proper L2 route.
{ "resource": "" }
c163550
train
// Delete deletes a Linux route. An error is returned if the route does not // exist or if the route could not be deleted.
{ "resource": "" }
c163551
train
// ReplaceRule add or replace rule in the routing table using a mark to indicate // table. Used with BPF datapath to set mark and direct packets to route table.
{ "resource": "" }
c163552
train
// ReplaceRuleIPv6 add or replace IPv6 rule in the routing table using a mark to // indicate table.
{ "resource": "" }
c163553
train
// DeleteRule delete a mark based rule from the routing table.
{ "resource": "" }
c163554
train
// DeleteRuleIPv6 delete a mark based IPv6 rule from the routing table.
{ "resource": "" }
c163555
train
// NewPutStatusProbe creates a new http.Handler for the put status probe operation
{ "resource": "" }
c163556
train
// parseModulesFile returns the list of loaded kernel modules names.
{ "resource": "" }
c163557
train
// runGC run CT's garbage collector for the given endpoint. `isLocal` refers if // the CT map is set to local. If `isIPv6` is set specifies that is the IPv6 // map. `filter` represents the filter type to be used while looping all CT // entries. // // The provided endpoint is optional; if it is provided, then its map wi...
{ "resource": "" }
c163558
train
// EnableConntrackGC enables the connection tracking garbage collection.
{ "resource": "" }
c163559
train
// NewGetServiceID creates a new http.Handler for the get service ID operation
{ "resource": "" }
c163560
train
// Less returns true if the element in index `i` is lower than the element // in index `j`
{ "resource": "" }
c163561
train
// GetIdentityCache returns a cache of all known identities
{ "resource": "" }
c163562
train
// GetIdentities returns all known identities
{ "resource": "" }
c163563
train
// watch starts the identity watcher
{ "resource": "" }
c163564
train
// LookupIdentity looks up the identity by its labels but does not create it. // This function will first search through the local cache and fall back to // querying the kvstore.
{ "resource": "" }
c163565
train
// LookupReservedIdentityByLabels looks up a reserved identity by its labels and // returns it if found. Returns nil if not found.
{ "resource": "" }
c163566
train
// LookupIdentityByID returns the identity by ID. This function will first // search through the local cache and fall back to querying the kvstore.
{ "resource": "" }
c163567
train
// AddUserDefinedNumericIdentitySet adds all key-value pairs from the given map // to the map of user defined numeric identities and reserved identities. // The key-value pairs should map a numeric identity to a valid label. // Is not safe for concurrent use.
{ "resource": "" }
c163568
train
// CiliumV2 retrieves the CiliumV2Client
{ "resource": "" }
c163569
train
// IPv6Routes returns IPv6 routes to be installed in endpoint's networking namespace.
{ "resource": "" }
c163570
train
// IPv4Routes returns IPv4 routes to be installed in endpoint's networking namespace.
{ "resource": "" }
c163571
train
// SufficientAddressing returns an error if the provided NodeAddressing does // not provide sufficient information to derive all IPAM required settings.
{ "resource": "" }
c163572
train
// GetMap returns a map of statistic names to stats
{ "resource": "" }
c163573
train
// release removes the specified key from the kvstore.
{ "resource": "" }
c163574
train
// release removes a reference to the specified key. If the number of // references reaches 0, the key is removed from the underlying kvstore.
{ "resource": "" }
c163575
train
// NewIPIdentityWatcher creates a new IPIdentityWatcher using the specified // kvstore backend
{ "resource": "" }
c163576
train
// InitIPIdentityWatcher initializes the watcher for ip-identity mapping events // in the key-value store.
{ "resource": "" }
c163577
train
// SetListeners sets the listeners for this IPCache.
{ "resource": "" }
c163578
train
// checkPrefixes ensures that we will reject rules if the import of those // rules would cause the underlying implementation of the ipcache to exceed // the maximum number of supported CIDR prefix lengths.
{ "resource": "" }
c163579
train
// refPrefixLength adds one reference to the prefix length in the map.
{ "resource": "" }
c163580
train
// refPrefixLength removes one reference from the prefix length in the map.
{ "resource": "" }
c163581
train
// endpointIPToCIDR converts the endpoint IP into an equivalent full CIDR.
{ "resource": "" }
c163582
train
// DumpToListenerLocked dumps the entire contents of the IPCache by triggering // the listener's "OnIPIdentityCacheChange" method for each entry in the cache.
{ "resource": "" }
c163583
train
// deleteLocked removes removes the provided IP-to-security-identity mapping // from ipc with the assumption that the IPCache's mutex is held.
{ "resource": "" }
c163584
train
// Delete removes the provided IP-to-security-identity mapping from the IPCache.
{ "resource": "" }
c163585
train
// LookupByIP returns the corresponding security identity that endpoint IP maps // to within the provided IPCache, as well as if the corresponding entry exists // in the IPCache.
{ "resource": "" }
c163586
train
// LookupByIPRLocked returns the corresponding security identity that endpoint IP maps // to within the provided IPCache, as well as if the corresponding entry exists // in the IPCache.
{ "resource": "" }
c163587
train
// LookupByPrefix returns the corresponding security identity that endpoint IP // maps to within the provided IPCache, as well as if the corresponding entry // exists in the IPCache.
{ "resource": "" }
c163588
train
// firstGlobalV6Addr returns first IPv6 global IP of an interface, see // firstGlobalV4Addr for more details.
{ "resource": "" }
c163589
train
// SetInternalIPv4From sets the internal IPv4 with the first global address // found in that interface.
{ "resource": "" }
c163590
train
// Validate validates this endpoint policy enabled
{ "resource": "" }
c163591
train
// NewIDAllocator creates a new ID allocator instance.
{ "resource": "" }
c163592
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSGroup.
{ "resource": "" }
c163593
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRRule.
{ "resource": "" }
c163594
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRRuleSlice.
{ "resource": "" }
c163595
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRSlice.
{ "resource": "" }
c163596
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressRule.
{ "resource": "" }
c163597
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSelector.
{ "resource": "" }
c163598
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSelectorSlice.
{ "resource": "" }
c163599
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntitySlice.
{ "resource": "" }