Documentation ¶
Overview ¶
Package etcd provides objects for creating an embedded etcd server process.
Index ¶
- func GetAndTestEtcdClient(etcdClientInfo configapi.EtcdConnectionInfo) (etcdclient.Client, error)
- func GetAndTestEtcdClientV3(etcdClientInfo configapi.EtcdConnectionInfo) (*clientv3.Client, error)
- func MakeEtcdClient(etcdClientInfo configapi.EtcdConnectionInfo) (etcdclient.Client, error)
- func MakeEtcdClientV3(etcdClientInfo configapi.EtcdConnectionInfo) (*clientv3.Client, error)
- func TestEtcdClient(etcdClient etcdclient.Client) error
- func TestEtcdClientV3(etcdClient *clientv3.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAndTestEtcdClient ¶
func GetAndTestEtcdClient(etcdClientInfo configapi.EtcdConnectionInfo) (etcdclient.Client, error)
GetAndTestEtcdClient creates an etcd client based on the provided config. 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 GetAndTestEtcdClientV3 ¶
func GetAndTestEtcdClientV3(etcdClientInfo configapi.EtcdConnectionInfo) (*clientv3.Client, error)
GetAndTestEtcdClientV3 creates an etcd client based on the provided config. 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 MakeEtcdClient ¶
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)
MakeEtcdClient creates an etcd client based on the provided config.
func TestEtcdClient ¶
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 ¶
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.
Types ¶
This section is empty.