package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

CreateDataDirectory creates the etcd data directory (commonly /var/lib/etcd) with the right permissions.
GetClientURL creates an HTTPS URL that uses the configured advertise address and client port for the API controller.
GetClientURLByIP creates an HTTPS URL based on an IP address and the client listening port.
GetPeerURL creates an HTTPS URL that uses the configured advertise address and peer port for the API controller.
New creates a new EtcdCluster client.
NewFromCluster creates an etcd client for the etcd endpoints present in etcd member list.

# Variables

ErrNoMemberIDForPeerURL is returned when it is not possible to obtain a member ID from a given peer URL.

# Structs

Client provides connection parameters for an etcd cluster.
Member struct defines an etcd member; it is used for avoiding to spread github.com/coreos/etcd dependency across kubeadm codebase.

# Interfaces

ClusterInterrogator is an interface to get etcd cluster related information.