Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEtcdClientFactory ¶
func RegisterEtcdClientFactory(name kstonev1alpha2.EtcdStorageBackend, factory Factory)
RegisterEtcdClientFactory registers the specified etcd client
Types ¶
type Factory ¶
type Factory func(cluster *VersionContext) (VersionClient, error)
type Member ¶
type Member struct { ID string Name string PeerURLs []string ClientURLs []string Version string IsLearner bool Leader string }
Member contains member info including v2 and v3
type VersionClient ¶
type VersionClient interface { MemberList() ([]Member, error) Status(endpoint string) (*Member, error) Close() }
func GetEtcdClientProvider ¶
func GetEtcdClientProvider( name kstonev1alpha2.EtcdStorageBackend, ctx *VersionContext, ) (VersionClient, error)
GetEtcdClientProvider gets the specified etcd client
type VersionContext ¶
type VersionContext struct {
Config *etcd.ClientConfig
}
Click to show internal directories.
Click to hide internal directories.