Documentation ¶
Index ¶
- Variables
- func NewEtcdBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- type EtcdBackend
- func (c *EtcdBackend) Delete(ctx context.Context, key string) error
- func (c *EtcdBackend) Get(ctx context.Context, key string) (*physical.Entry, error)
- func (e *EtcdBackend) HAEnabled() bool
- func (c *EtcdBackend) List(ctx context.Context, prefix string) ([]string, error)
- func (c *EtcdBackend) LockWith(key, value string) (physical.Lock, error)
- func (c *EtcdBackend) Put(ctx context.Context, entry *physical.Entry) error
- type EtcdLock
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EtcdMultipleBootstrapError = errors.New("client setup failed: multiple discovery or bootstrap flags specified, use either \"address\" or \"discovery_srv\"") EtcdAddressError = errors.New("client setup failed: address must be valid URL (ex. 'scheme://host:port')") EtcdLockHeldError = errors.New("lock already held") EtcdLockNotHeldError = errors.New("lock not held") EtcdVersionUnknown = errors.New("etcd: unknown API version") )
Functions ¶
Types ¶
type EtcdBackend ¶
type EtcdBackend struct {
// contains filtered or unexported fields
}
EtcdBackend is a physical backend that stores data at specific prefix within etcd. It is used for most production situations as it allows Vault to run on multiple machines in a highly-available manner.
func (*EtcdBackend) HAEnabled ¶
func (e *EtcdBackend) HAEnabled() bool
Click to show internal directories.
Click to hide internal directories.