vaultloader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

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

func New

func New() *Loader

func (*Loader) Client

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

func (*Loader) Delete

func (l *Loader) Delete(ctx context.Context, mountPath string, key string) error

Delete deletes a key from the vault.

  • first login to vault

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, opts ...loader.Option) error

func (*Loader) Login

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

func (*Loader) Set

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

Set sets a key in the vault.

  • first login to vault

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