etcdutils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

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