vault

package
v0.0.0-...-1d4acb1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

Authenticator handles vault kubernetes authentication

func NewAuthenticator

func NewAuthenticator(logger *logrus.Entry, client vaultClient) *Authenticator

NewAuthenticator returns a new Authenticator instance

func (*Authenticator) Authenticate

func (f *Authenticator) Authenticate(forceLogin bool, kubeAuthPath, kubeAuthRole, kubeTokenFilePath, vaultTokenFilePath string) (*api.Secret, error)

Authenticate hands over the k8s SA token to vault, receiving the vault authentication token

Jump to

Keyboard shortcuts

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