vault

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 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
}

Client simply wraps a vault client. It satisfies the SecretReader interface.

func NewClient

func NewClient() (*Client, error)

NewClient returns a new vault client. Address and token initialization are handled internally. Any errors encountered during initialization (for instance due to lacking environment variables) are returned to the caller.

func (*Client) Read

func (c *Client) Read(path string) (*api.Secret, error)

type SecretReader

type SecretReader interface {
	Read(path string) (*api.Secret, error)
}

SecretReader is an interface describing anything able to read vault data.

Jump to

Keyboard shortcuts

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