package
10.3.17-gitref.1+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev
# Functions
Confirmation prompts the user for a yes/no confirmation for question.
Input prompts the user for freeform text input.
NewContextReader creates a new ContextReader wrapping rd.
NewFakeReader returns a fake that can be used in place of a ContextReader.
NotifyExit notifies prompt singletons, such as Stdin, that the program is about to exit.
Password prompts the user for a password.
PickOne prompts the user to pick one of the provided string options.
SetStdin allows callers to change the Stdin reader.
Stdin returns a singleton ContextReader wrapped around os.Stdin.
# Variables
ErrNotTerminal is returned by password reads attempted in non-terminal readers.
ErrReaderClosed is returned from ContextReader.ReadContext after it is closed.
# Structs
ContextReader is a wrapper around an underlying io.Reader or terminal that allows reads to be abandoned.
No description provided by the author
# Interfaces
Reader is the interface for prompt readers.
SecureReader is the interface for password readers.
StdinReader contains ContextReader methods applicable to stdin.
# Type aliases
No description provided by the author
PasswordReader is a ContextReader that reads passwords from the underlying terminal.