Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialsParser ¶
type CredentialsParser func(*vault.Secret) (aws.Credentials, error)
CredentialsParser represent a parser for aws credentials
type Option ¶
Option represents the options to initialize provider
func WithAuthBeforeRetrieve ¶
func WithAuthBeforeRetrieve() Option
WithAuthBeforeRetrieve enable authentication before retrieving secrets Should be used in cases where it is necessary to renew authentication to the vault
func WithAuthMethod ¶
func WithAuthMethod(auth vault.AuthMethod) Option
WithAuthMethod use vault.AuthMethod to authenticate If you need to renew authentication, you should use WithAuthBeforeRetrieve
func WithCredentialsParser ¶
func WithCredentialsParser(parser CredentialsParser) Option
WithCredentialsParser parser for vault.Secret to aws.Credentials It is used as a callback after fetching secrets from vault
func WithCustomVaultConfig ¶
WithCustomVaultConfig use a custom config for vault
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements aws.CredentialsProvider
func NewProvider ¶
NewProvider initialize vault provider