Documentation
¶
Index ¶
- func GetConfirmation(prompt, allowFor string) (bool, error)
- func GetHiddenInput(prompt string) ([]byte, error)
- func GetMultiLineHiddenInput(prompt string) (input []byte, err error)
- func GetVisibleInput(prompt string) (string, error)
- func IsInteractive() error
- func NewPasswordFromUser(policy *PasswordPolicy) ([]byte, error)
- func ReadBufferFromStdin(prompt string) ([]byte, error)
- type PasswordPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfirmation ¶
func GetConfirmation(prompt, allowFor string) (bool, error)
func GetHiddenInput ¶
func GetHiddenInput(prompt string) ([]byte, error)
func GetMultiLineHiddenInput ¶
func GetMultiLineHiddenInput(prompt string) (input []byte, err error)
func GetVisibleInput ¶
func GetVisibleInput(prompt string) (string, error)
func IsInteractive ¶
func IsInteractive() error
func NewPasswordFromUser ¶
func NewPasswordFromUser(policy *PasswordPolicy) ([]byte, error)
func ReadBufferFromStdin ¶
func ReadBufferFromStdin(prompt string) ([]byte, error)
Types ¶
type PasswordPolicy ¶
type PasswordPolicy struct {
MinLength uint8
MinUppercase uint8
MinLowercase uint8
MinDigits uint8
MinSpecialChars uint8
}
func DefaultPasswordPolicy ¶
func DefaultPasswordPolicy() *PasswordPolicy
Click to show internal directories.
Click to hide internal directories.