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 GetHiddenInput ¶
func GetMultiLineHiddenInput ¶
func GetVisibleInput ¶
func IsInteractive ¶
func IsInteractive() error
func NewPasswordFromUser ¶
func NewPasswordFromUser(policy *PasswordPolicy) ([]byte, error)
func ReadBufferFromStdin ¶
Types ¶
type PasswordPolicy ¶
type PasswordPolicy struct { MinLength uint8 MinUppercase uint8 MinLowercase uint8 MinDigits uint8 MinSpecialChars uint8 }
func DefaultPasswordPolicy ¶
func DefaultPasswordPolicy() *PasswordPolicy
func (*PasswordPolicy) Validate ¶
func (policy *PasswordPolicy) Validate(password string) error
Click to show internal directories.
Click to hide internal directories.