_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c162700 | train | // RemoveFromEndpointQueue removes the endpoint from the "build permit" queue,
// canceling the wait for the build permit if still waiting. | {
"resource": ""
} | ||
c162701 | train | // DebugEnabled returns if debug mode is enabled. | {
"resource": ""
} | ||
c162702 | train | // Must be called with option.Config.EnablePolicyMU locked. | {
"resource": ""
} | ||
c162703 | train | // createPrefixLengthCounter wraps around the counter library, providing
// references to prefix lengths that will always be present. | {
"resource": ""
} | ||
c162704 | train | // Close shuts down a daemon | {
"resource": ""
} | ||
c162705 | train | // TriggerReloadWithoutCompile causes all BPF programs and maps to be reloaded,
// without recompiling the datapath logic for each endpoint. It first attempts
// to recompile the base programs, and if this fails returns an error. If base
// program load is successful, it subsequently triggers regeneration of all
// end... | {
"resource": ""
} | ||
c162706 | train | // listFilterIfs returns a map of interfaces based on the given filter.
// The filter should take a link and, if found, return the index of that
// interface, if not found return -1. | {
"resource": ""
} | ||
c162707 | train | // clearCiliumVeths checks all veths created by cilium and removes all that
// are considered a leftover from failed attempts to connect the container. | {
"resource": ""
} | ||
c162708 | train | // numWorkerThreads returns the number of worker threads with a minimum of 4. | {
"resource": ""
} | ||
c162709 | train | // GetServiceList returns list of services | {
"resource": ""
} | ||
c162710 | train | // SendNotification sends an agent notification to the monitor | {
"resource": ""
} | ||
c162711 | train | // NewProxyLogRecord is invoked by the proxy accesslog on each new access log entry | {
"resource": ""
} | ||
c162712 | train | // GetNodeSuffix returns the suffix to be appended to kvstore keys of this
// agent | {
"resource": ""
} | ||
c162713 | train | // String returns a human readable representation of the request message | {
"resource": ""
} | ||
c162714 | train | // GetTopics returns the Kafka request list of topics | {
"resource": ""
} | ||
c162715 | train | // CreateResponse creates a response message based on the provided request
// message. The response will have the specified error code set in all topics
// and embedded partitions. | {
"resource": ""
} | ||
c162716 | train | // ReadRequest will read a Kafka request from an io.Reader and return the
// message or an error. | {
"resource": ""
} | ||
c162717 | train | // ToNetwork converts TupleKey6 ports to network byte order. | {
"resource": ""
} | ||
c162718 | train | // ToHost converts TupleKey6 ports to network byte order. | {
"resource": ""
} | ||
c162719 | train | // ToNetwork converts ports to network byte order.
//
// This is necessary to prevent callers from implicitly converting
// the TupleKey6Global type here into a local key type in the nested
// TupleKey6 field. | {
"resource": ""
} | ||
c162720 | train | // ToHost converts ports to host byte order.
//
// This is necessary to prevent callers from implicitly converting
// the TupleKey6Global type here into a local key type in the nested
// TupleKey6 field. | {
"resource": ""
} | ||
c162721 | train | // NewDatapath creates a new Linux datapath | {
"resource": ""
} | ||
c162722 | train | // GetSourceEndpointSelectors returns a slice of endpoints selectors covering
// all L3 source selectors of the ingress rule | {
"resource": ""
} | ||
c162723 | train | // IsLabelBased returns true whether the L3 source endpoints are selected based
// on labels, i.e. either by setting FromEndpoints or FromEntities, or not
// setting any From field. | {
"resource": ""
} | ||
c162724 | train | // Hint tries to improve the error message displayed to te user. | {
"resource": ""
} | ||
c162725 | train | // GetLeaseID returns the current lease ID. | {
"resource": ""
} | ||
c162726 | train | // closeSession closes the current session. | {
"resource": ""
} | ||
c162727 | train | // Disconnected closes the returned channel when the etcd client is
// disconnected after being reconnected. Blocks until the etcd client is first
// connected with the kvstore. | {
"resource": ""
} | ||
c162728 | train | // checkMinVersion checks the minimal version running on etcd cluster. This
// function should be run whenever the etcd client is connected for the first
// time and whenever the session is renewed. | {
"resource": ""
} | ||
c162729 | train | // Update creates or updates a key | {
"resource": ""
} | ||
c162730 | train | // Close closes the etcd session | {
"resource": ""
} | ||
c162731 | train | // ListAndWatch implements the BackendOperations.ListAndWatch using etcd | {
"resource": ""
} | ||
c162732 | train | // IsEtcdOperator returns true if the configuration is setting up an
// etcd-operator and false otherwise. | {
"resource": ""
} | ||
c162733 | train | // WithPayload adds the payload to the get policy resolve o k response | {
"resource": ""
} | ||
c162734 | train | // DumpInfo dumps an access log notification | {
"resource": ""
} | ||
c162735 | train | // LogRecordNotifyToVerbose turns LogRecordNotify into json-friendly Verbose structure | {
"resource": ""
} | ||
c162736 | train | // WithPayload adds the payload to the delete endpoint Id errors response | {
"resource": ""
} | ||
c162737 | train | // WithPayload adds the payload to the delete endpoint Id invalid response | {
"resource": ""
} | ||
c162738 | train | // WithMin sets the minimum identifier to be allocated | {
"resource": ""
} | ||
c162739 | train | // WithMax sets the maximum identifier to be allocated | {
"resource": ""
} | ||
c162740 | train | // WithPrefixMask sets the prefix used for all ID allocations. If set, the mask
// will be ORed to all selected IDs prior to allocation. It is the
// responsibility of the caller to ensure that the mask is not conflicting with
// min..max. | {
"resource": ""
} | ||
c162741 | train | // Delete deletes an allocator and stops the garbage collector | {
"resource": ""
} | ||
c162742 | train | // WaitForInitialSync waits until the initial sync is complete | {
"resource": ""
} | ||
c162743 | train | // lockPath locks a key in the scope of an allocator | {
"resource": ""
} | ||
c162744 | train | // ForeachCache iterates over the allocator cache and calls RangeFunc on each
// cached entry | {
"resource": ""
} | ||
c162745 | train | // Selects an available ID.
// Returns a triple of the selected ID ORed with prefixMask,
// the ID string and the originally selected ID. | {
"resource": ""
} | ||
c162746 | train | // Allocate will retrieve the ID for the provided key. If no ID has been
// allocated for this key yet, a key will be allocated. If allocation fails,
// most likely due to a parallel allocation of the same ID by another user,
// allocation is re-attempted for maxAllocAttempts times.
//
// Returns the ID allocated to th... | {
"resource": ""
} | ||
c162747 | train | // Get returns the ID which is allocated to a key. Returns an ID of NoID if no ID
// has been allocated to this key yet. | {
"resource": ""
} | ||
c162748 | train | // Get returns the ID which is allocated to a key in the kvstore | {
"resource": ""
} | ||
c162749 | train | // GetByID returns the key associated with an ID. Returns nil if no key is
// associated with the ID. | {
"resource": ""
} | ||
c162750 | train | // Release releases the use of an ID associated with the provided key. After
// the last user has released the ID, the key is removed in the KVstore and
// the returned lastUse value is true. | {
"resource": ""
} | ||
c162751 | train | // RunGC scans the kvstore for unused master keys and removes them | {
"resource": ""
} | ||
c162752 | train | // syncLocalKeys checks the kvstore and verifies that a master key exists for
// all locally used allocations. This will restore master keys if deleted for
// some reason. | {
"resource": ""
} | ||
c162753 | train | // Close stops watching for identities in the kvstore associated with the
// remote cache and will clear the local cache. | {
"resource": ""
} | ||
c162754 | train | // RemoveCIDRs removes the specified CIDRs from another set of CIDRs. If a CIDR
// to remove is not contained within the CIDR, the CIDR to remove is ignored. A
// slice of CIDRs is returned which contains the set of CIDRs provided minus
// the set of CIDRs which were removed. Both input slices may be modified by
// ca... | {
"resource": ""
} | ||
c162755 | train | // GetNextIP returns the next IP from the given IP address. If the given IP is
// the last IP of a v4 or v6 range, the same IP is returned. | {
"resource": ""
} | ||
c162756 | train | // rangeToCIDRs converts the range of IPs covered by firstIP and lastIP to
// a list of CIDRs that contains all of the IPs covered by the range. | {
"resource": ""
} | ||
c162757 | train | // IsPublicAddr returns whether a given global IP is from
// a public range. | {
"resource": ""
} | ||
c162758 | train | // useNodeCIDR sets the ipv4-range and ipv6-range values values from the
// addresses defined in the given node. | {
"resource": ""
} | ||
c162759 | train | // NewIDPool returns a new ID pool | {
"resource": ""
} | ||
c162760 | train | // LeaseAvailableID returns an available ID at random from the pool.
// Returns an ID or NoID if no there is no available ID in the pool. | {
"resource": ""
} | ||
c162761 | train | // Use makes a leased ID unavailable in the pool and has no effect
// otherwise. Returns true if the ID was made unavailable
// as a result of this call. | {
"resource": ""
} | ||
c162762 | train | // Insert makes an unavailable ID available in the pool
// and has no effect otherwise. Returns true if the ID
// was added back to the pool. | {
"resource": ""
} | ||
c162763 | train | // Remove makes an ID unavailable in the pool.
// Returns true if the ID was previously available in the pool. | {
"resource": ""
} | ||
c162764 | train | // allocateID returns a random available ID without leasing it | {
"resource": ""
} | ||
c162765 | train | // leaseAvailableID returns a random available ID. | {
"resource": ""
} | ||
c162766 | train | // release makes the ID available again if it is currently
// leased and has no effect otherwise. Returns true if the
// ID was made available as a result of this call. | {
"resource": ""
} | ||
c162767 | train | // use makes the ID unavailable if it is currently
// leased and has no effect otherwise. Returns true if the
// ID was made unavailable as a result of this call. | {
"resource": ""
} | ||
c162768 | train | // insert adds the ID into the cache if it is currently unavailable.
// Returns true if the ID was added to the cache. | {
"resource": ""
} | ||
c162769 | train | // remove removes the ID from the cache.
// Returns true if the ID was available in the cache. | {
"resource": ""
} | ||
c162770 | train | // LockAlive returns error if endpoint was removed, locks underlying mutex otherwise | {
"resource": ""
} | ||
c162771 | train | // RLockAlive returns error if endpoint was removed, read locks underlying mutex otherwise | {
"resource": ""
} | ||
c162772 | train | // LogDisconnectedMutexAction gets the logger and logs given error with context | {
"resource": ""
} | ||
c162773 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterService. | {
"resource": ""
} | ||
c162774 | train | // getNextFreeNumericIdentity returns the next available numeric identity or an error
// The l.mutex must be held | {
"resource": ""
} | ||
c162775 | train | // release releases a local identity from the cache. true is returned when the
// last use of the identity has been released and the identity has been
// forgotten. | {
"resource": ""
} | ||
c162776 | train | // lookup searches for a local identity matching the given labels and returns
// it. If found, the reference count is NOT incremented and thus release must
// NOT be called. | {
"resource": ""
} | ||
c162777 | train | // lookupByID searches for a local identity matching the given ID and returns
// it. If found, the reference count is NOT incremented and thus release must
// NOT be called. | {
"resource": ""
} | ||
c162778 | train | // GetIdentities returns all local identities | {
"resource": ""
} | ||
c162779 | train | // GetCidrSet will return the CIDRRule for the rule using the callbacks that
// are register in the platform. | {
"resource": ""
} | ||
c162780 | train | // WithPayload adds the payload to the get debuginfo o k response | {
"resource": ""
} | ||
c162781 | train | // WithPayload adds the payload to the get debuginfo failure response | {
"resource": ""
} | ||
c162782 | train | // WithTimeout adds the timeout to the get policy params | {
"resource": ""
} | ||
c162783 | train | // WithContext adds the context to the get policy params | {
"resource": ""
} | ||
c162784 | train | // WithHTTPClient adds the HTTPClient to the get policy params | {
"resource": ""
} | ||
c162785 | train | // WithLabels adds the labels to the get policy params | {
"resource": ""
} | ||
c162786 | train | // WithTimeout adds the timeout to the patch endpoint ID params | {
"resource": ""
} | ||
c162787 | train | // WithContext adds the context to the patch endpoint ID params | {
"resource": ""
} | ||
c162788 | train | // WithHTTPClient adds the HTTPClient to the patch endpoint ID params | {
"resource": ""
} | ||
c162789 | train | // WithEndpoint adds the endpoint to the patch endpoint ID params | {
"resource": ""
} | ||
c162790 | train | // WithID adds the id to the patch endpoint ID params | {
"resource": ""
} | ||
c162791 | train | // Remove deletes the pidfile at the specified path. This does not clean up
// the corresponding process, so should only be used when it is known that the
// PID contained in the file at the specified path is no longer running. | {
"resource": ""
} | ||
c162792 | train | // Write the pid of the process to the specified path, and attach a cleanup
// handler to the exit of the program so it's removed afterwards. | {
"resource": ""
} | ||
c162793 | train | // kill parses the PID in the provided slice and attempts to kill the process
// associated with that PID. | {
"resource": ""
} | ||
c162794 | train | // Kill opens the pidfile at the specified path, attempts to read the PID and
// kill the process represented by that PID. If the file doesn't exist, the
// corresponding process doesn't exist, or the process is successfully killed,
// returns nil. Otherwise, returns an error indicating the failure to kill the
// proce... | {
"resource": ""
} | ||
c162795 | train | // NewGetFqdnCache creates a new http.Handler for the get fqdn cache operation | {
"resource": ""
} | ||
c162796 | train | // String provides a human-readable string format of the received variable. | {
"resource": ""
} | ||
c162797 | train | // Set converts the specified value into an integer and appends it to the flags.
// Returns an error if the value cannot be converted to a 16-bit unsigned value. | {
"resource": ""
} | ||
c162798 | train | // String returns the readable format | {
"resource": ""
} | ||
c162799 | train | // NewCorrelationCache returns a new correlation cache | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.