console

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskDoublePassword

func AskDoublePassword() (string, error)

AskDoublePassword will ask for a password (and confirmation) on the commandline

func AskDoublePasswordPrompt

func AskDoublePasswordPrompt(p1, p2 string) (string, error)

AskDoublePasswordPrompt will ask for a password (and confirmation) on the commandline, with a custom prompt

func AskMnemonicPhrase

func AskMnemonicPhrase() string

AskMnemonicPhrase asks for the mnemonic phrase

func AskPassword

func AskPassword() (string, bool)

AskPassword will ask for a password (without confirmation) on the commandline

func AskPasswordPrompt

func AskPasswordPrompt(p1 string) (string, bool)

AskPasswordPrompt will prompt for a password

func DeletePassword

func DeletePassword() error

DeletePassword will delete the password from the keychain if possible

func StorePassword

func StorePassword(pwd string) error

StorePassword will store the given password into the keychain if possible

Types

type PasswordReader

type PasswordReader interface {
	ReadPassword() ([]byte, error)
}

PasswordReader is an interface to read a password.

type StdInPasswordReader

type StdInPasswordReader struct {
}

StdInPasswordReader Default password reader from stdin

func (*StdInPasswordReader) ReadPassword

func (pr *StdInPasswordReader) ReadPassword() ([]byte, error)

ReadPassword reads password from stdin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL