vault

package
v0.0.0-...-73ca75f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthPath = "v1/auth/kubernetes/login"
View Source
var SecretPath = "v1/secret/data/webapp/config"

Functions

func AuthRetrieveSecret

func AuthRetrieveSecret() (map[string]string, error)

func LookupJwt

func LookupJwt(tokenPath *string) (string, error)

func ParseSecret

func ParseSecret(r io.Reader) (*api.Secret, error)

Types

type Auth

type Auth struct {
	ClientToken string `json:"client_token,omitempty"`
}

type VaultClient

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

func NewClient

func NewClient(addr string, jwt string) *VaultClient

func (*VaultClient) GetVaultToken

func (vc *VaultClient) GetVaultToken() string

func (*VaultClient) RetrieveSecret

func (vc *VaultClient) RetrieveSecret(token string) (map[string]string, error)

type VaultRep

type VaultRep struct {
	Auth      Auth `json:"auth,omitempty"`
	Renewable bool `json:"renewable,omitempty"`
}

type VaultReq

type VaultReq struct {
	Role string `json:"role,omitempty"`
	Jwt  string `json:"jwt,omitempty"`
}

Jump to

Keyboard shortcuts

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