Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalTokenHelper ¶
type InternalTokenHelper struct {
// contains filtered or unexported fields
}
InternalTokenHelper implement a simplified version of the Hashicorp Vault Token helper that will store the generated token in the default file ~/.vault-token
func (*InternalTokenHelper) Erase ¶
func (i *InternalTokenHelper) Erase() error
Erase erases the value of the token
func (*InternalTokenHelper) Get ¶
func (i *InternalTokenHelper) Get() (string, error)
Get gets the value of the stored token, if any
func (*InternalTokenHelper) Path ¶
func (i *InternalTokenHelper) Path() string
func (*InternalTokenHelper) PopulateTokenPath ¶
func (i *InternalTokenHelper) PopulateTokenPath()
PopulateTokenPath figures out the token path using homedir to get the user's home directory
func (*InternalTokenHelper) Store ¶
func (i *InternalTokenHelper) Store(input string) error
Store stores the value of the token to the file
Click to show internal directories.
Click to hide internal directories.