vault

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproleAuthenticatedClient

type ApproleAuthenticatedClient struct {
	Address     string
	SecretID    string
	RoleID      string
	BackendPath string

	sync.Mutex
	// contains filtered or unexported fields
}

ApproleAuthenticatedClient is the config object required to create a Vault client that authenticates using Vault's Approle auth backend

func (*ApproleAuthenticatedClient) GetClient

func (aac *ApproleAuthenticatedClient) GetClient() (*api.Client, error)

GetClient uses the Approle auth backend to obtain a token Implements token renewal approleSecretID string, approleRoleID string,

type AuthenticatedClient

type AuthenticatedClient interface {
	GetClient() (*api.Client, error)
}

AuthenticatedClient represents an authenticated client that can talk to the vault server

type TokenAuthenticatedClient

type TokenAuthenticatedClient struct {
	Address string
	Token   string

	sync.Mutex
	// contains filtered or unexported fields
}

TokenAuthenticatedClient is the config object required to create a token based authenticated Vault client

func (*TokenAuthenticatedClient) GetClient

func (tac *TokenAuthenticatedClient) GetClient() (*api.Client, error)

GetClient creates a new authenticated client to interact with a vault server's API. A token is directly passed for authentication Does not implement token renewal

Jump to

Keyboard shortcuts

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