vault

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 12 Imported by: 1

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
}

func New

func New(hostname, username, password, filename, token string) (*Client, error)

func (*Client) AddSecret

func (r *Client) AddSecret(secret *api.Secret) error

AddSecret adds a secret to the vault

func (*Client) AddUser

func (r *Client) AddUser(user *api.User) error

AddUser adds a user to vault

func (*Client) Client

func (r *Client) Client() *v.Client

Clients returns the underlining client

func (*Client) Decrypt

func (r *Client) Decrypt(path, key string, reader io.Reader) (string, error)

Decrypt decrypt the content with a transit endpoint

func (*Client) Encrypt

func (r *Client) Encrypt(path, key string, reader io.Reader) (string, error)

Encrypt encrypts the content with a transit endpoint

func (*Client) Mounts

func (r *Client) Mounts() (map[string]*v.MountOutput, error)

Mounts is a list of mounts

func (*Client) Policies

func (r *Client) Policies() (map[string]bool, error)

Policies is a list of policies currently in vault

func (*Client) Request

func (r *Client) Request(method, uri string, body interface{}) (*http.Response, error)

Request performs a request to vault

func (*Client) SetPolicy

func (r *Client) SetPolicy(name, policy string) error

SetPolicy sets a policy in vault

Jump to

Keyboard shortcuts

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