Documentation ¶
Overview ¶
Package etcd provides objects for creating an embedded etcd server process.
Index ¶
- func MakeEtcdClient(etcdClientInfo configapi.EtcdConnectionInfo) (etcdclient.Client, error)
- func MakeEtcdClientV3(etcdClientInfo configapi.EtcdConnectionInfo) (*clientv3.Client, error)
- func MakeEtcdClientV3Config(etcdClientInfo configapi.EtcdConnectionInfo) (*clientv3.Config, error)
- func TestEtcdClient(etcdClient etcdclient.Client) error
- func TestEtcdClientV3(etcdClient *clientv3.Client) error
- func TestEtcdConnectionInfo(etcdClientInfo configapi.EtcdConnectionInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeEtcdClient ¶ added in v1.4.0
func MakeEtcdClient(etcdClientInfo configapi.EtcdConnectionInfo) (etcdclient.Client, error)
MakeEtcdClient creates an etcd client based on the provided config.
func MakeEtcdClientV3 ¶
func MakeEtcdClientV3(etcdClientInfo configapi.EtcdConnectionInfo) (*clientv3.Client, error)
MakeEtcdClientV3 creates an etcd v3 client based on the provided config.
func MakeEtcdClientV3Config ¶
func MakeEtcdClientV3Config(etcdClientInfo configapi.EtcdConnectionInfo) (*clientv3.Config, error)
MakeEtcdClientV3Config creates client configuration based on the configapi.
func TestEtcdClient ¶ added in v1.0.5
func TestEtcdClient(etcdClient etcdclient.Client) error
TestEtcdClient verifies a client is functional. It will attempt to connect to the etcd server and block until the server responds at least once, or return an error if the server never responded.
func TestEtcdClientV3 ¶
TestEtcdClientV3 verifies a client is functional. It will attempt to connect to the etcd server and block until the server responds at least once, or return an error if the server never responded.
func TestEtcdConnectionInfo ¶
func TestEtcdConnectionInfo(etcdClientInfo configapi.EtcdConnectionInfo) error
TestEtcdConnectionInfo creates an etcd client based on the provided config and attempts to connect to the etcd server and block until the server responds at least once, or return an error if the server never responded.
Types ¶
This section is empty.