vault

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a simple client for vault.

func NewClient

func NewClient(address, token string) (*Client, error)

NewClient returns a new vault client.

func (*Client) Delete

func (c *Client) Delete(value string) error

Delete deletes the secret from vault.

func (*Client) Read

func (c *Client) Read(value string) (string, error)

Read returns a secret for a given path and key of the form `/vault/secret/path/key`. If the requested key cannot be read the original string is returned along with an error.

Jump to

Keyboard shortcuts

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