etcd

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPrefix = "/sapi/config"
)

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

func NewEtcd

func NewEtcd(options *Options) (*Etcd, error)

func (*Etcd) Del

func (c *Etcd) Del(ctx context.Context, prefix string) (deleted int64, err error)

func (*Etcd) Put

func (c *Etcd) Put(val string)

func (*Etcd) Read

func (c *Etcd) Read(data interface{}) error

func (*Etcd) Watch

func (c *Etcd) Watch() (api.Watcher, error)

type Options

type Options struct {
	Name string

	Endpoints []string
	Timeout   int
	Format    string
	Prefix    string
	Debug     bool

	BasicAuth bool
	Username  string
	Password  string

	CertFile string
	KeyFile  string
	CaCert   string
}

https://github.com/mistaker/etcdTool

Jump to

Keyboard shortcuts

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