_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c174900 | test | // NewURLsMapFromStringMap takes a map of strings and returns a URLsMap. The
// string values in the map can be multiple values separated by the sep string. | {
"resource": ""
} | ||
c174901 | test | // String turns URLsMap into discovery-formatted name-to-URLs sorted by name. | {
"resource": ""
} | ||
c174902 | test | // URLs returns a list of all URLs.
// The returned list is sorted in ascending lexicographical order. | {
"resource": ""
} | ||
c174903 | test | // parse parses the given string and returns a map listing the values specified for each key. | {
"resource": ""
} | ||
c174904 | test | // NewClientHandler generates a muxed http.Handler with the given parameters to serve etcd client requests. | {
"resource": ""
} | ||
c174905 | test | // writeKeyEvent trims the prefix of key path in a single Event under
// StoreKeysPrefix, serializes it and writes the resulting JSON to the given
// ResponseWriter, along with the appropriate headers. | {
"resource": ""
} | ||
c174906 | test | // writeKeyError logs and writes the given Error to the ResponseWriter.
// If Error is not an etcdErr, the error will be converted to an etcd error. | {
"resource": ""
} | ||
c174907 | test | // getUint64 extracts a uint64 by the given key from a Form. If the key does
// not exist in the form, 0 is returned. If the key exists but the value is
// badly formed, an error is returned. If multiple values are present only the
// first is considered. | {
"resource": ""
} | ||
c174908 | test | // getBool extracts a bool by the given key from a Form. If the key does not
// exist in the form, false is returned. If the key exists but the value is
// badly formed, an error is returned. If multiple values are present only the
// first is considered. | {
"resource": ""
} | ||
c174909 | test | // waitDeletes efficiently waits until all keys matching the prefix and no greater
// than the create revision. | {
"resource": ""
} | ||
c174910 | test | // AddOutputPaths adds output paths to the existing output paths, resolving conflicts. | {
"resource": ""
} | ||
c174911 | test | // NewConfig creates a new Config populated with default values. | {
"resource": ""
} | ||
c174912 | test | // PeerURLsMapAndToken sets up an initial peer URLsMap and cluster token for bootstrap or discovery. | {
"resource": ""
} | ||
c174913 | test | // GetDNSClusterNames uses DNS SRV records to get a list of initial nodes for cluster bootstrapping. | {
"resource": ""
} | ||
c174914 | test | // checkBindURLs returns an error if any URL uses a domain name. | {
"resource": ""
} | ||
c174915 | test | // GetCluster gets the cluster information via DNS discovery.
// Also sees each entry as a separate instance. | {
"resource": ""
} | ||
c174916 | test | // GetClient looks up the client endpoints for a service and domain. | {
"resource": ""
} | ||
c174917 | test | // GetSRVService generates a SRV service including an optional suffix. | {
"resource": ""
} | ||
c174918 | test | // compact keyspace history to a provided revision | {
"resource": ""
} | ||
c174919 | test | // defrag a given endpoint | {
"resource": ""
} | ||
c174920 | test | // NewUserCommand returns the cobra command for "user". | {
"resource": ""
} | ||
c174921 | test | // userAddCommandFunc executes the "user add" command. | {
"resource": ""
} | ||
c174922 | test | // userGetCommandFunc executes the "user get" command. | {
"resource": ""
} | ||
c174923 | test | // userChangePasswordCommandFunc executes the "user passwd" command. | {
"resource": ""
} | ||
c174924 | test | // addEvent function adds event into the eventHistory | {
"resource": ""
} | ||
c174925 | test | // scan enumerates events from the index history and stops at the first point
// where the key matches. | {
"resource": ""
} | ||
c174926 | test | // clone will be protected by a stop-world lock
// do not need to obtain internal lock | {
"resource": ""
} | ||
c174927 | test | // openSnapshotBackend renames a snapshot db to the current etcd db and opens it. | {
"resource": ""
} | ||
c174928 | test | // openBackend returns a backend using the current etcd db. | {
"resource": ""
} | ||
c174929 | test | // recoverBackendSnapshot recovers the DB from a snapshot in case etcd crashes
// before updating the backend db after persisting raft snapshot to disk,
// violating the invariant snapshot.Metadata.Index < db.consistentIndex. In this
// case, replace the db with the snapshot db sent by the leader. | {
"resource": ""
} | ||
c174930 | test | // NewUpdateCommand returns the CLI command for "update". | {
"resource": ""
} | ||
c174931 | test | // updateCommandFunc executes the "update" command. | {
"resource": ""
} | ||
c174932 | test | // FrontAndBack gets the front and back elements in the queue
// We must grab front and back together with the protection of the lock | {
"resource": ""
} | ||
c174933 | test | // Insert function insert a RequestStats into the queue and update the records | {
"resource": ""
} | ||
c174934 | test | // Rate function returns the package rate and byte rate | {
"resource": ""
} | ||
c174935 | test | // Clear function clear up the statsQueue | {
"resource": ""
} | ||
c174936 | test | // UniqueStrings returns a slice of randomly generated unique strings. | {
"resource": ""
} | ||
c174937 | test | // RandomStrings returns a slice of randomly generated strings. | {
"resource": ""
} | ||
c174938 | test | // IsKeyNotFound returns true if the error code is ErrorCodeKeyNotFound. | {
"resource": ""
} | ||
c174939 | test | // IsRoleNotFound returns true if the error means role not found of v2 API. | {
"resource": ""
} | ||
c174940 | test | // IsUserNotFound returns true if the error means user not found of v2 API. | {
"resource": ""
} | ||
c174941 | test | // JoinCluster will connect to the discovery service at the given url, and
// register the server represented by the given id and config to the cluster | {
"resource": ""
} | ||
c174942 | test | // GetCluster will connect to the discovery service at the given url and
// retrieve a string describing the cluster | {
"resource": ""
} | ||
c174943 | test | // newProxyFunc builds a proxy function from the given string, which should
// represent a URL that can be used as a proxy. It performs basic
// sanitization of the URL and returns any error encountered. | {
"resource": ""
} | ||
c174944 | test | // isSafeRetry returns "true", if request is safe for retry with the given error. | {
"resource": ""
} | ||
c174945 | test | // withRetryPolicy sets the retry policy of this call. | {
"resource": ""
} | ||
c174946 | test | // withAuthRetry sets enables authentication retries. | {
"resource": ""
} | ||
c174947 | test | // withMax sets the maximum number of retries on this call, or this interceptor. | {
"resource": ""
} | ||
c174948 | test | // WithBackoff sets the `BackoffFunc `used to control time between retries. | {
"resource": ""
} | ||
c174949 | test | // RecvAppendReq updates the ServerStats in response to an AppendRequest
// from the given leader being received | {
"resource": ""
} | ||
c174950 | test | // SendAppendReq updates the ServerStats in response to an AppendRequest
// being sent by this server | {
"resource": ""
} | ||
c174951 | test | // merge merges data from bb into bbsrc. | {
"resource": ""
} | ||
c174952 | test | // deleteRevKey deletes a key by revision, returning false if key is missing | {
"resource": ""
} | ||
c174953 | test | // isMemberBootstrapped tries to check if the given member has been bootstrapped
// in the given cluster. | {
"resource": ""
} | ||
c174954 | test | // GetClusterFromRemotePeers takes a set of URLs representing etcd peers, and
// attempts to construct a Cluster by accessing the members endpoint on one of
// these URLs. The first URL to provide a response is used. If no URLs provide
// a response, or a Cluster cannot be successfully created from a received
// respon... | {
"resource": ""
} | ||
c174955 | test | // If logerr is true, it prints out more error messages. | {
"resource": ""
} | ||
c174956 | test | // getRemotePeerURLs returns peer urls of remote members in the cluster. The
// returned list is sorted in ascending lexicographical order. | {
"resource": ""
} | ||
c174957 | test | // getVersions returns the versions of the members in the given cluster.
// The key of the returned map is the member's ID. The value of the returned map
// is the semver versions string, including server and cluster.
// If it fails to get the version of a member, the key will be nil. | {
"resource": ""
} | ||
c174958 | test | // decideClusterVersion decides the cluster version based on the versions map.
// The returned version is the min server version in the map, or nil if the min
// version in unknown. | {
"resource": ""
} | ||
c174959 | test | // getVersion returns the Versions of the given member via its
// peerURLs. Returns the last error if it fails to get the version. | {
"resource": ""
} | ||
c174960 | test | // NewTimeoutDetector creates the TimeoutDetector. | {
"resource": ""
} | ||
c174961 | test | // Reset resets the NewTimeoutDetector. | {
"resource": ""
} | ||
c174962 | test | // Observe observes an event for given id. It returns false and exceeded duration
// if the interval is longer than the expectation. | {
"resource": ""
} | ||
c174963 | test | // NewPeerHandler generates an http.Handler to handle etcd peer requests. | {
"resource": ""
} | ||
c174964 | test | // put puts a revision to the keyIndex. | {
"resource": ""
} | ||
c174965 | test | // tombstone puts a revision, pointing to a tombstone, to the keyIndex.
// It also creates a new empty generation in the keyIndex.
// It returns ErrRevisionNotFound when tombstone on an empty generation. | {
"resource": ""
} | ||
c174966 | test | // get gets the modified, created revision and version of the key that satisfies the given atRev.
// Rev must be higher than or equal to the given atRev. | {
"resource": ""
} | ||
c174967 | test | // since returns revisions since the given rev. Only the revision with the
// largest sub revision will be returned if multiple revisions have the same
// main revision. | {
"resource": ""
} | ||
c174968 | test | // keep finds the revision to be kept if compact is called at given atRev. | {
"resource": ""
} | ||
c174969 | test | // findGeneration finds out the generation of the keyIndex that the
// given rev belongs to. If the given rev is at the gap of two generations,
// which means that the key does not exist at the given rev, it returns nil. | {
"resource": ""
} | ||
c174970 | test | // cancelWatcher removes references of the watcher from the watchableStore | {
"resource": ""
} | ||
c174971 | test | // syncWatchersLoop syncs the watcher in the unsynced map every 100ms. | {
"resource": ""
} | ||
c174972 | test | // syncVictimsLoop tries to write precomputed watcher responses to
// watchers that had a blocked watcher channel | {
"resource": ""
} | ||
c174973 | test | // moveVictims tries to update watches with already pending event data | {
"resource": ""
} | ||
c174974 | test | // kvsToEvents gets all events for the watchers from all key-value pairs | {
"resource": ""
} | ||
c174975 | test | // notify notifies the fact that given event at the given rev just happened to
// watchers that watch on the key of the event. | {
"resource": ""
} | ||
c174976 | test | // Check if the provided function is being called in the op options. | {
"resource": ""
} | ||
c174977 | test | // UnsafePut must be called holding the lock on the tx. | {
"resource": ""
} | ||
c174978 | test | // UnsafeSeqPut must be called holding the lock on the tx. | {
"resource": ""
} | ||
c174979 | test | // UnsafeRange must be called holding the lock on the tx. | {
"resource": ""
} | ||
c174980 | test | // UnsafeDelete must be called holding the lock on the tx. | {
"resource": ""
} | ||
c174981 | test | // UnsafeForEach must be called holding the lock on the tx. | {
"resource": ""
} | ||
c174982 | test | // Commit commits a previous tx and begins a new writable one. | {
"resource": ""
} | ||
c174983 | test | // CommitAndStop commits the previous tx and does not create a new one. | {
"resource": ""
} | ||
c174984 | test | // Renew renews an existing lease. If the given lease does not exist or
// has expired, an error will be returned. | {
"resource": ""
} | ||
c174985 | test | // Attach attaches items to the lease with given ID. When the lease
// expires, the attached items will be automatically removed.
// If the given lease does not exist, an error will be returned. | {
"resource": ""
} | ||
c174986 | test | // revokeExpiredLeases finds all leases past their expiry and sends them to epxired channel for
// to be revoked. | {
"resource": ""
} | ||
c174987 | test | // checkpointScheduledLeases finds all scheduled lease checkpoints that are due and
// submits them to the checkpointer to persist them to the consensus log. | {
"resource": ""
} | ||
c174988 | test | // expireExists returns true if expiry items exist.
// It pops only when expiry item exists.
// "next" is true, to indicate that it may exist in next attempt. | {
"resource": ""
} | ||
c174989 | test | // findExpiredLeases loops leases in the leaseMap until reaching expired limit
// and returns the expired leases that needed to be revoked. | {
"resource": ""
} | ||
c174990 | test | // refresh refreshes the expiry of the lease. | {
"resource": ""
} | ||
c174991 | test | // forever sets the expiry of lease to be forever. | {
"resource": ""
} | ||
c174992 | test | // Keys returns all the keys attached to the lease. | {
"resource": ""
} | ||
c174993 | test | // Remaining returns the remaining time of the lease. | {
"resource": ""
} | ||
c174994 | test | // NewCompactionCommand returns the cobra command for "compaction". | {
"resource": ""
} | ||
c174995 | test | // compactionCommandFunc executes the "compaction" command. | {
"resource": ""
} | ||
c174996 | test | // NewPutCommand returns the cobra command for "put". | {
"resource": ""
} | ||
c174997 | test | // putCommandFunc executes the "put" command. | {
"resource": ""
} | ||
c174998 | test | // NewHandler creates a new HTTP handler, listening on the given transport,
// which will proxy requests to an etcd cluster.
// The handler will periodically update its view of the cluster. | {
"resource": ""
} | ||
c174999 | test | // NewReadonlyHandler wraps the given HTTP handler to allow only GET requests | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.