vault

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRole

type AppRole struct {
	RoleId   string `json:"role_id"`
	SecretId string `json:"secret_id"`
}

type Auth

type Auth struct {
	ClientToken string   `json:"client_token"`
	Accessor    string   `json:"accessor"`
	Policies    []string `json:"policies"`
}

type Secret

type Secret struct {
	RequestID     string                     `json:"request_id"`
	LeaseID       string                     `json:"lease_id"`
	Renewable     bool                       `json:"renewable"`
	LeaseDuration int                        `json:"lease_duration"`
	Auth          Auth                       `json:"auth"`
	Data          map[string]json.RawMessage `json:"data"`
}

type SecretData

type SecretData map[string]string

type Vault

type Vault struct {
	Hostname    string
	AccessToken string
	AppRole     AppRole
	SecretMount string
}

func (*Vault) GetAccessToken

func (v *Vault) GetAccessToken() error

func (Vault) GetSecret

func (v Vault) GetSecret(secretName string) (secret SecretData, err error)

func (Vault) ListSecrets

func (v Vault) ListSecrets() (secrets []string, err error)

Jump to

Keyboard shortcuts

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