Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrAuth ¶
type ErrAuth struct {
// contains filtered or unexported fields
}
ErrAuth is returned when any sort of authentication failure is observed (i.e. bad token, no token, permission denied).
func (ErrAuth) WrappedErrors ¶
WrappedErrors implmenets the hashicorp/errwrap interface
type ErrAuthFailed ¶
type ErrAuthFailed struct {
// contains filtered or unexported fields
}
ErrAuthFailed is returned when an attempt to authenticate fails directly.
func (ErrAuthFailed) Error ¶
func (err ErrAuthFailed) Error() string
Error implements the error interface
func (ErrAuthFailed) WrappedErrors ¶
func (err ErrAuthFailed) WrappedErrors() []error
WrappedErrors implmenets the hashicorp/errwrap interface
type ErrMissingClientToken ¶
type ErrMissingClientToken struct {
// contains filtered or unexported fields
}
ErrMissingClientToken is returned when code 403 (permission denied) is returned by Vault
func (ErrMissingClientToken) Error ¶
func (err ErrMissingClientToken) Error() string
Error implements the error interface
func (ErrMissingClientToken) WrappedErrors ¶
func (err ErrMissingClientToken) WrappedErrors() []error
WrappedErrors implmenets the hashicorp/errwrap interface
type ErrPermissionDenied ¶
type ErrPermissionDenied struct {
// contains filtered or unexported fields
}
ErrPermissionDenied is returned when code 403 (permission denied) is returned by Vault
func (ErrPermissionDenied) Error ¶
func (err ErrPermissionDenied) Error() string
Error implements the error interface
func (ErrPermissionDenied) WrappedErrors ¶
func (err ErrPermissionDenied) WrappedErrors() []error
WrappedErrors implmenets the hashicorp/errwrap interface
type ErrUnsupportedOperation ¶
type ErrUnsupportedOperation struct {
// contains filtered or unexported fields
}
ErrUnsupportedOperation is returned when 405 * unsupported operation is returned by Vault indicating an operation is not valid on that path.
func (ErrUnsupportedOperation) Error ¶
func (err ErrUnsupportedOperation) Error() string
Error implements the error interface
func (ErrUnsupportedOperation) WrappedErrors ¶
func (err ErrUnsupportedOperation) WrappedErrors() []error
WrappedErrors implmenets the hashicorp/errwrap interface
type ErrUnsupportedPath ¶
type ErrUnsupportedPath struct {
// contains filtered or unexported fields
}
ErrUnsupportedPath is returned when 404 * unsupported path is returned by Vault indicating an operation is not valid on that path.
func (ErrUnsupportedPath) Error ¶
func (err ErrUnsupportedPath) Error() string
Error implements the error interface
func (ErrUnsupportedPath) WrappedErrors ¶
func (err ErrUnsupportedPath) WrappedErrors() []error
WrappedErrors implmenets the hashicorp/errwrap interface
type ErrVaultInaccessible ¶
type ErrVaultInaccessible struct {
// contains filtered or unexported fields
}
ErrVaultInaccessible is returned when code 403 (permission denied) is returned by Vault
func (ErrVaultInaccessible) Error ¶
func (err ErrVaultInaccessible) Error() string
Error implements the error interface
func (ErrVaultInaccessible) WrappedErrors ¶
func (err ErrVaultInaccessible) WrappedErrors() []error
WrappedErrors implmenets the hashicorp/errwrap interface
type Logical ¶
type Logical interface { Read(path string) (*api.Secret, error) List(path string) (*api.Secret, error) Write(path string, data map[string]interface{}) (*api.Secret, error) Delete(path string) (*api.Secret, error) Unwrap(wrappingToken string) (*api.Secret, error) }
Logical is used to perform logical backend operations on Vault.