vault

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultTokenPath = "/vault/secrets/token"
	TokenPathKey     = "VAULT_TOKEN_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentManagedToken

type AgentManagedToken struct{}

func (AgentManagedToken) GetToken

func (t AgentManagedToken) GetToken() (string, error)

type Client

type Client struct {
	TokenRetriever TokenRetriever
	// contains filtered or unexported fields
}

func (Client) CreateUpdate

func (c Client) CreateUpdate(ctx context.Context, name string, rules string) error

func (Client) Delete

func (c Client) Delete(ctx context.Context, name string) error

type PolicyManager

type PolicyManager interface {
	CreateUpdate(ctx context.Context, name string, rules string) error
	Delete(ctx context.Context, name string) error
}

func NewPolicyManager

func NewPolicyManager(retriever TokenRetriever) (PolicyManager, error)

type TokenRetriever

type TokenRetriever interface {
	GetToken() (string, error)
}

Jump to

Keyboard shortcuts

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