etcd

package
v0.0.0-...-59647e1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCALHOST = "127.0.0.1"
	IMAGE     = "quay.io/coreos/etcd"
)

Variables

View Source
var QUORUM = 3

Functions

This section is empty.

Types

type Etcd

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

func (Etcd) Addr

func (st Etcd) Addr() (addr string)

func (Etcd) Delete

func (st Etcd) Delete(key, dir string) (err error)

func (*Etcd) Initialize

func (st *Etcd) Initialize(token string, servers []string) error

func (Etcd) List

func (st Etcd) List(key, dir string) (keys []string, err error)

func (*Etcd) New

func (st *Etcd) New(addr string)

func (Etcd) Read

func (st Etcd) Read(key, dir string) (value string, err error)

func (Etcd) Write

func (st Etcd) Write(key, value, dir string) (err error)

type Node

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

Jump to

Keyboard shortcuts

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