vault

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabled            = errors.New("vault: feature disabled")
	ErrUnknownAuthMethod   = errors.New("vault: unknown auth method")
	ErrAmbiguousAuthMethod = errors.New("vault: ambiguous auth method: oneof approle or userpass")
)

Functions

func Auth

func Auth(ctx context.Context, cfg Config) (*vault.Client, error)

Types

type Config added in v0.1.2

type Config struct {
	Address    string `validate:"required"`
	Username   string
	Password   string
	RoleUUID   uuid.UUID
	SecretUUID uuid.UUID
	Enabled    bool
}

func LoadConfig added in v0.1.2

func LoadConfig() (Config, error)

TODO(a.gurinov): must be codegen part

Jump to

Keyboard shortcuts

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