config

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigManager

type ConfigManager interface {
	Get(key string) ([]byte, error)
	List(key string) (KVPairs, error)
	Set(key string, value []byte) error
	Watch(key string, stop chan bool) <-chan *Response
}

A ConfigManager retrieves and decrypts configuration from a key/value store.

func NewConfigManager added in v0.15.1

func NewConfigManager(client backend.Store, keystore io.Reader) (ConfigManager, error)

func NewConsulConfigManager

func NewConsulConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)

NewConsulConfigManager returns a new ConfigManager backed by consul. Data will be encrypted.

func NewEtcdConfigManager

func NewEtcdConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)

NewEtcdConfigManager returns a new ConfigManager backed by etcd. Data will be encrypted.

func NewEtcdV3ConfigManager added in v0.15.1

func NewEtcdV3ConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)

NewEtcdV3ConfigManager returns a new ConfigManager backed by etcdv3. Data will be encrypted.

func NewFirestoreConfigManager added in v0.15.1

func NewFirestoreConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)

NewFirestoreConfigManager returns a new ConfigManager backed by Firestore. Data will be encrypted.

func NewNatsConfigManager added in v0.15.1

func NewNatsConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)

NewNatsConfigManager returns a new ConfigManager backed by NATS. Data will be encrypted.

func NewStandardConfigManager added in v0.15.1

func NewStandardConfigManager(client backend.Store) (ConfigManager, error)

func NewStandardConsulConfigManager added in v0.0.2

func NewStandardConsulConfigManager(machines []string) (ConfigManager, error)

NewStandardConsulConfigManager returns a new ConfigManager backed by consul.

func NewStandardEtcdConfigManager added in v0.0.2

func NewStandardEtcdConfigManager(machines []string) (ConfigManager, error)

NewStandardEtcdConfigManager returns a new ConfigManager backed by etcd.

func NewStandardEtcdV3ConfigManager added in v0.15.1

func NewStandardEtcdV3ConfigManager(machines []string) (ConfigManager, error)

NewStandardEtcdV3ConfigManager returns a new ConfigManager backed by etcdv3.

func NewStandardFirestoreConfigManager added in v0.15.1

func NewStandardFirestoreConfigManager(machines []string) (ConfigManager, error)

NewStandardFirestoreConfigManager returns a new ConfigManager backed by Firestore.

func NewStandardNatsConfigManager added in v0.15.1

func NewStandardNatsConfigManager(machines []string) (ConfigManager, error)

NewStandardNatsConfigManager returns a new ConfigManager backed by NATS.

type KVPair added in v0.15.1

type KVPair struct {
	backend.KVPair
}

type KVPairs added in v0.15.1

type KVPairs []*KVPair

type Response

type Response struct {
	Value []byte
	Error error
}

Jump to

Keyboard shortcuts

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