package
0.11.6
Repository: https://github.com/sql2/vault.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Implements the transaction interface.
NewCache returns a physical cache of the given size.
NewErrorInjector returns a wrapped physical backend to inject error.
NewLatencyInjector returns a wrapped physical backend to simulate latency.
NewPermitPool returns a new permit pool with the provided number of permits.
No description provided by the author
No description provided by the author
NewTransactionalErrorInjector creates a new transactional ErrorInjector.
NewTransactionalLatencyInjector creates a new transactional LatencyInjector.
NewView takes an underlying physical backend and returns a view of it that can only operate with the given prefix.
Prefixes is a shared helper function returns all parent 'folders' for a given vault key.
No description provided by the author

# Constants

DefaultCacheSize is used if no cache size is specified for NewCache.
DefaultErrorPercent is used to determin how often we error.
DefaultJitterPercent is used if no cache size is specified for NewCache.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

Cache is used to wrap an underlying physical backend and provide an LRU cache layer on top.
Entry
Entry is used to represent data stored by the physical backend.
ErrorInjector is used to add errors into underlying physical requests.
LatencyInjector is used to add latency into underlying physical requests.
PermitPool is used to limit maximum outstanding requests.
PhysicalAccess is a wrapper around physical.Backend that allows Core to expose its physical storage operations through PhysicalAccess() while restricting the ability to modify Core.physical itself.
No description provided by the author
TransactionalCache is a Cache that wraps the physical that is transactional.
TransactionalErrorInjector is the transactional version of the error injector.
TransactionalLatencyInjector is the transactional version of the latency injector.
TxnEntry is an operation that takes atomically as part of a transactional update.
View represents a prefixed view of a physical backend.

# Interfaces

Backend is the interface required for a physical backend.
HABackend is an extensions to the standard physical backend to support high-availability.
No description provided by the author
No description provided by the author
RedirectDetect is an optional interface that an HABackend can implement.
ServiceDiscovery is an optional interface that an HABackend can implement.
ToggleablePurgemonster is an interface for backends that can toggle on or off special functionality and/or support purging.
Transactional is an optional interface for backends that support doing transactional updates of multiple keys.
No description provided by the author

# Type aliases

Callback signatures for RunServiceDiscovery.
Factory is the factory function to create a physical backend.
The operation type.
No description provided by the author
No description provided by the author