Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoginHandlers = map[string]LoginHandler{ "aws": &credAws.CLIHandler{}, "cert": &credCert.CLIHandler{}, "github": &credGitHub.CLIHandler{}, "ldap": &credLdap.CLIHandler{}, "okta": &credOkta.CLIHandler{}, "radius": &credUserpass.CLIHandler{ DefaultMount: "radius", }, "token": &credToken.CLIHandler{}, "userpass": &credUserpass.CLIHandler{ DefaultMount: "userpass", }, }
LoginHandlers is an k:v datatype with authentication method type and the related vault Handler
Functions ¶
func EnsureTrailingSlash ¶ added in v0.1.3
EnsureTrailingSlash ensures the given string has a trailing slash.
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func PasswordFromEnv ¶
func PasswordFromEnv() string
PasswordFromEnv returns the password stored into PASSWORD or the empty string
func UsernameFromEnv ¶
func UsernameFromEnv() string
UsernameFromEnv returns the username stored into LOGNAME or USER if defined or the empty string
Types ¶
Click to show internal directories.
Click to hide internal directories.