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