etcd

package
v0.0.0-...-981b013 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b []string, strict bool) bool

func NSLabels

func NSLabels(userid string) string

func NSLabelsKey

func NSLabelsKey(name string) string

func SplitLabels

func SplitLabels(value string) []string

Types

type ETCD

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

func New

func New(conf *model.Config, cache storage.Cacher, timeout time.Duration) (*ETCD, error)

func (*ETCD) Close

func (db *ETCD) Close()

func (*ETCD) Delete

func (e *ETCD) Delete(ctx context.Context, req *mPb.NSReq) (error, *mPb.NSResp)

func (*ETCD) Exists

func (e *ETCD) Exists(ctx context.Context, req *mPb.NSReq) (error, *mPb.NSResp)

func (*ETCD) List

func (e *ETCD) List(ctx context.Context, extra map[string]string) (error, *cPb.ListResp)

func (*ETCD) Mutate

func (e *ETCD) Mutate(ctx context.Context, req *cPb.MutateReq) (error, *cPb.MutateResp)

Jump to

Keyboard shortcuts

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