package
0.11.6
Repository: https://github.com/cloud0one/hashicorp.git
Documentation: pkg.go.dev

# Functions

CalculateTTL takes all the user-specified, backend, and system inputs and calculates a TTL for a lease.
DeleteWAL commits the WAL entry with the given ID.
Helper which returns a generic regex string for creating endpoint patterns that are identified by the given name in the backends.
GetWAL reads a specific entry from the WAL.
LeaseExtend is left for backwards compatibility for plugins.
ListWAL lists all the entries in the WAL.
Helper which returns a regex string for optionally accepting the a field from the API URL.
PathAppend is a helper for appending lists of paths into a single list.
PutWAL writes some data to the WAL.
TestBackendRoutes is a helper to test that all the given routes will route properly in the backend.

# Constants

No description provided by the author
TypeCommaIntSlice is a helper for TypeSlice that returns a sanitized slice of Ints.
TypeCommaStringSlice is a helper for TypeSlice that returns a sanitized slice of strings and also supports parsing a comma-separated list in a string field.
TypeDurationSecond represent as seconds, this can be either an integer or go duration format string (e.g.
TypeHeader is a helper for sending request headers through to Vault.
No description provided by the author
No description provided by the author
TypeKVPairs allows you to represent the data as a map or a list of equal sign delimited key pairs.
TypeLowerCaseString is a helper for TypeString that returns a lowercase version of the provided string.
No description provided by the author
TypeNameString represents a name that is URI safe and follows specific rules.
TypeSlice represents a slice of any type.
No description provided by the author
TypeStringSlice is a helper for TypeSlice that returns a sanitized slice of strings.
WALPrefix is the prefix within Storage where WAL entries will be written.

# Structs

Backend is an implementation of logical.Backend that allows the implementer to code a backend using a much more programmer-friendly framework that handles a lot of the routing and validation for you.
FieldData is the structure passed to the callback to handle a path containing the populated parameters for fields.
FieldSchema is a basic schema to describe the format of a path field.
Path is a single path that the backend responds to.
PathMap can be used to generate a path that stores mappings in the storage.
PathStruct can be used to generate a path that stores a struct in the storage.
PolicyMap is a specialization of PathMap that expects the values to be lists of policies.
Secret is a type of secret that can be returned from a backend.
No description provided by the author

# Type aliases

CleanupFunc is the callback for backend unload.
ExistenceFunc is the callback called for an existence check on a path.
FieldType is the enum of types that a field can be.
InvalidateFunc is the callback for backend key invalidation.
OperationFunc is the callback called for an operation on a path.
WALRollbackFunc is the callback for rollbacks.