etcd

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OperationRM  = Operation("rm")
	OperationPut = Operation("put")
	OperationMV  = Operation("mv")
)

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	Client     *clientv3.Client
	Hosts      []string
	Username   *string
	Password   *string
	Key        string
	WithPrefix *bool
	ClearOp    *Operation
	ClearKey   *string
	ClearVal   *string
	FailOp     *Operation
	FailKey    *string
	FailVal    *string
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
	// contains filtered or unexported fields
}

func (*Etcd) Cleanup

func (d *Etcd) Cleanup() error

func (*Etcd) ClearWork

func (d *Etcd) ClearWork() error

func (*Etcd) GetWork

func (d *Etcd) GetWork() (io.Reader, error)

func (*Etcd) HandleFailure

func (d *Etcd) HandleFailure() error

func (*Etcd) Init

func (d *Etcd) Init() error

func (*Etcd) LoadEnv

func (d *Etcd) LoadEnv(prefix string) error

func (*Etcd) LoadFlags

func (d *Etcd) LoadFlags() error

type Operation

type Operation string

Jump to

Keyboard shortcuts

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