vault

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 18 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 added in v2.0.1

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

MockServer -

func New

func New(u *url.URL) *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) List added in v2.6.0

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

List -

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