vault

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ApproleAuthName = "approle"
View Source
const (
	ImplicitAuthName = "implicit"
)
View Source
const (
	KubernetesAuthName = "kubernetes"
)
View Source
const TokenAuthName = "token"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproleAuth added in v1.10.0

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

func NewApproleAuth added in v1.10.0

func NewApproleAuth(roleId string, secretId *approle.SecretID) (*ApproleAuth, error)

func (*ApproleAuth) Login added in v1.10.0

func (a *ApproleAuth) Login(ctx context.Context, client *vault.Client) (*vault.Secret, error)

func (*ApproleAuth) Logout added in v1.10.0

func (a *ApproleAuth) Logout(ctx context.Context, client *vault.Client) error

type Auth added in v1.10.0

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

type AutoRenew added in v1.12.0

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

func NewAutoRenew added in v1.12.0

func NewAutoRenew(auth Auth, done chan bool) (*AutoRenew, error)

func (*AutoRenew) Login added in v1.12.0

func (t *AutoRenew) Login(ctx context.Context, client *api.Client) (*api.Secret, error)

func (*AutoRenew) Logout added in v1.12.0

func (t *AutoRenew) Logout(ctx context.Context, client *api.Client) error

type AwsDynamicCredentials

type AwsDynamicCredentials struct {
	AccessKeyId     string
	SecretAccessKey string
	Expiry          time.Time
}

type ImplicitAuth added in v1.10.0

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

func NewImplicitAuth added in v1.10.0

func NewImplicitAuth(tokenLocations ...string) (*ImplicitAuth, error)

func (*ImplicitAuth) Login added in v1.10.0

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

func (*ImplicitAuth) Logout added in v1.10.0

func (t *ImplicitAuth) Logout(_ context.Context, _ *api.Client) error

type KubernetesAuth added in v1.11.0

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

func NewVaultKubernetesAuth added in v1.11.0

func NewVaultKubernetesAuth(role string, mountPath string) (*KubernetesAuth, error)

func (*KubernetesAuth) Login added in v1.11.0

func (t *KubernetesAuth) Login(ctx context.Context, client *api.Client) (*api.Secret, error)

func (*KubernetesAuth) Logout added in v1.11.0

func (t *KubernetesAuth) Logout(ctx context.Context, client *api.Client) error

type TokenAuth added in v1.10.0

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

func NewTokenAuth added in v1.10.0

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

func (*TokenAuth) Login added in v1.10.0

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

func (*TokenAuth) Logout added in v1.10.0

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

type VaultBackend

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

func NewVaultBackend

func NewVaultBackend(vaultConfig config.VaultConfig, auth Auth) (*VaultBackend, error)

func (*VaultBackend) Authenticate added in v1.6.1

func (vault *VaultBackend) Authenticate() error

func (*VaultBackend) Logout added in v1.6.1

func (vault *VaultBackend) Logout() error

func (*VaultBackend) ReadAccount

func (vault *VaultBackend) ReadAccount(hash string) (*certstorage.AcmeAccount, error)

func (*VaultBackend) ReadAwsCredentials

func (vault *VaultBackend) ReadAwsCredentials() (aws.Credentials, error)

func (*VaultBackend) ReadFullCertificateData added in v1.3.0

func (vault *VaultBackend) ReadFullCertificateData(domain string) (*certstorage.AcmeCertificate, error)

func (*VaultBackend) ReadPublicCertificateData added in v1.3.0

func (vault *VaultBackend) ReadPublicCertificateData(domain string) (*certstorage.AcmeCertificate, error)

func (*VaultBackend) WriteAccount

func (vault *VaultBackend) WriteAccount(acmeRegistration certstorage.AcmeAccount) error

func (*VaultBackend) WriteCertificate

func (vault *VaultBackend) WriteCertificate(resource *certstorage.AcmeCertificate) error

Jump to

Keyboard shortcuts

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