vault

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

Vault -

func MockServer

func MockServer(code int, body string) (*httptest.Server, *Vault)

MockServer -

func New

func New() *Vault

New -

func (*Vault) AppIDLogin

func (v *Vault) AppIDLogin() string

AppIDLogin - app-id auth backend

func (*Vault) AppRoleLogin

func (v *Vault) AppRoleLogin() string

AppRoleLogin - approle auth backend

func (*Vault) EC2Login

func (v *Vault) EC2Login() string

EC2Login - AWS EC2 auth backend

func (*Vault) GetToken

func (v *Vault) GetToken() string

GetToken -

func (*Vault) GitHubLogin

func (v *Vault) GitHubLogin() string

GitHubLogin - github auth backend

func (*Vault) Login

func (v *Vault) Login()

Login -

func (*Vault) Logout

func (v *Vault) Logout()

Logout -

func (*Vault) Read

func (v *Vault) Read(path string) ([]byte, error)

Read - returns the value of a given path. If no value is found at the given path, returns empty slice.

func (*Vault) TokenLogin

func (v *Vault) TokenLogin() string

TokenLogin -

func (*Vault) UserPassLogin

func (v *Vault) UserPassLogin() string

UserPassLogin - userpass auth backend

func (*Vault) Write

func (v *Vault) Write(path string, data map[string]interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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