etcdutils

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server added in v0.0.14

func Server() settings.T

Types

type ETC

type ETC struct {
	CertsDir string

	Cli *clientv3.Client
	// contains filtered or unexported fields
}

func NewETC

func NewETC(options ...string) (ETC, func())

func (ETC) Cancel

func (e ETC) Cancel()

func (ETC) Delete

func (e ETC) Delete(key string) (*clientv3.DeleteResponse, error)

func (ETC) DeleteWithPrefix

func (e ETC) DeleteWithPrefix(key string) (*clientv3.DeleteResponse, error)

func (ETC) Get

func (e ETC) Get(key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)

func (ETC) GetWithPrefix

func (e ETC) GetWithPrefix(key string) (*clientv3.GetResponse, error)

func (ETC) Put

func (e ETC) Put(key string, value string) (*clientv3.PutResponse, error)

func (ETC) PutWithLease

func (e ETC) PutWithLease(key string, value string, ttl int64) (*clientv3.PutResponse, error)

func (ETC) Txn

func (e ETC) Txn() clientv3.Txn

Jump to

Keyboard shortcuts

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