vault

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	Token     string
	URL       string
	Timeout   time.Duration
	Client    *api.Client
	Connected bool
}

Vault struct about the vault connection

func New

func New(token, url string, timeout time.Duration) *Vault

New will create a new Vault object

func (*Vault) Connect

func (e *Vault) Connect() bool

Connect - with the vault

func (*Vault) GetKey

func (e *Vault) GetKey(secret string) string

GetKey - extract the specific key of a secret

func (*Vault) IsConnected

func (e *Vault) IsConnected() bool

IsConnected - give out the connection status

func (*Vault) ReadString

func (e *Vault) ReadString(secret string) interface{}

ReadString - get the data of the given secret

Jump to

Keyboard shortcuts

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