vaultloader

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() func() loader.Loader

Types

type Loader

type Loader struct {
	AppRoleBasePath string
	// contains filtered or unexported fields
}

func (*Loader) Client

func (l *Loader) Client() *api.Client

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, mountPath string, key string) (map[string]interface{}, error)

Load loads a key from the vault.

  • first login to vault

func (*Loader) LoadChu

func (l *Loader) LoadChu(ctx context.Context, to any, opt *loader.Option) error

func (*Loader) Login

func (l *Loader) Login(ctx context.Context) error

func (*Loader) SetClient

func (l *Loader) SetClient(c *api.Client)

Jump to

Keyboard shortcuts

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