vaultlogin

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConsulCredsFormatError = errors.New("consul creds not found in .Data[\"token\"]")
View Source
var ErrCubbyholeTestNotMatched = errors.New("secret read did not match secret written during cubbyhole test")
View Source
var ErrCubbyholeTestWrongNumUsesLeft = errors.New("wrong number of num_uses left after testing (should be 2 left)")
View Source
var ErrEntityIdNotFound = errors.New("entity id did not contain \"id\" at .Data[\"id\"]")
View Source
var ErrNoAuthMountFound = errors.New("Could not find matching auth mount")
View Source
var ErrNoVaultToken = errors.New("No vault token found in VAULT_TOKEN and could not be looked up with vault cli")

Functions

func NewZerologLevelledWriter added in v1.0.0

func NewZerologLevelledWriter(l zerolog.Logger, v zerolog.Level) io.Writer

Types

type Program added in v1.0.0

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

func NewProgram added in v1.0.0

func NewProgram() (*Program, *flag.FlagSet)

func (*Program) RunCLI added in v1.0.0

func (my *Program) RunCLI() int

func (*Program) SetLogger added in v1.0.0

func (my *Program) SetLogger(l zerolog.Logger) *Program

type TokenLookupResponse

type TokenLookupResponse struct {
	Data TokenLookupResponseData `json:"data"`
}

type TokenLookupResponseData

type TokenLookupResponseData struct {
	Id         string `json:"id"`
	ExpireTime string `json:"expire_time"`
}

Jump to

Keyboard shortcuts

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