_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c175000 | test | // NewSetCommand returns the CLI command for "set". | {
"resource": ""
} | ||
c175001 | test | // setCommandFunc executes the "set" command. | {
"resource": ""
} | ||
c175002 | test | // waitOnLowest will wait on the last key with a revision < rwm.myKey.Revision with a
// given prefix. If there are no keys left to wait on, return true. | {
"resource": ""
} | ||
c175003 | test | // GetDefaultInterfaces fetches the device name of default routable interface. | {
"resource": ""
} | ||
c175004 | test | // NewSnapshotCommand returns the cobra command for "snapshot". | {
"resource": ""
} | ||
c175005 | test | // NewMoveLeaderCommand returns the cobra command for "move-leader". | {
"resource": ""
} | ||
c175006 | test | // transferLeadershipCommandFunc executes the "compaction" command. | {
"resource": ""
} | ||
c175007 | test | // OpenDir opens a directory in windows with write access for syncing. | {
"resource": ""
} | ||
c175008 | test | // NewRemoveDirCommand returns the CLI command for "rmdir". | {
"resource": ""
} | ||
c175009 | test | // rmdirCommandFunc executes the "rmdir" command. | {
"resource": ""
} | ||
c175010 | test | // NewDelCommand returns the cobra command for "del". | {
"resource": ""
} | ||
c175011 | test | // delCommandFunc executes the "del" command. | {
"resource": ""
} | ||
c175012 | test | // NewExpect creates a new process for expect testing. | {
"resource": ""
} | ||
c175013 | test | // NewExpectWithEnv creates a new process with user defined env variables for expect testing. | {
"resource": ""
} | ||
c175014 | test | // ExpectFunc returns the first line satisfying the function f. | {
"resource": ""
} | ||
c175015 | test | // Expect returns the first line containing the given string. | {
"resource": ""
} | ||
c175016 | test | // LineCount returns the number of recorded lines since
// the beginning of the process. | {
"resource": ""
} | ||
c175017 | test | // Signal sends a signal to the expect process | {
"resource": ""
} | ||
c175018 | test | // keyFunc returns the key of a request, which is used to look up its caching response in the cache. | {
"resource": ""
} | ||
c175019 | test | // Add adds the response of a request to the cache if its revision is larger than the compacted revision of the cache. | {
"resource": ""
} | ||
c175020 | test | // Get looks up the caching response for a given request.
// Get is also responsible for lazy eviction when accessing compacted entries. | {
"resource": ""
} | ||
c175021 | test | // Invalidate invalidates the cache entries that intersecting with the given range from key to endkey. | {
"resource": ""
} | ||
c175022 | test | // Compact invalidate all caching response before the given rev.
// Replace with the invalidation is lazy. The actual removal happens when the entries is accessed. | {
"resource": ""
} | ||
c175023 | test | // NewUniqueURLsWithExceptions implements "url.URL" slice as flag.Value interface.
// Given value is to be separated by comma. | {
"resource": ""
} | ||
c175024 | test | // UniqueURLsFromFlag returns a slice from urls got from the flag. | {
"resource": ""
} | ||
c175025 | test | // UniqueURLsMapFromFlag returns a map from url strings got from the flag. | {
"resource": ""
} | ||
c175026 | test | // Hold creates the barrier key causing processes to block on Wait. | {
"resource": ""
} | ||
c175027 | test | // Release deletes the barrier key to unblock all waiting processes. | {
"resource": ""
} | ||
c175028 | test | // Wait blocks on the barrier key until it is deleted. If there is no key, Wait
// assumes Release has already been called and returns immediately. | {
"resource": ""
} | ||
c175029 | test | // NewLockRacerCommand returns the cobra command for "lock-racer runner". | {
"resource": ""
} | ||
c175030 | test | // ElectionTimeout returns an election timeout duration. | {
"resource": ""
} | ||
c175031 | test | // DialEtcdGRPCServer creates a raw gRPC connection to an etcd member. | {
"resource": ""
} | ||
c175032 | test | // CreateEtcdClientConfig creates a client configuration from member. | {
"resource": ""
} | ||
c175033 | test | // CreateEtcdClient creates a client from member. | {
"resource": ""
} | ||
c175034 | test | // CheckCompact ensures that historical data before given revision has been compacted. | {
"resource": ""
} | ||
c175035 | test | // Defrag runs defragmentation on this member. | {
"resource": ""
} | ||
c175036 | test | // RevHash fetches current revision and hash on this member. | {
"resource": ""
} | ||
c175037 | test | // Rev fetches current revision on this member. | {
"resource": ""
} | ||
c175038 | test | // Compact compacts member storage with given revision.
// It blocks until it's physically done. | {
"resource": ""
} | ||
c175039 | test | // IsLeader returns true if this member is the current cluster leader. | {
"resource": ""
} | ||
c175040 | test | // WriteHealthKey writes a health key to this member. | {
"resource": ""
} | ||
c175041 | test | // SaveSnapshot downloads a snapshot file from this member, locally.
// It's meant to requested remotely, so that local member can store
// snapshot file on local disk. | {
"resource": ""
} | ||
c175042 | test | // RestoreSnapshot restores a cluster from a given snapshot file on disk.
// It's meant to requested remotely, so that local member can load the
// snapshot file from local disk. | {
"resource": ""
} | ||
c175043 | test | // NewWatcher wraps a Watcher instance so that all Watch requests
// are prefixed with a given string and all Watch responses have
// the prefix removed. | {
"resource": ""
} | ||
c175044 | test | // NewRawNode returns a new RawNode given configuration and a list of raft peers. | {
"resource": ""
} | ||
c175045 | test | // Campaign causes this RawNode to transition to candidate state. | {
"resource": ""
} | ||
c175046 | test | // Propose proposes data be appended to the raft log. | {
"resource": ""
} | ||
c175047 | test | // ProposeConfChange proposes a config change. | {
"resource": ""
} | ||
c175048 | test | // ApplyConfChange applies a config change to the local node. | {
"resource": ""
} | ||
c175049 | test | // Step advances the state machine using the given message. | {
"resource": ""
} | ||
c175050 | test | // Ready returns the current point-in-time state of this RawNode. | {
"resource": ""
} | ||
c175051 | test | // WithProgress is a helper to introspect the Progress for this node and its
// peers. | {
"resource": ""
} | ||
c175052 | test | // ReportUnreachable reports the given node is not reachable for the last send. | {
"resource": ""
} | ||
c175053 | test | // ReportSnapshot reports the status of the sent snapshot. | {
"resource": ""
} | ||
c175054 | test | // TransferLeader tries to transfer leadership to the given transferee. | {
"resource": ""
} | ||
c175055 | test | // ReadIndex requests a read state. The read state will be set in ready.
// Read State has a read index. Once the application advances further than the read
// index, any linearizable read requests issued before the read request can be
// processed safely. The read state will have the same rctx attached. | {
"resource": ""
} | ||
c175056 | test | // printcURL prints the cURL equivalent request to stderr.
// It returns an error if the body of the request cannot
// be read.
// The caller MUST cancel the request if there is an error. | {
"resource": ""
} | ||
c175057 | test | // StartNode returns a new Node given configuration and a list of raft peers.
// It appends a ConfChangeAddNode entry for each given peer to the initial log. | {
"resource": ""
} | ||
c175058 | test | // RestartNode is similar to StartNode but does not take a list of peers.
// The current membership of the cluster will be restored from the Storage.
// If the caller has an existing state machine, pass in the last log index that
// has been applied to it; otherwise use zero. | {
"resource": ""
} | ||
c175059 | test | // Tick increments the internal logical clock for this Node. Election timeouts
// and heartbeat timeouts are in units of ticks. | {
"resource": ""
} | ||
c175060 | test | // MustSync returns true if the hard state and count of Raft entries indicate
// that a synchronous write to persistent storage is required. | {
"resource": ""
} | ||
c175061 | test | // NewGRPC17Health returns a new health balancer with gRPC v1.7. | {
"resource": ""
} | ||
c175062 | test | // NeedUpdate returns true if all connections are down or
// addresses do not include current pinned address. | {
"resource": ""
} | ||
c175063 | test | // dflSignal sets the given signal to SIG_DFL | {
"resource": ""
} | ||
c175064 | test | // New creates a store where the given namespaces will be created as initial directories. | {
"resource": ""
} | ||
c175065 | test | // Index retrieves the current index of the store. | {
"resource": ""
} | ||
c175066 | test | // Get returns a get event.
// If recursive is true, it will return all the content under the node path.
// If sorted is true, it will sort the content by keys. | {
"resource": ""
} | ||
c175067 | test | // Create creates the node at nodePath. Create will help to create intermediate directories with no ttl.
// If the node has already existed, create will fail.
// If any node on the path is a file, create will fail. | {
"resource": ""
} | ||
c175068 | test | // Set creates or replace the node at nodePath. | {
"resource": ""
} | ||
c175069 | test | // returns user-readable cause of failed comparison | {
"resource": ""
} | ||
c175070 | test | // Delete deletes the node at the given path.
// If the node is a directory, recursive must be true to delete it. | {
"resource": ""
} | ||
c175071 | test | // walk walks all the nodePath and apply the walkFunc on each directory | {
"resource": ""
} | ||
c175072 | test | // InternalGet gets the node of the given nodePath. | {
"resource": ""
} | ||
c175073 | test | // DeleteExpiredKeys will delete all expired keys | {
"resource": ""
} | ||
c175074 | test | // checkDir will check whether the component is a directory under parent node.
// If it is a directory, this function will return the pointer to that node.
// If it does not exist, this function will create a new directory and return the pointer to that node.
// If it is a file, this function will return error. | {
"resource": ""
} | ||
c175075 | test | // Save saves the static state of the store system.
// It will not be able to save the state of watchers.
// It will not save the parent field of the node. Or there will
// be cyclic dependencies issue for the json package. | {
"resource": ""
} | ||
c175076 | test | // Recovery recovers the store system from a static state
// It needs to recover the parent field of the nodes.
// It needs to delete the expired nodes since the saved time and also
// needs to create monitoring go routines. | {
"resource": ""
} | ||
c175077 | test | // Next generates a id that is unique. | {
"resource": ""
} | ||
c175078 | test | // NewMakeMirrorCommand returns the cobra command for "makeMirror". | {
"resource": ""
} | ||
c175079 | test | // NewZapCoreLoggerBuilder generates a zap core logger builder. | {
"resource": ""
} | ||
c175080 | test | // NewSyncer creates a Syncer. | {
"resource": ""
} | ||
c175081 | test | // DropPort drops all tcp packets that are received from the given port and sent to the given port. | {
"resource": ""
} | ||
c175082 | test | // SetLatency adds latency in millisecond scale with random variations. | {
"resource": ""
} | ||
c175083 | test | // RemoveLatency resets latency configurations. | {
"resource": ""
} | ||
c175084 | test | // NewTxnCommand returns the cobra command for "txn". | {
"resource": ""
} | ||
c175085 | test | // txnCommandFunc executes the "txn" command. | {
"resource": ""
} | ||
c175086 | test | // New returns a new Compactor based on given "mode". | {
"resource": ""
} | ||
c175087 | test | // printResponseKey only supports to print key correctly. | {
"resource": ""
} | ||
c175088 | test | // RegisterLockHandler registers the http handlers for service Lock to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c175089 | test | // grpcHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC
// connections or otherHandler otherwise. Given in gRPC docs. | {
"resource": ""
} | ||
c175090 | test | // addCORSHeader adds the correct cors headers given an origin | {
"resource": ""
} | ||
c175091 | test | // fallback computes the ops to fetch all possible conflicting
// leasing keys for a list of ops. | {
"resource": ""
} | ||
c175092 | test | // IDFromString attempts to create an ID from a base-16 string. | {
"resource": ""
} | ||
c175093 | test | // Release deletes the pid file and releases our lock on the directory. | {
"resource": ""
} | ||
c175094 | test | // EncodedSize is the size of the ValueStruct when encoded | {
"resource": ""
} | ||
c175095 | test | // Decode uses the length of the slice to infer the length of the Value field. | {
"resource": ""
} | ||
c175096 | test | // NewMergeIterator returns a new MergeIterator from a list of Iterators. | {
"resource": ""
} | ||
c175097 | test | // initHeap checks all iterators and initializes our heap and array of keys.
// Whenever we reverse direction, we need to run this. | {
"resource": ""
} | ||
c175098 | test | // Valid returns whether the MergeIterator is at a valid element. | {
"resource": ""
} | ||
c175099 | test | // Key returns the key associated with the current iterator | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.