vault

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 10 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
	Config *Config
}

Client is a Vault API client pointer.

func NewClient

func NewClient(config *Config) (*Client, error)

NewClient configures a Vault client and set a TransitKey to use.

func (*Client) Cipher

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

Cipher : Cipher a value using the TransitKey.

func (*Client) Decipher

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

Decipher : Decipher a value using the TransitKey.

type Config

type Config struct {
	Key string
}

Config : Handles a Vault configuration.

Jump to

Keyboard shortcuts

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