helpers

package
v0.0.2-0...-b38e615 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVaultClient

func NewVaultClient(vaultEndpoint string, token string) (interfaces.VaultClient, error)

Types

type VaultClient

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

func (*VaultClient) CreateToken

func (self *VaultClient) CreateToken(opts *api.TokenCreateRequest) (*api.Secret, error)

func (*VaultClient) GetEndpoint

func (self *VaultClient) GetEndpoint() string

func (*VaultClient) WithToken

func (self *VaultClient) WithToken(token string) interfaces.VaultClient

func (*VaultClient) WriteSecret

func (self *VaultClient) WriteSecret(path string, data map[string]interface{}) (*api.Secret, error)

Jump to

Keyboard shortcuts

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