vault

package
v1.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AwsIamPropagationImpediment = 20 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Login(ctx context.Context, client *api.Client) (*api.Secret, error)
}

type TokenAuth

type TokenAuth struct {
	// contains filtered or unexported fields
}

func NewTokenAuth

func NewTokenAuth(token string) (*TokenAuth, error)

func (*TokenAuth) Login

func (t *TokenAuth) Login(_ context.Context, _ *api.Client) (*api.Secret, error)

type VaultCredentialProvider

type VaultCredentialProvider struct {
	// contains filtered or unexported fields
}

func NewVaultCredentialProvider

func NewVaultCredentialProvider(client *api.Client, auth Auth, conf *conf.VaultConfig) (*VaultCredentialProvider, error)

func (*VaultCredentialProvider) IsExpired

func (m *VaultCredentialProvider) IsExpired() bool

func (*VaultCredentialProvider) Retrieve

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL