Documentation ¶
Index ¶
- func CheckHealth(url string) (bool, error)
- func CreateMemberName(clusterName string, member int) string
- func GetCounterFromMemberName(name string) (int, error)
- func ListMembers(endpoints []string) (*clientv3.MemberListResponse, error)
- func MemberNameFromPeerURL(pu string) (string, error)
- func RemoveMember(clientURLs []string, 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHealth ¶ added in v0.2.2
func CreateMemberName ¶ added in v0.2.0
func GetCounterFromMemberName ¶ added in v0.2.0
func ListMembers ¶ added in v0.2.0
func ListMembers(endpoints []string) (*clientv3.MemberListResponse, error)
func MemberNameFromPeerURL ¶ added in v0.2.0
func RemoveMember ¶ added in v0.2.0
Types ¶
type Member ¶
type Member struct { Name 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 // PeerURLs is only used for self-hosted setup. PeerURLs []string // ClientURLs is only used for self-hosted setup. ClientURLs []string }
func (*Member) ClientAddr ¶
type MemberSet ¶
func NewMemberSet ¶
func (MemberSet) ClientURLs ¶
func (MemberSet) IsEqual ¶ added in v0.2.0
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.