vault

package
v3.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: MIT Imports: 16 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(u *url.URL) (*Vault, error)

New -

func (*Vault) AppIDLogin

func (v *Vault) AppIDLogin() (string, error)

AppIDLogin - app-id auth backend

func (*Vault) AppRoleLogin

func (v *Vault) AppRoleLogin() (string, error)

AppRoleLogin - approle auth backend

func (*Vault) EC2Login

func (v *Vault) EC2Login() (string, error)

EC2Login - AWS EC2 auth backend

func (*Vault) GetToken

func (v *Vault) GetToken() (string, error)

GetToken -

func (*Vault) GitHubLogin

func (v *Vault) GitHubLogin() (string, error)

GitHubLogin - github auth backend

func (*Vault) List

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

List -

func (*Vault) Login

func (v *Vault) Login() error

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, error)

TokenLogin -

func (*Vault) UserPassLogin

func (v *Vault) UserPassLogin() (string, error)

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