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.
func WithAWSRole ¶ added in v0.8.0
WithAWSRole sets the Vault AWS role in the secret client.
func WithAddress ¶ added in v0.8.0
WithAddress sets the Vault address in the secret client.
func WithAuthMethod ¶ added in v0.8.0
WithAuthMethod sets the Vault authentication method in the secret client.
func WithPrefix ¶ added in v0.8.0
WithPrefix sets the Vault prefix in the secret client.
func WithTokenDuration ¶ added in v0.8.0
WithTokenDuration sets the Vault token duration in the secret client.
func WithVersion ¶ added in v0.8.0
WithVersion sets the Vault version in the secret client.
Click to show internal directories.
Click to hide internal directories.