etcd

package
v0.0.0-...-c188a41 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliTimeoutKey = "ETCDV3_CLI_TIMEOUT_SECOND"

Functions

func CreateEtcdConfigManager

func CreateEtcdConfigManager(machines []string, username, password string) (remote.RemoteConfigManager, error)

Types

type ClientV3

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

func NewV3

func NewV3(machines []string, username, password string) (*ClientV3, error)

func (*ClientV3) Get

func (c *ClientV3) Get(key string) ([]byte, error)

func (*ClientV3) List

func (c *ClientV3) List(key string) (remote.KVPairs, error)

func (*ClientV3) Set

func (c *ClientV3) Set(key string, value []byte) error

func (*ClientV3) Watch

func (c *ClientV3) Watch(key string, stop chan bool) <-chan *remote.Response

Jump to

Keyboard shortcuts

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