Versions in this module Expand all Collapse all v0 v0.2.1 Sep 5, 2024 Changes in this version + var EtcdProxyDaemonsetYamlTemplate string v0.2.0 Jun 17, 2024 Changes in this version + const DefaultCallTimeout + const EtcdProxyDaemonsetYamlLocation + var AlarmTypeName = map[AlarmType]string + var EtcdProxyDaemonsetYaml string + type AlarmType int32 + const AlarmCorrupt + const AlarmNoSpace + const AlarmOK + type Client struct + CallTimeout time.Duration + Endpoint string + Errors []string + EtcdClient etcd + LeaderID uint64 + func NewClient(ctx context.Context, config ClientConfiguration) (*Client, error) + func (c *Client) Alarms(ctx context.Context) ([]MemberAlarm, error) + func (c *Client) Close() error + func (c *Client) Members(ctx context.Context) ([]*Member, error) + func (c *Client) MoveLeader(ctx context.Context, newLeaderID uint64) error + func (c *Client) RemoveMember(ctx context.Context, id uint64) error + func (c *Client) UpdateMemberPeerURLs(ctx context.Context, id uint64, peerURLs []string) ([]*Member, error) + type ClientConfiguration struct + CallTimeout time.Duration + DialTimeout time.Duration + Endpoint string + Proxy proxy.Proxy + TLSConfig *tls.Config + type GRPCDial func(ctx context.Context, addr string) (net.Conn, error) + type Member struct + Alarms []AlarmType + ClientURLs []string + ClusterID uint64 + ID uint64 + IsLearner bool + Name string + PeerURLs []string + type MemberAlarm struct + MemberID uint64 + Type AlarmType