Documentation ¶
Index ¶
- func IsAlreadyExists(err error) bool
- func IsInvalidConfig(err error) bool
- func IsInvalidVaultResponse(err error) bool
- func IsNoVaultHandlerDefined(err error) bool
- func IsNotFound(err error) bool
- type Config
- type CreateConfig
- type ExistsConfig
- type Interface
- type Role
- type SearchConfig
- type UpdateConfig
- type VaultRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶
IsAlreadyExists asserts alreadyExistsError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidVaultResponse ¶
IsInvalidVaultResponse asserts invalidVaultResponseError
func IsNoVaultHandlerDefined ¶
IsNoVaultHandlerDefined asserts a dirty string matching against the error message provided by err. This is necessary due to the poor error handling design of the Vault library we are using.
Types ¶
type Config ¶
type Config struct { Logger micrologger.Logger VaultClient *vaultclient.Client CommonNameFormat string }
func DefaultConfig ¶
func DefaultConfig() Config
type CreateConfig ¶
type ExistsConfig ¶
type Interface ¶
type Interface interface { Create(config CreateConfig) error Exists(config ExistsConfig) (bool, error) Search(config SearchConfig) (Role, error) Update(config UpdateConfig) error }
type SearchConfig ¶
type UpdateConfig ¶
Click to show internal directories.
Click to hide internal directories.