etcd

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientForEndpoint

func ClientForEndpoint(endpoint string, cfg *apis.EtcdAdmConfig) (*clientv3.Client, error)

ClientForEndpoint returns an etcd client that will use the given etcd endpoint.

func InitialClusterFromMembers added in v0.0.5

func InitialClusterFromMembers(members []*etcdserverpb.Member) string

InitialClusterFromMembers derives an "initial cluster" string from a member list

func MemberForID

func MemberForID(members []*etcdserverpb.Member, id uint64) (*etcdserverpb.Member, bool)

MemberForID searches the list for a member with a matching ID.

func MemberForPeerURLs

func MemberForPeerURLs(members []*etcdserverpb.Member, peerURLs []string) (*etcdserverpb.Member, bool)

MemberForPeerURLs searches the list for a member with matching peerURLs.

func RestoreSnapshot

func RestoreSnapshot(cfg *apis.EtcdAdmConfig) error

RestoreSnapshot initializes the etcd data directory from a snapshot

func Started

func Started(member *etcdserverpb.Member) bool

Started checks whether the member has started.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL