_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c162300 | train | // Enable runs an HTTP server to serve the pprof API | {
"resource": ""
} | ||
c162301 | train | // Create creates binary memcached parser | {
"resource": ""
} | ||
c162302 | train | // Validate validates this health response | {
"resource": ""
} | ||
c162303 | train | // Helper function to mock docker calls to networks endpoint | {
"resource": ""
} | ||
c162304 | train | // GetAllInfraContainersPID returns a map that maps container IDs to the PID
// of that container. | {
"resource": ""
} | ||
c162305 | train | // mapTypeToFeatureString maps a MapType into a string defined by run_probes.sh | {
"resource": ""
} | ||
c162306 | train | // EndpointCorrelationSleepTime returns the sleep time between correlation
// attempts | {
"resource": ""
} | ||
c162307 | train | // returns injected bytes | {
"resource": ""
} | ||
c162308 | train | // NewIPv4OnlyNodeAddressing returns a new fake node addressing where IPv6 is
// disabled | {
"resource": ""
} | ||
c162309 | train | // NewNodeAddressing returns a new fake node addressing | {
"resource": ""
} | ||
c162310 | train | // WithTimeout adds the timeout to the get endpoint ID labels params | {
"resource": ""
} | ||
c162311 | train | // WithContext adds the context to the get endpoint ID labels params | {
"resource": ""
} | ||
c162312 | train | // WithHTTPClient adds the HTTPClient to the get endpoint ID labels params | {
"resource": ""
} | ||
c162313 | train | // WithID adds the id to the get endpoint ID labels params | {
"resource": ""
} | ||
c162314 | train | // WithPayload adds the payload to the get service o k response | {
"resource": ""
} | ||
c162315 | train | // NewUUID returns a new UUID | {
"resource": ""
} | ||
c162316 | train | // WithTimeout adds the timeout to the patch endpoint ID config params | {
"resource": ""
} | ||
c162317 | train | // WithContext adds the context to the patch endpoint ID config params | {
"resource": ""
} | ||
c162318 | train | // WithHTTPClient adds the HTTPClient to the patch endpoint ID config params | {
"resource": ""
} | ||
c162319 | train | // WithEndpointConfiguration adds the endpointConfiguration to the patch endpoint ID config params | {
"resource": ""
} | ||
c162320 | train | // WithID adds the id to the patch endpoint ID config params | {
"resource": ""
} | ||
c162321 | train | // CreateConfig creates a rest.Config for a given endpoint using a kubeconfig file. | {
"resource": ""
} | ||
c162322 | train | // CreateConfigFromAgentResponse creates a client configuration from a
// models.DaemonConfigurationResponse | {
"resource": ""
} | ||
c162323 | train | // CreateClient creates a new client to access the Kubernetes API | {
"resource": ""
} | ||
c162324 | train | // isConnReady returns the err for the controller-manager status | {
"resource": ""
} | ||
c162325 | train | // getBackendsV2 makes a copy of backendsV2, so that they are safe to use
// after the bpfService lock has been released. | {
"resource": ""
} | ||
c162326 | train | // restoreService restores service cache of the given legacy and v2 service. | {
"resource": ""
} | ||
c162327 | train | // prepareUpdate prepares the caches to reflect the changes in the given svc.
// The given backends should not contain a service value of a master service. | {
"resource": ""
} | ||
c162328 | train | // addBackendV2Locked increments a ref count for the given backend and returns
// whether any instance of the backend existed before. | {
"resource": ""
} | ||
c162329 | train | // delBackendV2Locked decrements a ref count for the given backend aand returns
// whether there are any instance of the backend left. | {
"resource": ""
} | ||
c162330 | train | // removeServiceV2 removes the service v2 from the cache. | {
"resource": ""
} | ||
c162331 | train | // removeBackendsWithRefCountZero removes backends from the cache which are not
// used by any service. | {
"resource": ""
} | ||
c162332 | train | // bindCidr binds and validates parameter Cidr from query. | {
"resource": ""
} | ||
c162333 | train | // StartAccessLogServer starts the access log server. | {
"resource": ""
} | ||
c162334 | train | // Duration returns the duration of the dump. | {
"resource": ""
} | ||
c162335 | train | // LabelSelectorString returns a user-friendly string representation of
// EndpointSelector. | {
"resource": ""
} | ||
c162336 | train | // String returns a string representation of EndpointSelector. | {
"resource": ""
} | ||
c162337 | train | // UnmarshalJSON unmarshals the endpoint selector from the byte array. | {
"resource": ""
} | ||
c162338 | train | // MarshalJSON returns a JSON representation of the byte array. | {
"resource": ""
} | ||
c162339 | train | // HasKeyPrefix checks if the endpoint selector contains the given key prefix in
// its MatchLabels map and MatchExpressions slice. | {
"resource": ""
} | ||
c162340 | train | // HasKey checks if the endpoint selector contains the given key in
// its MatchLabels map or in its MatchExpressions slice. | {
"resource": ""
} | ||
c162341 | train | // GetMatch checks for a match on the specified key, and returns the value that
// the key must match, and true. If a match cannot be found, returns nil, false. | {
"resource": ""
} | ||
c162342 | train | // NewESFromLabels creates a new endpoint selector from the given labels. | {
"resource": ""
} | ||
c162343 | train | // newReservedEndpointSelector returns a selector that matches on all
// endpoints with the specified reserved label. | {
"resource": ""
} | ||
c162344 | train | // NewESFromK8sLabelSelector returns a new endpoint selector from the label
// where it the given srcPrefix will be encoded in the label's keys. | {
"resource": ""
} | ||
c162345 | train | // AddMatch adds a match for 'key' == 'value' to the endpoint selector. | {
"resource": ""
} | ||
c162346 | train | // Matches returns true if the endpoint selector Matches the `lblsToMatch`.
// Returns always true if the endpoint selector contains the reserved label for
// "all". | {
"resource": ""
} | ||
c162347 | train | // IsWildcard returns true if the endpoint selector selects all endpoints. | {
"resource": ""
} | ||
c162348 | train | // ConvertToLabelSelectorRequirementSlice converts the MatchLabels and
// MatchExpressions within the specified EndpointSelector into a list of
// LabelSelectorRequirements. | {
"resource": ""
} | ||
c162349 | train | // sanitize returns an error if the EndpointSelector's LabelSelector is invalid. | {
"resource": ""
} | ||
c162350 | train | // Matches returns true if any of the EndpointSelectors in the slice match the
// provided labels | {
"resource": ""
} | ||
c162351 | train | // SelectsAllEndpoints returns whether the EndpointSelectorSlice selects all
// endpoints, which is true if the wildcard endpoint selector is present in the
// slice. | {
"resource": ""
} | ||
c162352 | train | // NewGetMapName creates a new http.Handler for the get map name operation | {
"resource": ""
} | ||
c162353 | train | // NewWaitGroup returns a new WaitGroup using the given context. | {
"resource": ""
} | ||
c162354 | train | // Wait blocks until all completions added by calling AddCompletion are
// completed, or the context is canceled, whichever happens first.
// Returns the context's error if it is cancelled, nil otherwise.
// No callbacks of the completions in this wait group will be called after
// this returns.
// Returns the error va... | {
"resource": ""
} | ||
c162355 | train | // Err returns a non-nil error if the completion ended in error | {
"resource": ""
} | ||
c162356 | train | // Complete notifies of the completion of the asynchronous computation.
// Idempotent.
// If the operation completed successfully 'err' is passed as nil.
// Returns the error state the completion completed with, which is
// gnerally different from 'err' if already completed. | {
"resource": ""
} | ||
c162357 | train | // WithPayload adds the payload to the get identity o k response | {
"resource": ""
} | ||
c162358 | train | // WithPayload adds the payload to the get identity unreachable response | {
"resource": ""
} | ||
c162359 | train | // WithPayload adds the payload to the get identity invalid storage format response | {
"resource": ""
} | ||
c162360 | train | // Validate validates this trace selector | {
"resource": ""
} | ||
c162361 | train | // ruleParser parses protobuf L7 rules to enforcement objects
// May panic | {
"resource": ""
} | ||
c162362 | train | // IdentityGet returns a security identity. | {
"resource": ""
} | ||
c162363 | train | // defineUint32 writes the C definition for an unsigned 32-bit value. | {
"resource": ""
} | ||
c162364 | train | // defineIPv4 writes the C definition for the given IPv4 address. | {
"resource": ""
} | ||
c162365 | train | // defineIPv6 writes the C definition for the given IPv6 address. | {
"resource": ""
} | ||
c162366 | train | // defineMAC writes the C definition for the given MAC name and addr. | {
"resource": ""
} | ||
c162367 | train | // Handle handles the regeneration event for the endpoint. | {
"resource": ""
} | ||
c162368 | train | // Handle handles the revision bump event for the Endpoint. | {
"resource": ""
} | ||
c162369 | train | // PolicyRevisionBumpEvent queues an event for the given endpoint to set its
// realized policy revision to rev. This may block depending on if events have
// been queued up for the given endpoint. It blocks until the event has
// succeeded, or if the event has been cancelled. | {
"resource": ""
} | ||
c162370 | train | // Push pushes the given RevertFunc on top of this stack. If the function is
// nil, it is ignored. | {
"resource": ""
} | ||
c162371 | train | // Revert executes all the RevertFuncs in the given stack in the reverse order
// they were pushed. | {
"resource": ""
} | ||
c162372 | train | // Validate validates this l4 policy | {
"resource": ""
} | ||
c162373 | train | // WithPayload adds the payload to the get map o k response | {
"resource": ""
} | ||
c162374 | train | // WithPayload adds the payload to the get service Id o k response | {
"resource": ""
} | ||
c162375 | train | // PolicyPut inserts the `policyJSON` | {
"resource": ""
} | ||
c162376 | train | // PolicyGet returns policy rules | {
"resource": ""
} | ||
c162377 | train | // PolicyDelete deletes policy rules | {
"resource": ""
} | ||
c162378 | train | // PolicyResolveGet resolves policy for a Trace Selector with source and destination identity. | {
"resource": ""
} | ||
c162379 | train | // List lists all CiliumNetworkPolicies in the indexer. | {
"resource": ""
} | ||
c162380 | train | // CiliumNetworkPolicies returns an object that can list and get CiliumNetworkPolicies. | {
"resource": ""
} | ||
c162381 | train | // List lists all CiliumNetworkPolicies in the indexer for a given namespace. | {
"resource": ""
} | ||
c162382 | train | // Search 'result' for strings with escaped JSON inside, and expand the JSON. | {
"resource": ""
} | ||
c162383 | train | // parseTrafficString converts the provided string to its corresponding
// TrafficDirection. If the string does not correspond to a valid TrafficDirection
// type, returns Invalid and a corresponding error. | {
"resource": ""
} | ||
c162384 | train | // updatePolicyKey updates an entry in the PolicyMap for the provided
// PolicyUpdateArgs argument.
// Adds the entry to the PolicyMap if add is true, otherwise the entry is
// deleted. | {
"resource": ""
} | ||
c162385 | train | // dumpConfig pretty prints boolean options | {
"resource": ""
} | ||
c162386 | train | // RemoveListener removes an existing Envoy Listener. | {
"resource": ""
} | ||
c162387 | train | // getNetworkPolicy converts a network policy into a cilium.NetworkPolicy. | {
"resource": ""
} | ||
c162388 | train | // RemoveNetworkPolicy removes network policies relevant to the specified
// endpoint from the set published to L7 proxies, and stops listening for
// acks for policies on this endpoint. | {
"resource": ""
} | ||
c162389 | train | // GetNetworkPolicies returns the current version of the network policies with
// the given names.
// If resourceNames is empty, all resources are returned. | {
"resource": ""
} | ||
c162390 | train | // getLocalEndpoint returns the endpoint info for the local endpoint on which
// the network policy of the given name if enforced, or nil if not found. | {
"resource": ""
} | ||
c162391 | train | // Equal returns true if both HTTP rules are equal | {
"resource": ""
} | ||
c162392 | train | // Exists returns true if the DNS rule already exists in the list of rules | {
"resource": ""
} | ||
c162393 | train | // Exists returns true if the L7 rule already exists in the list of rules | {
"resource": ""
} | ||
c162394 | train | // Equal returns true if both L7 rules are equal | {
"resource": ""
} | ||
c162395 | train | // Validate returns an error if the layer 4 protocol is not valid | {
"resource": ""
} | ||
c162396 | train | // ParseL4Proto parses a string as layer 4 protocol | {
"resource": ""
} | ||
c162397 | train | // removeDatapathMapping unlinks the endpointID from the global policy map, preventing
// packets that arrive on this node from being forwarded to the endpoint that
// used to exist with the specified ID. | {
"resource": ""
} | ||
c162398 | train | // removeMapPath removes the specified path from the filesystem. | {
"resource": ""
} | ||
c162399 | train | // deleteMapIfStale uses the endpointManager implementation to determine for
// the given path whether it should be deleted, and if so deletes the path. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.