package config

import "github.com/xordataexchange/crypt/config"

Index

Types

type ConfigManager

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

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

func NewConsulConfigManager

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

NewConsulConfigManager returns a new ConfigManager backed by consul.

func NewEtcdConfigManager

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

NewEtcdConfigManager returns a new ConfigManager backed by etcd.

type Response

type Response struct {
	Value []byte
	Error error
}

Source Files

config.go

Version
v0.0.1
Published
Oct 19, 2014
Platform
linux/amd64
Imports
7 packages
Last checked
3 weeks ago

Tools for package owners.