Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEtcdClient ¶
func GetEtcdClient(ctx context.Context, certificates *Certificates, endpoints ...string) (*clientv3.Client, error)
GetEtcdClient returns an etcd client connected to the specified endpoints. If no endpoints are provided, endpoints are retrieved from the provided runtime config. If the runtime config does not list any endpoints, the default endpoint is used. The returned client should be closed when no longer needed, in order to avoid leaking GRPC client goroutines.
func WaitForEtcdClient ¶
Types ¶
type Certificates ¶
func EndpointsAndCertificatesFromFlags ¶
func EndpointsAndCertificatesFromFlags(flags []string) ([]string, *Certificates, error)
Click to show internal directories.
Click to hide internal directories.