store

package
v0.0.0-...-1490f6a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 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 CredStore

type CredStore interface {
	Get(ctx context.Context, unitName, credID string) (string, error)
}

type MockCredStore

type MockCredStore struct {
}

func (*MockCredStore) Get

func (c *MockCredStore) Get(_ context.Context, unitName, credID string) (string, error)

type Vault

type Vault struct {
	ApproleRoleID       string
	ApproleSecretIDFile string
	// contains filtered or unexported fields
}

func NewVault

func NewVault() (*Vault, error)

func (*Vault) Get

func (v *Vault) Get(ctx context.Context, unitName, credID string) (string, error)

func (*Vault) Login

func (v *Vault) Login(ctx context.Context) error

func (*Vault) Stop

func (v *Vault) Stop()

Jump to

Keyboard shortcuts

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