_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c174800 | test | // NewRaftLoggerFromZapCore creates "raft.Logger" from "zap.Core"
// and "zapcore.WriteSyncer". | {
"resource": ""
} | ||
c174801 | test | // NewConfig creates a new clientv3.Config from a yaml file. | {
"resource": ""
} | ||
c174802 | test | // RegisterElectionHandler registers the http handlers for service Election to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c174803 | test | // UpdateCapability updates the enabledMap when the cluster version increases. | {
"resource": ""
} | ||
c174804 | test | // NewLockCommand returns the cobra command for "lock". | {
"resource": ""
} | ||
c174805 | test | // raft.Node does not have locks in Raft package | {
"resource": ""
} | ||
c174806 | test | // advanceTicks advances ticks of Raft node.
// This can be used for fast-forwarding election
// ticks in multi data-center deployments, thus
// speeding up election process. | {
"resource": ""
} | ||
c174807 | test | // NewAuthCommand returns the cobra command for "auth". | {
"resource": ""
} | ||
c174808 | test | // authEnableCommandFunc executes the "auth enable" command. | {
"resource": ""
} | ||
c174809 | test | // authDisableCommandFunc executes the "auth disable" command. | {
"resource": ""
} | ||
c174810 | test | // RetryKVClient implements a KVClient. | {
"resource": ""
} | ||
c174811 | test | // RetryLeaseClient implements a LeaseClient. | {
"resource": ""
} | ||
c174812 | test | // RetryClusterClient implements a ClusterClient. | {
"resource": ""
} | ||
c174813 | test | // RetryMaintenanceClient implements a Maintenance. | {
"resource": ""
} | ||
c174814 | test | // RetryAuthClient implements a AuthClient. | {
"resource": ""
} | ||
c174815 | test | // NewSetDirCommand returns the CLI command for "setDir". | {
"resource": ""
} | ||
c174816 | test | // Enter waits for "count" processes to enter the barrier then returns | {
"resource": ""
} | ||
c174817 | test | // Leave waits for "count" processes to leave the barrier then returns | {
"resource": ""
} | ||
c174818 | test | // HandleBasic adds handlers to a mux for serving JSON etcd client requests
// that do not access the v2 store. | {
"resource": ""
} | ||
c174819 | test | // WriteError logs and writes the given Error to the ResponseWriter
// If Error is an etcdErr, it is rendered to the ResponseWriter
// Otherwise, it is assumed to be a StatusInternalServerError | {
"resource": ""
} | ||
c174820 | test | // MemberByName returns a Member with the given name if exists.
// If more than one member has the given name, it will panic. | {
"resource": ""
} | ||
c174821 | test | // PeerURLs returns a list of all peer addresses.
// The returned list is sorted in ascending lexicographical order. | {
"resource": ""
} | ||
c174822 | test | // ValidateConfigurationChange takes a proposed ConfChange and
// ensures that it is still valid. | {
"resource": ""
} | ||
c174823 | test | // AddMember adds a new Member into the cluster, and saves the given member's
// raftAttributes into the store. The given member should have empty attributes.
// A Member with a matching id must not exist. | {
"resource": ""
} | ||
c174824 | test | // RemoveMember removes a member from the store.
// The given id MUST exist, or the function panics. | {
"resource": ""
} | ||
c174825 | test | // ValidateClusterAndAssignIDs validates the local cluster by matching the PeerURLs
// with the existing cluster. If the validation succeeds, it assigns the IDs
// from the existing cluster to the local cluster.
// If the validation fails, an error will be returned. | {
"resource": ""
} | ||
c174826 | test | // Keep finds all revisions to be kept for a Compaction at the given rev. | {
"resource": ""
} | ||
c174827 | test | // closeRequireLeader scans keepAlives for ctxs that have require leader
// and closes the associated channels. | {
"resource": ""
} | ||
c174828 | test | // resetRecv opens a new lease stream and starts sending keep alive requests. | {
"resource": ""
} | ||
c174829 | test | // recvKeepAlive updates a lease based on its LeaseKeepAliveResponse | {
"resource": ""
} | ||
c174830 | test | // deadlineLoop reaps any keep alive channels that have not received a response
// within the lease TTL | {
"resource": ""
} | ||
c174831 | test | // sendKeepAliveLoop sends keep alive requests for the lifetime of the given stream. | {
"resource": ""
} | ||
c174832 | test | // NewKV wraps a KV instance so that all requests are wired through a leasing protocol. | {
"resource": ""
} | ||
c174833 | test | // rescind releases a lease from this client. | {
"resource": ""
} | ||
c174834 | test | // LeaseValue compares a key's LeaseID to a value of your choosing. The empty
// LeaseID is 0, otherwise known as `NoLease`. | {
"resource": ""
} | ||
c174835 | test | // ValueBytes returns the byte slice holding the comparison value, if any. | {
"resource": ""
} | ||
c174836 | test | // WithRange sets the comparison to scan the range [key, end). | {
"resource": ""
} | ||
c174837 | test | // WithPrefix sets the comparison to scan all keys prefixed by the key. | {
"resource": ""
} | ||
c174838 | test | // mustInt64 panics if val isn't an int or int64. It returns an int64 otherwise. | {
"resource": ""
} | ||
c174839 | test | // mustInt64orLeaseID panics if val isn't a LeaseID, int or int64. It returns an
// int64 otherwise. | {
"resource": ""
} | ||
c174840 | test | // Next gets the next set of updates from the etcd resolver.
// Calls to Next should be serialized; concurrent calls are not safe since
// there is no way to reconcile the update ordering. | {
"resource": ""
} | ||
c174841 | test | // use stderr as fallback | {
"resource": ""
} | ||
c174842 | test | // newKV creates a Key-Value pair | {
"resource": ""
} | ||
c174843 | test | // newDir creates a directory | {
"resource": ""
} | ||
c174844 | test | // Read function gets the value of the node.
// If the receiver node is not a key-value pair, a "Not A File" error will be returned. | {
"resource": ""
} | ||
c174845 | test | // Write function set the value of the node to the given value.
// If the receiver node is a directory, a "Not A File" error will be returned. | {
"resource": ""
} | ||
c174846 | test | // List function return a slice of nodes under the receiver node.
// If the receiver node is not a directory, a "Not A Directory" error will be returned. | {
"resource": ""
} | ||
c174847 | test | // GetChild function returns the child node under the directory node.
// On success, it returns the file node | {
"resource": ""
} | ||
c174848 | test | // Add function adds a node to the receiver node.
// If the receiver is not a directory, a "Not A Directory" error will be returned.
// If there is an existing node with the same name under the directory, a "Already Exist"
// error will be returned | {
"resource": ""
} | ||
c174849 | test | // Remove function remove the node. | {
"resource": ""
} | ||
c174850 | test | // Compare function compares node index and value with provided ones.
// second result value explains result and equals to one of Compare.. constants | {
"resource": ""
} | ||
c174851 | test | // Clone function clone the node recursively and return the new node.
// If the node is a directory, it will clone all the content under this directory.
// If the node is a key-value pair, it will clone the pair. | {
"resource": ""
} | ||
c174852 | test | // isConnectedToQuorumSince checks whether the local member is connected to the
// quorum of the cluster since the given time. | {
"resource": ""
} | ||
c174853 | test | // isConnectedSince checks whether the local member is connected to the
// remote member since the given time. | {
"resource": ""
} | ||
c174854 | test | // numConnectedSince counts how many members are connected to the local member
// since the given time. | {
"resource": ""
} | ||
c174855 | test | // longestConnected chooses the member with longest active-since-time.
// It returns false, if nothing is active. | {
"resource": ""
} | ||
c174856 | test | // isTornEntry determines whether the last entry of the WAL was partially written
// and corrupted because of a torn write. | {
"resource": ""
} | ||
c174857 | test | // StartMockServersOnNetwork creates mock servers on either 'tcp' or 'unix' sockets. | {
"resource": ""
} | ||
c174858 | test | // StartAt restarts mock server at given index. | {
"resource": ""
} | ||
c174859 | test | // StopAt stops mock server at given index. | {
"resource": ""
} | ||
c174860 | test | // Stop stops the mock server, immediately closing all open connections and listeners. | {
"resource": ""
} | ||
c174861 | test | // NewCheckCommand returns the cobra command for "check". | {
"resource": ""
} | ||
c174862 | test | // NewCheckPerfCommand returns the cobra command for "check perf". | {
"resource": ""
} | ||
c174863 | test | // NewCheckDatascaleCommand returns the cobra command for "check datascale". | {
"resource": ""
} | ||
c174864 | test | // NewGetCommand returns the cobra command for "get". | {
"resource": ""
} | ||
c174865 | test | // NewGetCommand returns the CLI command for "get". | {
"resource": ""
} | ||
c174866 | test | // PickPeerURL chooses a random address from a given Member's PeerURLs.
// It will panic if there is no PeerURLs available in Member. | {
"resource": ""
} | ||
c174867 | test | // HandleMetricsHealth registers metrics and health handlers. | {
"resource": ""
} | ||
c174868 | test | // NewRemoveCommand returns the CLI command for "rm". | {
"resource": ""
} | ||
c174869 | test | // rmCommandFunc executes the "rm" command. | {
"resource": ""
} | ||
c174870 | test | // checkIntervals tests whether puts and deletes overlap for a list of ops. If
// there is an overlap, returns an error. If no overlap, return put and delete
// sets for recursive evaluation. | {
"resource": ""
} | ||
c174871 | test | // ReportEventReceived reports that an event is received.
// This function should be called when the external systems received an
// event from mvcc.Watcher. | {
"resource": ""
} | ||
c174872 | test | // RegisterKVHandler registers the http handlers for service KV to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c174873 | test | // RegisterWatchHandler registers the http handlers for service Watch to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c174874 | test | // RegisterLeaseHandler registers the http handlers for service Lease to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c174875 | test | // RegisterClusterHandler registers the http handlers for service Cluster to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c174876 | test | // RegisterMaintenanceHandler registers the http handlers for service Maintenance to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c174877 | test | // RegisterAuthHandler registers the http handlers for service Auth to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c174878 | test | // startEtcd runs StartEtcd in addition to hooks needed for standalone etcd. | {
"resource": ""
} | ||
c174879 | test | // identifyDataDirOrDie returns the type of the data dir.
// Dies if the datadir is invalid. | {
"resource": ""
} | ||
c174880 | test | // gotLeader will force update the leadership status to having a leader. | {
"resource": ""
} | ||
c174881 | test | // lostNotify returns a channel that is closed if there has been
// a leader loss not yet followed by a leader reacquire. | {
"resource": ""
} | ||
c174882 | test | // newGRPCProxyCommand returns the cobra command for "grpc-proxy". | {
"resource": ""
} | ||
c174883 | test | // NewMemberCommand returns the cobra command for "member". | {
"resource": ""
} | ||
c174884 | test | // NewMemberAddCommand returns the cobra command for "member add". | {
"resource": ""
} | ||
c174885 | test | // NewMemberRemoveCommand returns the cobra command for "member remove". | {
"resource": ""
} | ||
c174886 | test | // NewMemberUpdateCommand returns the cobra command for "member update". | {
"resource": ""
} | ||
c174887 | test | // NewMemberListCommand returns the cobra command for "member list". | {
"resource": ""
} | ||
c174888 | test | // memberAddCommandFunc executes the "member add" command. | {
"resource": ""
} | ||
c174889 | test | // memberRemoveCommandFunc executes the "member remove" command. | {
"resource": ""
} | ||
c174890 | test | // memberUpdateCommandFunc executes the "member update" command. | {
"resource": ""
} | ||
c174891 | test | // memberListCommandFunc executes the "member list" command. | {
"resource": ""
} | ||
c174892 | test | // Verify reads through the given WAL and verifies that it is not corrupted.
// It creates a new decoder to read through the records of the given WAL.
// It does not conflict with any open WAL, but it is recommended not to
// call this function after opening the WAL for writing.
// If it cannot read out the expected sn... | {
"resource": ""
} | ||
c174893 | test | // Close closes the current WAL file and directory. | {
"resource": ""
} | ||
c174894 | test | // notify function notifies the watcher. If the watcher interests in the given path,
// the function will return true. | {
"resource": ""
} | ||
c174895 | test | // Remove removes the watcher from watcherHub
// The actual remove function is guaranteed to only be executed once | {
"resource": ""
} | ||
c174896 | test | // mkPathDepth makes a path to a key that encodes its directory depth
// for fast directory listing. If a depth is provided, it is added
// to the computed depth. | {
"resource": ""
} | ||
c174897 | test | // mkV2Node creates a V2 NodeExtern from a V3 KeyValue | {
"resource": ""
} | ||
c174898 | test | // prevKeyFromPuts gets the prev key that is being put; ignores
// the put action response. | {
"resource": ""
} | ||
c174899 | test | // NewWeightedReport returns a report that includes
// both weighted and unweighted statistics. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.