vault

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 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. If fullfills the SecretReader interface.

func NewClient

func NewClient() (*Client, error)

NewClient returns a new vault client. It handles address and token initialization. It returns any errors encountered during construction of it's nested client or if it is unable to properly configure the client token.

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 which groups anything able to read and write vault data.

Jump to

Keyboard shortcuts

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