consul

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

type Consul interface {
	TokenList(query *api.QueryOptions) (tokens []*api.ACLTokenListEntry, err error)
	ACLList(query *api.QueryOptions) (aclTokenList []*api.ACLEntry, err error)
	ACLCreate(query *api.ACLEntry) (acl *api.ACLEntry, err error)
	ACLUpdate(query *api.ACLEntry) (err error)
	ACLDelete(token string) (err error)
}

func NewConsulClient

func NewConsulClient(cf *config.Config) (consulClient Consul, err error)

type KVClient

type KVClient interface {
	KVList(prefix string) (pairs api.KVPairs, err error)
	KVGet(prefix string) (pairs *api.KVPair, err error)
	KVPut(key string, value string) (err error)
	KVDelete(key string) (err error)
	KVDeleteTree(prefix string) (err error)
}

func NewKVClient

func NewKVClient(cf *config.Config, tokenId string) (KVClient, error)

Jump to

Keyboard shortcuts

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