etcd_cli

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewEtcdClient

func NewEtcdClient(ctx context.Context, prefix string) *Client

func (*Client) Close

func (r *Client) Close() error

func (*Client) DeleteAssume

func (r *Client) DeleteAssume(key string) (supbapis.Assume, error)

func (*Client) Get

func (r *Client) Get(key string) ([]byte, error)

func (*Client) InitFlags

func (r *Client) InitFlags(flags *pflag.FlagSet)

func (*Client) InitViper

func (r *Client) InitViper(viper *viper.Viper)

func (*Client) Initialize

func (r *Client) Initialize(opts ...option)

func (*Client) OptionConfig

func (r *Client) OptionConfig(opts ...option)

func (*Client) Put

func (r *Client) Put(key, value string) error

func (*Client) Read

func (r *Client) Read(key string) ([]byte, error)

func (*Client) ViperConfig

func (r *Client) ViperConfig(viper *viper.Viper)

func (*Client) WatchKey

func (r *Client) WatchKey(prefix string) clientv3.WatchChan

func (*Client) WatchPrefix

func (r *Client) WatchPrefix(prefix string) clientv3.WatchChan

func (*Client) WriteAssume

func (r *Client) WriteAssume(key string, value []byte) (supbapis.Assume, error)

Jump to

Keyboard shortcuts

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