Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶ added in v0.24.0
func IsTerminal() bool
IsTerminal reports whether standard input is connected to a terminal.
func ReadNewPassword ¶
ReadNewPassword prompts the user to input a new password, optionally asking for confirmation by re-entering it.
func SecureRead ¶
SecureRead reads a password without echo if standard input is a terminal. If a passphrase file descriptor has been configured, the passphrase is read from the next line of that descriptor instead.
func SetPassphraseFD ¶ added in v0.24.0
SetPassphraseFD configures SecureRead to consume passphrases from the given file descriptor (one line per call) instead of prompting on stdin or the terminal. A negative descriptor disables the override.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.