xetcd

package
v0.0.0-...-bd4735d Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialClient

func DialClient(conf EtcdConf) (*clientv3.Client, error)

DialClient dials an etcd cluster with given endpoints.

Types

type EtcdConf

type EtcdConf struct {
	Hosts              []string
	User               string
	Pass               string
	CertFile           string
	CertKeyFile        string
	CACertFile         string
	InsecureSkipVerify bool
}

func (EtcdConf) HasAccount

func (c EtcdConf) HasAccount() bool

HasAccount returns if account provided.

func (EtcdConf) HasTLS

func (c EtcdConf) HasTLS() bool

HasTLS returns if TLS CertFile/CertKeyFile/CACertFile are provided.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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