_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c163900
train
// Validate validates this daemon configuration spec
{ "resource": "" }
c163901
train
// replaceDatapath the qdisc and BPF program for a endpoint
{ "resource": "" }
c163902
train
// DeleteDatapath filter from the given ifName
{ "resource": "" }
c163903
train
// CheckAPIKeyRole checks the apiKey value in the request, and returns true if // it is allowed else false
{ "resource": "" }
c163904
train
// GetAPIVersion returns the APIVersion as integer or the bool set to true if // any API version is allowed
{ "resource": "" }
c163905
train
// MapRoleToAPIKey maps the Role to the low level set of APIKeys for that role
{ "resource": "" }
c163906
train
// WithPayload adds the payload to the get endpoint Id log o k response
{ "resource": "" }
c163907
train
// GetPolicyStatus returns the CiliumNetworkPolicyNodeStatus corresponding to // nodeName in the provided CiliumNetworkPolicy. If Nodes within the rule's // Status is nil, returns an empty CiliumNetworkPolicyNodeStatus.
{ "resource": "" }
c163908
train
// SetPolicyStatus sets the given policy status for the given nodes' map
{ "resource": "" }
c163909
train
// SetDerivedPolicyStatus set the derivative policy status for the given // derivative policy name.
{ "resource": "" }
c163910
train
// SpecEquals returns true if the spec and specs metadata is the sa
{ "resource": "" }
c163911
train
// Parse parses a CiliumNetworkPolicy and returns a list of cilium policy // rules.
{ "resource": "" }
c163912
train
// GetControllerName returns the unique name for the controller manager.
{ "resource": "" }
c163913
train
// GetIdentityLabels returns all rule labels in the CiliumNetworkPolicy.
{ "resource": "" }
c163914
train
// RequiresDerivative return true if the CNP has any rule that will create a new // derivative rule.
{ "resource": "" }
c163915
train
// Sort sorts the ControllerList by controller name
{ "resource": "" }
c163916
train
// Sort sorts a list AllowedIdentityTuple by numeric identity, port and protocol
{ "resource": "" }
c163917
train
// Sort sorts an AddressPairList by IPv4 and IPv6 address
{ "resource": "" }
c163918
train
// DeepCopyInto is an inefficient hack to allow reusing models.Endpoint in the // CiliumEndpoint CRD.
{ "resource": "" }
c163919
train
// Must be called when endpoint is still locked.
{ "resource": "" }
c163920
train
// Logger returns the logger for the endpoint that is being cached.
{ "resource": "" }
c163921
train
// OpenInstance creates a new instance or finds an existing one with equivalent parameters. // returns the instance id.
{ "resource": "" }
c163922
train
// Close returns the new open count
{ "resource": "" }
c163923
train
// Update the PolicyMap from a protobuf. PolicyMap is only ever changed if the whole update is successful.
{ "resource": "" }
c163924
train
// GetHostPrimaryAddress returns the PrimaryAddress for the Host within node. // If node.Host is nil, returns nil.
{ "resource": "" }
c163925
train
// FormatHealthStatusResponse writes a HealthStatusResponse as a string to the // writer. // // 'printAll', if true, causes all nodes to be printed regardless of status // 'succinct', if true, causes node health to be output as one line per node // 'verbose', if true, overrides 'succinct' and prints all information // ...
{ "resource": "" }
c163926
train
// Execute is an entry point for node monitor
{ "resource": "" }
c163927
train
// buildServerOrExit opens a listener socket at path. It exits with logging on // all errors.
{ "resource": "" }
c163928
train
// Validate validates this endpoint change request
{ "resource": "" }
c163929
train
// WithTimeout adds the timeout to the put policy params
{ "resource": "" }
c163930
train
// WithContext adds the context to the put policy params
{ "resource": "" }
c163931
train
// WithHTTPClient adds the HTTPClient to the put policy params
{ "resource": "" }
c163932
train
// WithPolicy adds the policy to the put policy params
{ "resource": "" }
c163933
train
// MapUpdateContext updates the encrypt state with ctxID to use the new keyID
{ "resource": "" }
c163934
train
// String returns a human readable representation of the response message
{ "resource": "" }
c163935
train
// ReadResponse will read a Kafka response from an io.Reader and return the // message or an error.
{ "resource": "" }
c163936
train
// CiliumEndpoints returns a CiliumEndpointInformer.
{ "resource": "" }
c163937
train
// CiliumNetworkPolicies returns a CiliumNetworkPolicyInformer.
{ "resource": "" }
c163938
train
// ForEach runs epFunc asynchronously for all endpoints in the EndpointSet. It // signals to the provided WaitGroup when epFunc has been executed for each // endpoint.
{ "resource": "" }
c163939
train
// Delete removes ep from the EndpointSet.
{ "resource": "" }
c163940
train
// Insert adds ep to the EndpointSet.
{ "resource": "" }
c163941
train
// Len returns the number of elements in the EndpointSet.
{ "resource": "" }
c163942
train
// SetupVethRemoteNs renames the netdevice in the target namespace to the // provided dstIfName.
{ "resource": "" }
c163943
train
// SetupVeth sets up the net interface, the temporary interface and fills up some endpoint // fields such as LXCMAC, NodeMac, IfIndex and IfName. Returns a pointer for the created // veth, a pointer for the temporary link, the name of the temporary link and error if // something fails.
{ "resource": "" }
c163944
train
// SetupVethWithNames sets up the net interface, the temporary interface and fills up some endpoint // fields such as LXCMAC, NodeMac, IfIndex and IfName. Returns a pointer for the created // veth, a pointer for the temporary link, the name of the temporary link and error if // something fails.
{ "resource": "" }
c163945
train
// getNetHttpHeaders returns the Headers as net.http.Header
{ "resource": "" }
c163946
train
// getProtocol returns the HTTP protocol in the format that Cilium understands
{ "resource": "" }
c163947
train
// WithTimeout adds the timeout to the get hello params
{ "resource": "" }
c163948
train
// WithContext adds the context to the get hello params
{ "resource": "" }
c163949
train
// WithHTTPClient adds the HTTPClient to the get hello params
{ "resource": "" }
c163950
train
// GetServices returns a list of all services.
{ "resource": "" }
c163951
train
// GetServiceID returns a service by ID.
{ "resource": "" }
c163952
train
// PutServiceID creates or updates a service. Returns true if service was created.
{ "resource": "" }
c163953
train
// DeleteServiceID deletes a service by ID.
{ "resource": "" }
c163954
train
// Validate validates this IP a m response
{ "resource": "" }
c163955
train
// CalculateDuration calculates the backoff duration based on minimum base // interval, exponential factor, jitter and number of failures.
{ "resource": "" }
c163956
train
// Wait waits for the required time using an exponential backoff
{ "resource": "" }
c163957
train
// Duration returns the wait duration for the nth attempt
{ "resource": "" }
c163958
train
// wrap takes an endpoint configuration and optional stats tracker and wraps // it inside a templateCfg which hides static data from callers that wish to // generate header files based on the configuration, substituting it for // template data.
{ "resource": "" }
c163959
train
// elfMapSubstitutions returns the set of map substitutions that must occur in // an ELF template object file to update map references for the specified // endpoint.
{ "resource": "" }
c163960
train
// sliceToU16 converts the input slice of two bytes to a uint16.
{ "resource": "" }
c163961
train
// sliceToU32 converts the input slice of four bytes to a uint32.
{ "resource": "" }
c163962
train
// elfVariableSubstitutions returns the set of data substitutions that must // occur in an ELF template object file to update static data for the specified // endpoint.
{ "resource": "" }
c163963
train
// ELFSubstitutions fetches the set of variable and map substitutions that // must be implemented against an ELF template to configure the datapath for // the specified endpoint.
{ "resource": "" }
c163964
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerStatus.
{ "resource": "" }
c163965
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerStatusStatus.
{ "resource": "" }
c163966
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMStatus.
{ "resource": "" }
c163967
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sStatus.
{ "resource": "" }
c163968
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAddressing.
{ "resource": "" }
c163969
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeElement.
{ "resource": "" }
c163970
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyStatistics.
{ "resource": "" }
c163971
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestResponseStatistics.
{ "resource": "" }
c163972
train
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusResponse.
{ "resource": "" }
c163973
train
// NewCiliumEndpointInformer constructs a new informer for CiliumEndpoint 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": "" }
c163974
train
// WithTimeout adds the timeout to the get map params
{ "resource": "" }
c163975
train
// WithContext adds the context to the get map params
{ "resource": "" }
c163976
train
// WithHTTPClient adds the HTTPClient to the get map params
{ "resource": "" }
c163977
train
// WithTimeout adds the timeout to the get metrics params
{ "resource": "" }
c163978
train
// WithContext adds the context to the get metrics params
{ "resource": "" }
c163979
train
// WithHTTPClient adds the HTTPClient to the get metrics params
{ "resource": "" }
c163980
train
// createEnvoyRedirect creates a redirect with corresponding proxy // configuration. This will launch a proxy instance.
{ "resource": "" }
c163981
train
// UpdateRules is a no-op for envoy, as redirect data is synchronized via the // xDS cache.
{ "resource": "" }
c163982
train
// WithTimeout adds the timeout to the patch prefilter params
{ "resource": "" }
c163983
train
// WithContext adds the context to the patch prefilter params
{ "resource": "" }
c163984
train
// WithHTTPClient adds the HTTPClient to the patch prefilter params
{ "resource": "" }
c163985
train
// WithPrefilterSpec adds the prefilterSpec to the patch prefilter params
{ "resource": "" }
c163986
train
// String returns a human readable representation of an Error
{ "resource": "" }
c163987
train
// getFatalError returns an Error object if the client instance has raised a fatal error, else nil.
{ "resource": "" }
c163988
train
// new_cparts_from_TopicPartitions creates a new C rd_kafka_topic_partition_list_t // from a TopicPartition array.
{ "resource": "" }
c163989
train
// Subscribe to a single topic // This replaces the current subscription
{ "resource": "" }
c163990
train
// SubscribeTopics subscribes to the provided list of topics. // This replaces the current subscription.
{ "resource": "" }
c163991
train
// Unsubscribe from the current subscription, if any.
{ "resource": "" }
c163992
train
// Assign an atomic set of partitions to consume. // This replaces the current assignment.
{ "resource": "" }
c163993
train
// Unassign the current set of partitions to consume.
{ "resource": "" }
c163994
train
// commit offsets for specified offsets. // If offsets is nil the currently assigned partitions' offsets are committed. // This is a blocking call, caller will need to wrap in go-routine to // get async or throw-away behaviour.
{ "resource": "" }
c163995
train
// CommitMessage commits offset based on the provided message. // This is a blocking call. // Returns the committed offsets on success.
{ "resource": "" }
c163996
train
// CommitOffsets commits the provided list of offsets // This is a blocking call. // Returns the committed offsets on success.
{ "resource": "" }
c163997
train
// Close Consumer instance. // The object is no longer usable after this call.
{ "resource": "" }
c163998
train
// rebalance calls the application's rebalance callback, if any. // Returns true if the underlying assignment was updated, else false.
{ "resource": "" }
c163999
train
// consumerReader reads messages and events from the librdkafka consumer queue // and posts them on the consumer channel. // Runs until termChan closes
{ "resource": "" }