Documentation ¶
Index ¶
- Constants
- func ListMembers(clientURLs []string, tc *tls.Config) (*clientv3.MemberListResponse, error)
- func MemberNameFromPeerURL(pu string) (string, error)
- func NewTLSConfig(certData, keyData, caData []byte) (*tls.Config, error)
- func RemoveMember(clientURLs []string, tc *tls.Config, id uint64) error
- type Member
- type MemberSet
- func (ms MemberSet) Add(m *Member)
- func (ms MemberSet) ClientURLs() []string
- func (ms MemberSet) Diff(other MemberSet) MemberSet
- func (ms MemberSet) IsEqual(other MemberSet) bool
- func (ms MemberSet) PeerURLPairs() []string
- func (ms MemberSet) PickOne() *Member
- func (ms MemberSet) Remove(name string)
- func (ms MemberSet) Size() int
- func (ms MemberSet) String() string
Constants ¶
View Source
const ( CliCertFile = "etcd-client.crt" CliKeyFile = "etcd-client.key" CliCAFile = "etcd-client-ca.crt" )
Variables ¶
This section is empty.
Functions ¶
func ListMembers ¶
func MemberNameFromPeerURL ¶
Types ¶
type Member ¶
type Member struct { Name string // Kubernetes namespace this member runs in. Namespace string // ID field can be 0, which is unknown ID. // We know the ID of a member when we get the member information from etcd, // but not from Kubernetes pod list. ID uint64 SecurePeer bool SecureClient bool // ClusterDomain is the DNS name of the cluster. E.g. .cluster.local. ClusterDomain string }
func (*Member) ListenClientURL ¶
func (*Member) ListenPeerURL ¶
type MemberSet ¶
func NewMemberSet ¶
func (MemberSet) ClientURLs ¶
func (MemberSet) IsEqual ¶
IsEqual tells whether two member sets are equal by checking - they have the same set of members and member equality are judged by Name only.
func (MemberSet) PeerURLPairs ¶
Click to show internal directories.
Click to hide internal directories.