_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c162800
train
// HandleRequest must be called when a request is forwarded to the broker, will // keep track of the request and rewrite the correlation ID inside of the // request to a sequence number. This sequence number is guaranteed to be // unique within the connection covered by the cache.
{ "resource": "" }
c162801
train
// correlate returns the request message with the matching correlation ID
{ "resource": "" }
c162802
train
// CorrelateResponse extracts the correlation ID from the response message, // correlates the corresponding request, restores the original correlation ID // in the response and returns the original request
{ "resource": "" }
c162803
train
// NewNamedMapOptions creates a reference to a new NamedMapOpts struct.
{ "resource": "" }
c162804
train
// NewMapOpts creates a new MapOpts with the specified map of values and an // optional validator.
{ "resource": "" }
c162805
train
// Set validates, if needed, the input value and adds it to the internal map, // by splitting on '='.
{ "resource": "" }
c162806
train
// WithPayload adds the payload to the get endpoint o k response
{ "resource": "" }
c162807
train
// ParseMonitorAggregationLevel turns a string into a monitor aggregation // level. The string may contain an integer value or a string representation of // a particular monitor aggregation level.
{ "resource": "" }
c162808
train
// WithPayload adds the payload to the patch config bad request response
{ "resource": "" }
c162809
train
// WithPayload adds the payload to the patch config failure response
{ "resource": "" }
c162810
train
// ConfigGet returns a daemon configuration.
{ "resource": "" }
c162811
train
// ConfigPatch modifies the daemon configuration.
{ "resource": "" }
c162812
train
// Validate validates this trace from
{ "resource": "" }
c162813
train
// DumpJSONToSlice dumps the contents of data into a byte slice. If jsonpath // is non-empty, will attempt to do jsonpath filtering using said string. // Returns byte array containing the JSON in data, or an error if any JSON // marshaling, parsing operations fail.
{ "resource": "" }
c162814
train
// dumpJSON dump the data variable to the stdout as json. // If somethings fail, it'll return an error // If jsonPath is passed, it'll run the json query over data var.
{ "resource": "" }
c162815
train
// Disconnected closes the returned channel when consul detects the client // is disconnected from the server.
{ "resource": "" }
c162816
train
// Update creates or updates a key with the value
{ "resource": "" }
c162817
train
// createIfExists creates a key with the value only if key condKey exists
{ "resource": "" }
c162818
train
// ListPrefix returns a map of matching keys
{ "resource": "" }
c162819
train
// Close closes the consul session
{ "resource": "" }
c162820
train
// ListAndWatch implements the BackendOperations.ListAndWatch using consul
{ "resource": "" }
c162821
train
// Allocate returns a new random ID from the pool
{ "resource": "" }
c162822
train
// Reuse grabs a specific endpoint ID for reuse. This can be used when // restoring endpoints.
{ "resource": "" }
c162823
train
// Release releases an endpoint ID that was previously allocated or reused
{ "resource": "" }
c162824
train
// bindName binds and validates parameter Name from path.
{ "resource": "" }
c162825
train
// getLPMValue calculates the longest prefix matching ip amongst the // keys in entries. The keys in entries must be specified in CIDR notation. // If LPM is found, the value associated with that entry is returned // along with boolean true. Otherwise, false is returned.
{ "resource": "" }
c162826
train
// getPrefix converts the most significant maskSize bits in ip // into a byte slice - each bit is represented using one byte.
{ "resource": "" }
c162827
train
// getMaxID returns the maximum possible free UUID stored.
{ "resource": "" }
c162828
train
// gasNewL3n4AddrID gets and sets a new L3n4Addr ID. If baseID is different than zero, // KVStore tries to assign that ID first.
{ "resource": "" }
c162829
train
// acquireGlobalID stores the given service in the kvstore and returns the L3n4AddrID // created for the given l3n4Addr. If baseID is different than 0, it tries to acquire that // ID to the l3n4Addr.
{ "resource": "" }
c162830
train
// getGlobalID returns the L3n4AddrID that belongs to the given id.
{ "resource": "" }
c162831
train
// deleteGlobalID deletes the L3n4AddrID belonging to the given id from the kvstore.
{ "resource": "" }
c162832
train
// deleteL3n4AddrIDBySHA256 deletes the L3n4AddrID from the kvstore corresponding to the service's // sha256Sum.
{ "resource": "" }
c162833
train
// GetMap returns the registered map with the given name or absolute path
{ "resource": "" }
c162834
train
// NewGetFqdnCacheID creates a new http.Handler for the get fqdn cache ID operation
{ "resource": "" }
c162835
train
// WithTimeout adds the timeout to the get fqdn cache params
{ "resource": "" }
c162836
train
// WithContext adds the context to the get fqdn cache params
{ "resource": "" }
c162837
train
// WithHTTPClient adds the HTTPClient to the get fqdn cache params
{ "resource": "" }
c162838
train
// WithCidr adds the cidr to the get fqdn cache params
{ "resource": "" }
c162839
train
// WithMatchpattern adds the matchpattern to the get fqdn cache params
{ "resource": "" }
c162840
train
// NewLoggingHook returns a new instance of LoggingHook for the given Cilium // component.
{ "resource": "" }
c162841
train
// Levels returns the list of logging levels on which the hook is triggered.
{ "resource": "" }
c162842
train
// Fire is the main method which is called every time when logger has an error // or warning message.
{ "resource": "" }
c162843
train
// NewGetPolicy creates a new http.Handler for the get policy operation
{ "resource": "" }
c162844
train
// WithPayload adds the payload to the put endpoint Id invalid response
{ "resource": "" }
c162845
train
// WithPayload adds the payload to the put endpoint Id failed response
{ "resource": "" }
c162846
train
// getNodes fetches the latest set of nodes in the cluster from the Cilium // daemon, and updates the Server's 'nodes' map.
{ "resource": "" }
c162847
train
// updateCluster makes the specified health report visible to the API. // // It only updates the server's API-visible health report if the provided // report started after the current report.
{ "resource": "" }
c162848
train
// GetStatusResponse returns the most recent cluster connectivity status.
{ "resource": "" }
c162849
train
// FetchStatusResponse updates the cluster with the latest set of nodes, // runs a synchronous probe across the cluster, updates the connectivity cache // and returns the results.
{ "resource": "" }
c162850
train
// NewServer creates a server to handle health requests.
{ "resource": "" }
c162851
train
// UpdateCNPInformation retrieves all the CNP that has currently a derivative // policy and creates the new derivatives policies with the latest information // from providers. To avoid issues with rate-limiting this function will // execute the addDerivative function with a max number of concurrent calls, // defined ...
{ "resource": "" }
c162852
train
// isExpiredBy returns true if entry is no longer valid at pointInTime
{ "resource": "" }
c162853
train
// getIPs returns a sorted list of non-expired unique IPs. // This needs a read-lock
{ "resource": "" }
c162854
train
// NewDNSCache returns an initialized DNSCache
{ "resource": "" }
c162855
train
// NewDNSCache returns an initialized DNSCache and set the max host limit to // the given argument
{ "resource": "" }
c162856
train
// updateWithEntry implements the insertion of a cacheEntry. It is used by // DNSCache.Update and DNSCache.UpdateWithEntry. // This needs a write lock
{ "resource": "" }
c162857
train
// AddNameToCleanup adds the IP with the given TTL to the the cleanup map to // delete the entry from the policy when it expires. // Need to be called with a write lock
{ "resource": "" }
c162858
train
// cleanupExpiredEntries cleans all the expired entries from the lastTime that // runs to the give time. It will lock the struct until retrieves all the data. // It returns the list of names that need to be deleted from the policies.
{ "resource": "" }
c162859
train
// cleanupOverLimitEntries returns the names that has reached the max number of // IP per host. Internally the function sort the entries by the expiration // time.
{ "resource": "" }
c162860
train
// GC garbage collector function that clean expired entries and return the // entries that are deleted.
{ "resource": "" }
c162861
train
// UpdateFromCache is a utility function that allows updating a DNSCache // instance with all the internal entries of another. Latest-Expiration still // applies, thus the merged outcome is consistent with adding the entries // individually. // When namesToUpdate has non-zero length only those names are updated from //...
{ "resource": "" }
c162862
train
// Lookup returns a set of unique IPs that are currently unexpired for name, if // any exist. An empty list indicates no valid records exist. The IPs are // returned sorted.
{ "resource": "" }
c162863
train
// lookupByTime takes a timestamp for expiration comparisions, and is only // intended for testing.
{ "resource": "" }
c162864
train
// LookupByRegexp returns all non-expired cache entries that match re as a map // of name -> IPs
{ "resource": "" }
c162865
train
// lookupByRegexpByTime takes a timestamp for expiration comparisions, and is // only intended for testing.
{ "resource": "" }
c162866
train
// LookupIP returns all DNS names in entries that include that IP. The cache // maintains the latest-expiring entry per-name per-IP. This means that multiple // names referrring to the same IP will expire from the cache at different times, // and only 1 entry for each name-IP pair is internally retained.
{ "resource": "" }
c162867
train
// lookupIPByTime takes a timestamp for expiration comparisions, and is // only intended for testing.
{ "resource": "" }
c162868
train
// upsertReverse updates the reverse DNS cache for ip with entry, if it expires // later than the already-stored entry. // It is assumed that entry includes ip. // This needs a write lock
{ "resource": "" }
c162869
train
// removeReverse removes the reference between ip and the name stored in entry. // When no more refrences from ip to any name exist, the map entry is deleted // outright. // It is assumed that entry includes ip. // This needs a write lock
{ "resource": "" }
c162870
train
// ForceExpireByNames is the same function as ForceExpire but uses the exact // names to delete the entries.
{ "resource": "" }
c162871
train
// Dump returns unexpired cache entries in the cache. They are deduplicated, // but not usefully sorted. These objects should not be modified.
{ "resource": "" }
c162872
train
// IsTimeout return true if the ProxyRequest timeout
{ "resource": "" }
c162873
train
// address and port. // address is the bind address to listen on. Empty binds to all local // addresses. // port is the port to bind to for both UDP and TCP. 0 causes the kernel to // select a free port. // lookupEPFunc will be called with the source IP of DNS requests, and expects // a unique identifier for the endpoi...
{ "resource": "" }
c162874
train
// AddAllowed adds reStr, a regexp, to the DNS lookups the proxy allows.
{ "resource": "" }
c162875
train
// UpdateAllowed adds and removes reStr while holding the lock. This is a bit // of a hack to ensure atomic updates of rules until we replace the tracking // with something better.
{ "resource": "" }
c162876
train
// sendRefused creates and sends a REFUSED response for request to w // The returned error is logged with scopedLog and is returned for convenience
{ "resource": "" }
c162877
train
// SetRejectReply sets the default reject reply on denied dns responses.
{ "resource": "" }
c162878
train
// ExtractMsgDetails extracts a canonical query name, any IPs in a response, // the lowest applicable TTL, rcode, anwer rr types and question types // When a CNAME is returned the chain is collapsed down, keeping the lowest TTL, // and CNAME targets are returned.
{ "resource": "" }
c162879
train
// NewNodeMonitor returns a new node monitor
{ "resource": "" }
c162880
train
// run creates a FIFO at sockPath, launches the monitor as sub process and then // reads stdout from the monitor and updates nm.state accordingly. The function // returns with an error if the FIFO cannot be created, opened or if the an // error was encountered while reading stdout from the monitor. The FIFO is always /...
{ "resource": "" }
c162881
train
// Run starts the node monitor and keeps on restarting it. The function will // never return.
{ "resource": "" }
c162882
train
// State returns the monitor status.
{ "resource": "" }
c162883
train
// setState sets the internal state monitor with the given state.
{ "resource": "" }
c162884
train
// SendEvent sends an event to the node monitor which will then distribute to // all monitor listeners
{ "resource": "" }
c162885
train
// bumpLost accounts for a lost notification
{ "resource": "" }
c162886
train
// WithTimeout adds the timeout to the put status probe params
{ "resource": "" }
c162887
train
// WithContext adds the context to the put status probe params
{ "resource": "" }
c162888
train
// WithHTTPClient adds the HTTPClient to the put status probe params
{ "resource": "" }
c162889
train
// GetEnvoyVersion returns the envoy binary version string
{ "resource": "" }
c162890
train
// newEnvoyLogPiper creates a writer that parses and logs log messages written by Envoy.
{ "resource": "" }
c162891
train
// isEOF returns true if the error message ends in "EOF". ReadMsgUnix returns extra info in the beginning.
{ "resource": "" }
c162892
train
// StopEnvoy kills the Envoy process started with StartEnvoy. The gRPC API streams are terminated // first.
{ "resource": "" }
c162893
train
// ChangeLogLevel changes Envoy log level to correspond to the logrus log level 'level'.
{ "resource": "" }
c162894
train
// New creates a API error from the code, msg and extra arguments.
{ "resource": "" }
c162895
train
// Error creates a new API error from the code and error.
{ "resource": "" }
c162896
train
// GetModel returns model error.
{ "resource": "" }
c162897
train
// WriteResponse to the client.
{ "resource": "" }
c162898
train
// WithPayload adds the payload to the put status probe o k response
{ "resource": "" }
c162899
train
// WithPayload adds the payload to the put status probe failed response
{ "resource": "" }