etcd

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 7 Imported by: 7

README

Package etcd v1.1.2

The package etcd contains a builder for an etcd client.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromEnv

func ClientFromEnv() (*etcdclient.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 etcdclient.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