Documentation
¶
Index ¶
- func EncryptionKey(input string) error
- func ExpandPath(relpath string) string
- func Must(result string, err error) string
- func MustSelect(i int, result string, err error) string
- func RequireAWSSessionInt(input string) error
- func RequireFile(input string) error
- func RequireInt(input string) error
- func RequirePEM(input string) error
- func RequireString(input string) error
- type Passphrase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptionKey ¶
EncryptionKey ensures the string can be encrypted with the password.
func ExpandPath ¶
ExpandPath will replace the tilda with the user's home directory.
func MustSelect ¶
MustSelect fails or returns a string from a select prompt.
func RequireAWSSessionInt ¶
RequireAWSSessionInt ensures the input is a number.
func RequirePEM ¶
RequirePEM ensures a file exists and is a PEM.
func RequireString ¶
RequireString ensures the string is not empty.
Types ¶
type Passphrase ¶
type Passphrase struct {
// contains filtered or unexported fields
}
Passphrase .
func GeneratePassphrase ¶
func GeneratePassphrase() *Passphrase
GeneratePassphrase will return a new passphrase.
func (*Passphrase) Password ¶
func (p *Passphrase) Password() string
Password returns the password if saved or prompted the user to enter it in.
Click to show internal directories.
Click to hide internal directories.