etcd

package
v7.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromEnv

func ClientFromEnv() (*clientv3.Client, error)

ClientFromEnv generates a etcd client (API v3) from the environment Look at ConfigFromEnv to get details about the environment variables used

func ConfigFromEnv

func ConfigFromEnv() (res clientv3.Config, _ error)

ConfigFromEnv generates a etcd clientv3 config from the environment using the following variables: * ETCD_HOSTS: The different endpoints of etcd members * ETCD_TLS_CERT: Path to the TLS X.509 certificate * ETCD_TLS_KEY: Path to the private key authenticating the certificate * ETCD_CACERT: Path to the CA cert signing the etcd member certifcates

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL