Documentation ¶
Overview ¶
Package secret provides a way to read user credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidSecret is returned when the secret is invalid. ErrInvalidSecret = errors.New("invalid secret") )
Functions ¶
func ReadCredentialFile ¶
func ReadCredentialFile(path string) (api.SavedCredentials, error)
ReadCredentialFile reads the credentials from a file.
Types ¶
type UserPasswordFromEnv ¶
type UserPasswordFromEnv struct{}
UserPasswordFromEnv is a user password reader from the environment.
func (UserPasswordFromEnv) Read ¶
func (UserPasswordFromEnv) Read() (api.SavedCredentials, error)
Read returns the email and password from the environment.
Click to show internal directories.
Click to hide internal directories.