client

package
v0.0.0-...-a7b2614 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Write(path string, data map[string]interface{}, token string) (*vault.Secret, error)
	Read(path string, token string) (*vault.Secret, error)
	CreatePolicy(path string, role string, policyName string) error
	CreateToken(policyName string) (string, error)
}

Client interface

func NewClient

func NewClient(token string, path string) (Client, error)

NewClient creates a new client with the corresponding Vault token and corresponding path to Vault

Jump to

Keyboard shortcuts

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