_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c162900 | train | // AnnotateNode writes v4 and v6 CIDRs and health IPs in the given k8s node name.
// In case of failure while updating the node, this function while spawn a go
// routine to retry the node update indefinitely. | {
"resource": ""
} | ||
c162901 | train | // Validate validates this endpoint health status | {
"resource": ""
} | ||
c162902 | train | // createKafkaRedirect creates a redirect to the kafka proxy. The redirect structure passed
// in is safe to access for reading and writing. | {
"resource": ""
} | ||
c162903 | train | // canAccess determines if the kafka message req sent by identity is allowed to
// be forwarded according to the rules configured on kafkaRedirect | {
"resource": ""
} | ||
c162904 | train | // log Kafka log records | {
"resource": ""
} | ||
c162905 | train | // UpdateRules atomically replaces the proxy rules in effect for this redirect.
// It is not aware of revision number and doesn't account for out-of-order
// calls to UpdateRules or the returned RevertFunc. | {
"resource": ""
} | ||
c162906 | train | // creatednsRedirect creates a redirect to the dns proxy. The redirect structure passed
// in is safe to access for reading and writing. | {
"resource": ""
} | ||
c162907 | train | // FromString converts a version string into struct | {
"resource": ""
} | ||
c162908 | train | // Base64 returns the version in a base64 format. | {
"resource": ""
} | ||
c162909 | train | // Get takes name of the ciliumNetworkPolicy, and returns the corresponding ciliumNetworkPolicy object, and an error if there is any. | {
"resource": ""
} | ||
c162910 | train | // List takes label and field selectors, and returns the list of CiliumNetworkPolicies that match those selectors. | {
"resource": ""
} | ||
c162911 | train | // Watch returns a watch.Interface that watches the requested ciliumNetworkPolicies. | {
"resource": ""
} | ||
c162912 | train | // Delete takes name of the ciliumNetworkPolicy and deletes it. Returns an error if one occurs. | {
"resource": ""
} | ||
c162913 | train | // Patch applies the patch and returns the patched ciliumNetworkPolicy. | {
"resource": ""
} | ||
c162914 | train | // WithPayload adds the payload to the patch endpoint Id config failed response | {
"resource": ""
} | ||
c162915 | train | // Matches returns true if the Rule matches | {
"resource": ""
} | ||
c162916 | train | // L7RuleParser parses protobuf L7 rules to and array of Rule
// May panic | {
"resource": ""
} | ||
c162917 | train | // OnData parses memcached data | {
"resource": ""
} | ||
c162918 | train | // registerWorkload must be called by container runtimes to register themselves | {
"resource": ""
} | ||
c162919 | train | // getWorkload finds a registered workload by name | {
"resource": ""
} | ||
c162920 | train | // GetRuntimeDefaultOpt returns the default options for the given container
// runtime. | {
"resource": ""
} | ||
c162921 | train | // GetRuntimeOptions returns a string representation of the container runtimes
// stored and the list of options for each container runtime. | {
"resource": ""
} | ||
c162922 | train | // GetDefaultEPOptsStringWithPrefix returns the defaults options for each
// runtime with the given prefix. | {
"resource": ""
} | ||
c162923 | train | // Matches returns true if the entity matches the labels | {
"resource": ""
} | ||
c162924 | train | // Matches returns true if any of the entities in the slice match the labels | {
"resource": ""
} | ||
c162925 | train | // GetAsEndpointSelectors returns the provided entity slice as a slice of
// endpoint selectors | {
"resource": ""
} | ||
c162926 | train | // InitEntities is called to initialize the policy API layer | {
"resource": ""
} | ||
c162927 | train | // mutex need not be held, as this only refers to immutable members in the static slice. | {
"resource": ""
} | ||
c162928 | train | // ReinstallRules is called by daemon reconfiguration to re-install proxy ports rules that
// were removed during the removal of all Cilium rules. | {
"resource": ""
} | ||
c162929 | train | // RemoveRedirect removes an existing redirect. | {
"resource": ""
} | ||
c162930 | train | // removeRedirect removes an existing redirect. p.mutex must be held
// p.mutex must NOT be held when the returned finalize and revert functions are called! | {
"resource": ""
} | ||
c162931 | train | // GetStatusModel returns the proxy status as API model | {
"resource": ""
} | ||
c162932 | train | // UpdateRedirectMetrics updates the redirect metrics per application protocol
// in Prometheus. Lock needs to be held to call this function. | {
"resource": ""
} | ||
c162933 | train | // WithPayload adds the payload to the patch endpoint Id labels update failed response | {
"resource": ""
} | ||
c162934 | train | // Version returns the version of the Kubernetes apiserver | {
"resource": ""
} | ||
c162935 | train | // Capabilities returns the capabilities of the Kubernetes apiserver | {
"resource": ""
} | ||
c162936 | train | // Force forces the use of a specific version | {
"resource": ""
} | ||
c162937 | train | // Update retrieves the version of the Kubernetes apiserver and derives the
// capabilities. This function must be called after connectivity to the
// apiserver has been established. | {
"resource": ""
} | ||
c162938 | train | // NewGetEndpointID creates a new http.Handler for the get endpoint ID operation | {
"resource": ""
} | ||
c162939 | train | // getLogger returns a logrus object with EndpointID, ContainerID and the Endpoint
// revision fields. | {
"resource": ""
} | ||
c162940 | train | // Logger returns a logrus object with EndpointID, ContainerID and the Endpoint
// revision fields. The caller must specify their subsystem. | {
"resource": ""
} | ||
c162941 | train | // Validate validates this backend address | {
"resource": ""
} | ||
c162942 | train | // ParseNodeAddressType converts a Kubernetes NodeAddressType to a Cilium
// NodeAddressType. If the Kubernetes NodeAddressType does not have a
// corresponding Cilium AddressType, returns an error. | {
"resource": ""
} | ||
c162943 | train | // GetNode returns the kubernetes nodeName's node information from the
// kubernetes api server | {
"resource": ""
} | ||
c162944 | train | // NewIPPrefixID returns an identifier based on the IP address specified | {
"resource": ""
} | ||
c162945 | train | // splitID splits ID into prefix and id. No validation is performed on prefix. | {
"resource": ""
} | ||
c162946 | train | // ParseCiliumID parses id as cilium endpoint id and returns numeric portion. | {
"resource": ""
} | ||
c162947 | train | // Validate validates this service spec | {
"resource": ""
} | ||
c162948 | train | // Validate validates this node element | {
"resource": ""
} | ||
c162949 | train | // l3n4Addr2ServiceKey converts the given l3n4Addr to a ServiceKey with the slave ID
// set to 0. | {
"resource": ""
} | ||
c162950 | train | // LBSVC2ServiceKeynValue transforms the SVC Cilium type into a bpf SVC type. | {
"resource": ""
} | ||
c162951 | train | // L3n4Addr2RevNatKeynValue converts the given L3n4Addr to a RevNatKey and RevNatValue. | {
"resource": ""
} | ||
c162952 | train | // serviceKeynValue2FEnBE converts the given svcKey and svcValue to a frontend in the
// form of L3n4AddrID and backend in the form of L3n4Addr. | {
"resource": ""
} | ||
c162953 | train | // RevNat6Value2L3n4Addr converts the given RevNat6Value to a L3n4Addr. | {
"resource": ""
} | ||
c162954 | train | // revNat4Value2L3n4Addr converts the given RevNat4Value to a L3n4Addr. | {
"resource": ""
} | ||
c162955 | train | // revNatValue2L3n4AddrID converts the given RevNatKey and RevNatValue to a L3n4AddrID. | {
"resource": ""
} | ||
c162956 | train | // LBSVC2ServiceKeynValuenBackendValueV2 transforms the SVC Cilium type into a bpf SVC v2 type. | {
"resource": ""
} | ||
c162957 | train | // GetDefaultPrefixLengths returns the set of prefix lengths for handling
// CIDRs that are unconditionally mapped to identities, ie for the reserved
// identities 'host', 'world'. | {
"resource": ""
} | ||
c162958 | train | // Insert places 'cidr' and its corresponding rule labels into map 'm'. Returns
// `1` if `cidr` is added to the map, `0` otherwise. | {
"resource": ""
} | ||
c162959 | train | // NewCIDRPolicy creates a new CIDRPolicy. | {
"resource": ""
} | ||
c162960 | train | // GetModel returns the API model representation of the CIDRPolicy. | {
"resource": ""
} | ||
c162961 | train | // Validate returns error if the CIDR policy might lead to code generation failure | {
"resource": ""
} | ||
c162962 | train | // WithPayload adds the payload to the delete policy o k response | {
"resource": ""
} | ||
c162963 | train | // WithPayload adds the payload to the delete policy invalid response | {
"resource": ""
} | ||
c162964 | train | // WithPayload adds the payload to the delete policy failure response | {
"resource": ""
} | ||
c162965 | train | // String returns the human readable representation of an EndpointInfo | {
"resource": ""
} | ||
c162966 | train | // WriteEndpoint updates the BPF map with the endpoint information and links
// the endpoint information to all keys provided. | {
"resource": ""
} | ||
c162967 | train | // AddHostEntry adds a special endpoint which represents the local host | {
"resource": ""
} | ||
c162968 | train | // SyncHostEntry checks if a host entry exists in the lxcmap and adds one if needed.
// Returns boolean indicating if a new entry was added and an error. | {
"resource": ""
} | ||
c162969 | train | // DeleteElement deletes the endpoint using all keys which represent the
// endpoint. It returns the number of errors encountered during deletion. | {
"resource": ""
} | ||
c162970 | train | // DumpToMap dumps the contents of the lxcmap into a map and returns it | {
"resource": ""
} | ||
c162971 | train | // NewPatchConfig creates a new http.Handler for the patch config operation | {
"resource": ""
} | ||
c162972 | train | // newCiliumNetworkPolicies returns a CiliumNetworkPolicies | {
"resource": ""
} | ||
c162973 | train | // WithTimeout adds the timeout to the delete fqdn cache params | {
"resource": ""
} | ||
c162974 | train | // WithContext adds the context to the delete fqdn cache params | {
"resource": ""
} | ||
c162975 | train | // WithHTTPClient adds the HTTPClient to the delete fqdn cache params | {
"resource": ""
} | ||
c162976 | train | // WithMatchpattern adds the matchpattern to the delete fqdn cache params | {
"resource": ""
} | ||
c162977 | train | // WithTimeout adds the timeout to the delete endpoint ID params | {
"resource": ""
} | ||
c162978 | train | // WithContext adds the context to the delete endpoint ID params | {
"resource": ""
} | ||
c162979 | train | // WithHTTPClient adds the HTTPClient to the delete endpoint ID params | {
"resource": ""
} | ||
c162980 | train | // WithID adds the id to the delete endpoint ID params | {
"resource": ""
} | ||
c162981 | train | // Validate validates this cluster status | {
"resource": ""
} | ||
c162982 | train | // String renders the map type into a user-readable string. | {
"resource": ""
} | ||
c162983 | train | // sortProxyStats sorts the given slice of ProxyStatistics. | {
"resource": ""
} | ||
c162984 | train | // NewOpLabels creates new initialized OpLabels | {
"resource": ""
} | ||
c162985 | train | // IdentityLabels returns map of labels that are used when determining a
// security identity. | {
"resource": ""
} | ||
c162986 | train | // GetIdentityLabel returns the value of the given Key from all IdentityLabels. | {
"resource": ""
} | ||
c162987 | train | // AllLabels returns all Labels within the provided OpLabels. | {
"resource": ""
} | ||
c162988 | train | // upsertLabel updates or inserts 'label' in 'l', but only if exactly the same label
// was not already in 'l'. Returns 'true' if a label was added, or an old label was
// updated, 'false' otherwise. | {
"resource": ""
} | ||
c162989 | train | // deleteUnMarked deletes the labels which have not been marked for keeping.
// Returns true if any of them were deleted. | {
"resource": ""
} | ||
c162990 | train | // List lists all CiliumEndpoints in the indexer. | {
"resource": ""
} | ||
c162991 | train | // CiliumEndpoints returns an object that can list and get CiliumEndpoints. | {
"resource": ""
} | ||
c162992 | train | // List lists all CiliumEndpoints in the indexer for a given namespace. | {
"resource": ""
} | ||
c162993 | train | // Get retrieves the CiliumEndpoint from the indexer for a given namespace and name. | {
"resource": ""
} | ||
c162994 | train | // OrderEndpointModelAsc orders the slice of Endpoint in ascending ID order. | {
"resource": ""
} | ||
c162995 | train | // OrderEndpointAsc orders the slice of Endpoint in ascending ID order. | {
"resource": ""
} | ||
c162996 | train | // ToString iterates through Map m and writes the values of the ct entries in m
// to a string. | {
"resource": ""
} | ||
c162997 | train | // NewMap creates a new CT map of the specified type with the specified name. | {
"resource": ""
} | ||
c162998 | train | // doGC6 iterates through a CTv6 map and drops entries based on the given
// filter. | {
"resource": ""
} | ||
c162999 | train | // GC runs garbage collection for map m with name mapType with the given filter.
// It returns how many items were deleted from m. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.