vault

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCustomClient

func SetCustomClient(c VaultClient)

SetCustomClient is used if a custom client needs to be used. Currently only used for testing.

Types

type BankVaultClient

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

func (*BankVaultClient) SetToken

func (b *BankVaultClient) SetToken(secretPath, token string, log logr.Logger) error

SetToken saves the token in Vault, the path should have the form tenant/cluster to work properly. It will check if the token exists and re-apply it if not.

type VaultClient

type VaultClient interface {
	SetToken(secretPath string, token string, log logr.Logger) error
}

func NewClient

func NewClient() (VaultClient, error)

NewClient returns the default VaultClient implementation, ready to be used. It automatically detects, if there was a Vault token provided or if it's running withing kubernetes.

Jump to

Keyboard shortcuts

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