Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExpireTimeKey is the data key provided by the secret when looking up the // used Vault token. This key is specific to Vault as they define it. ExpireTimeKey = "expire_time" // ExpireTimeLayout is the layout used for time parsing when inspecting the // expiration date of the used Vault token. This layout is specific to Vault // as they define it. ExpireTimeLayout = "2006-01-02T15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsVaultAccess ¶
IsVaultAccess asserts vaultAccessError. The matcher also asserts errors caused by situations in which Vault is updated strategically and thus temporarily replies with HTTP responses. In such cases we intend to cancel collection and wait until Vault is fully operational again.
Get https://vault.g8s.foo.bar:8200/v1/sys/mounts: http: server gave HTTP response to HTTPS client
Types ¶
type Set ¶
Set is basically only a wrapper for the operator's collector implementations. It eases the iniitialization and prevents some weird import mess so we do not have to alias packages.
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func NewVault ¶
func NewVault(config VaultConfig) (*Vault, error)
type VaultConfig ¶
type VaultConfig struct { Logger micrologger.Logger VaultClient *vault.Client }
Click to show internal directories.
Click to hide internal directories.