etcdclient

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosedClient = errors.New("use of closed etcdclient client")

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(addrlist string, auth string, timeout time.Duration) (*Client, error)

func (*Client) AddrList

func (c *Client) AddrList() string

func (*Client) Close

func (c *Client) Close() error

func (*Client) Create

func (c *Client) Create(path string, data []byte) error

func (*Client) Delete

func (c *Client) Delete(path string) error

func (*Client) List

func (c *Client) List(path string) ([]string, error)

func (*Client) MkDir

func (c *Client) MkDir(path string) error

func (*Client) Read

func (c *Client) Read(path string, must bool) ([]byte, error)

func (*Client) Rmdir

func (c *Client) Rmdir(dir string) error

func (*Client) Update

func (c *Client) Update(path string, data []byte) error

func (*Client) WatchOnce

func (c *Client) WatchOnce(path string) (<-chan struct{}, error)

Jump to

Keyboard shortcuts

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