Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
Read will use one of several methods to get a password from a user password is an existing password if set. This is return unmodified if passed in with a value. readStdIn is true if the password should be read from standard in prompt is what the console prompt should be if it should be read from the console from the user
func ReadFromConsole ¶
ReadFromConsole write the prompt to the console and then will read the password from the user console without echoing the password to the console
func ReadFromStdIn ¶
ReadFromStdIn reads from os.Stdin and trims any CR & LF characters as well as any spaces around the input. This method allows passwords to be passed to the CLI with commands like:
<Windows> echo mypassword | hpecli ilo login --host 1.1.1.1 -u admin --password-stdin
Types ¶
This section is empty.