vault

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

Client is a wrapper around the Vault client

func NewClient

func NewClient(path string, config *config.Config) (*Client, error)

NewClient returns a new Vault Client

func (*Client) Close

func (c *Client) Close()

Close closes client by clearing the token

func (*Client) Delete added in v0.0.2

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

func (*Client) DeleteSecrets added in v0.0.2

func (c *Client) DeleteSecrets(path string) error

func (*Client) ExtractData

func (c *Client) ExtractData(data map[string]interface{}) map[string]interface{}

func (*Client) List

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

func (*Client) Read

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

func (*Client) ReadSecrets

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

func (*Client) Write

func (c *Client) Write(path string, data map[string]interface{}) (*api.Secret, error)

func (*Client) WriteSecrets

func (c *Client) WriteSecrets(secrets map[string]interface{}, sourcePath, destinationPath string) error

Jump to

Keyboard shortcuts

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