Documentation ¶
Overview ¶
Package vault provides the ability for Vela to integrate with HashiCorp Vault as a secret backend.
Usage:
import "github.com/go-vela/server/secret/vault"
Index ¶
- Constants
- func New(opts ...ClientOpt) (*client, error)
- type ClientOpt
- func WithAWSRole(awsRole string) ClientOpt
- func WithAddress(address string) ClientOpt
- func WithAuthMethod(authMethod string) ClientOpt
- func WithPrefix(prefix string) ClientOpt
- func WithToken(token string) ClientOpt
- func WithTokenDuration(tokenDuration time.Duration) ClientOpt
- func WithVersion(version string) ClientOpt
Constants ¶
View Source
const ( PrefixVaultV1 = "secret" PrefixVaultV2 = "secret/data" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOpt ¶ added in v0.8.0
type ClientOpt func(*client) error
ClientOpt represents a configuration option to initialize the secret client for Vault.
func WithAWSRole ¶ added in v0.8.0
WithAWSRole sets the AWS role in the secret client for Vault.
func WithAddress ¶ added in v0.8.0
WithAddress sets the address in the secret client for Vault.
func WithAuthMethod ¶ added in v0.8.0
WithAuthMethod sets the authentication method in the secret client for Vault.
func WithPrefix ¶ added in v0.8.0
WithPrefix sets the prefix in the secret client for Vault.
func WithTokenDuration ¶ added in v0.8.0
WithTokenDuration sets the token duration in the secret client for Vault.
func WithVersion ¶ added in v0.8.0
WithVersion sets the version in the secret client for Vault.
Click to show internal directories.
Click to hide internal directories.