Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInputEnds = errors.New("cli: the input ends before the secret") ErrSecretsDiffer = errors.New("cli: the secrets differ") )
Functions ¶
Types ¶
type SecretReader ¶
type SecretReader struct {
// contains filtered or unexported fields
}
func NewSecretReader ¶
func NewSecretReader(in io.Reader, prompt io.Writer) *SecretReader
func (*SecretReader) ReadConfirmed ¶
func (r *SecretReader) ReadConfirmed(prompt, repeatPrompt string) (string, error)
Click to show internal directories.
Click to hide internal directories.