vault

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultClient

type VaultClient struct {
	// contains filtered or unexported fields
}

func NewVaultClient

func NewVaultClient(roleID, secretID, env, kvPrefix string, logger *logrus.Logger) (*VaultClient, error)

NewClient initializes vault client with default configuration. It authenticates using approle method (or uses provided token in dev) and returns.

func (*VaultClient) KVRead

func (cl *VaultClient) KVRead(path string) (map[string]interface{}, error)

KVRead reads data from vault key value storage

func (*VaultClient) KVWrite

func (cl *VaultClient) KVWrite(path string, value map[string]string) error

KVWrite writes value to vault key value v2 storage

Jump to

Keyboard shortcuts

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