Documentation ¶
Index ¶
- Variables
- type Cluster
- type PeerAliveEvent
- type PeerDesc
- type PeerEvent
- type PeerJoinedEvent
- type PeerList
- type PeerLostEvent
- type TestCluster
- func (tc *TestCluster) GetDir(key string) (map[string]string, error)
- func (tc *TestCluster) GetSecret(kms security.KMS, name string, bytes int) ([]byte, error)
- func (tc *TestCluster) GetValue(key string) (string, error)
- func (tc *TestCluster) GetValueWithDefault(key string, setter func() (string, error)) (string, error)
- func (tc *TestCluster) Part()
- func (tc *TestCluster) Peers() []PeerDesc
- func (tc *TestCluster) SetValue(key, value string) error
- func (tc *TestCluster) Update(desc *PeerDesc) error
- func (tc *TestCluster) Watch() <-chan PeerEvent
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { GetDir(key string) (map[string]string, error) GetValue(key string) (string, error) SetValue(key, value string) error GetValueWithDefault(key string, setter func() (string, error)) (string, error) GetSecret(kms security.KMS, name string, bytes int) ([]byte, error) Update(desc *PeerDesc) error Part() Peers() []PeerDesc Watch() <-chan PeerEvent }
type PeerDesc ¶
type TestCluster ¶
func (*TestCluster) GetSecret ¶
func (*TestCluster) GetValue ¶
func (tc *TestCluster) GetValue(key string) (string, error)
func (*TestCluster) GetValueWithDefault ¶
func (*TestCluster) Part ¶
func (tc *TestCluster) Part()
func (*TestCluster) Peers ¶
func (tc *TestCluster) Peers() []PeerDesc
func (*TestCluster) SetValue ¶
func (tc *TestCluster) SetValue(key, value string) error
func (*TestCluster) Update ¶
func (tc *TestCluster) Update(desc *PeerDesc) error
func (*TestCluster) Watch ¶
func (tc *TestCluster) Watch() <-chan PeerEvent
Click to show internal directories.
Click to hide internal directories.