Documentation
¶
Index ¶
Constants ¶
View Source
const QuorumCheckTimeout = 15 * time.Second
QuorumCheckTimeout is the amount of time to allow for KV operations before quorum is declared invalid.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.7.0
Client is a wrapper around the official etcd client.
func NewClient ¶
NewClient initializes and returns an etcd client configured to talk to a local endpoint.
func NewClientFromControlPlaneIPs ¶
func NewClientFromControlPlaneIPs(ctx context.Context, creds *x509.PEMEncodedCertificateAndKey, endpoint *url.URL) (client *Client, err error)
NewClientFromControlPlaneIPs initializes and returns an etcd client configured to talk to all members.
func (*Client) ForfeitLeadership ¶ added in v0.7.0
ForfeitLeadership transfers leadership from the current member to another member.
nolint: gocyclo
func (*Client) LeaveCluster ¶ added in v0.7.0
LeaveCluster removes the current member from the etcd cluster.
nolint: gocyclo
Click to show internal directories.
Click to hide internal directories.