vault

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*api.Client
	// contains filtered or unexported fields
}

Client holds a Hashicorp Vault client

func NewClient

func NewClient(authPath string) (*Client, error)

NewClient create a new instance of *Client

func (*Client) Authenticate

func (c *Client) Authenticate(jwt, role string) error

Authenticate authenticates hashicorp Vault using a given jwt and role

func (*Client) GetSecret

func (c *Client) GetSecret(path, key string) (map[string]interface{}, error)

GetSecret reads a secret from the given path and key

Jump to

Keyboard shortcuts

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