Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config interface { Format() (format.Format, error) Decrypt() bool Output() (io.Writer, error) FileNames() []string }
Config holds the values controlling the restore behaviour.
type PasswordProvider ¶
PasswordProvider allows Restore to ask for passwords of encrypted parts.
type StdinPasswordProvider ¶
type StdinPasswordProvider struct {
// contains filtered or unexported fields
}
StdinPasswordProvider implements PasswordProvider It uses a given writer for writing input prompts and STDIN for reading passwords from.
func NewPasswordProvider ¶
func NewPasswordProvider(w io.Writer) *StdinPasswordProvider
NewPasswordProvider returns an instance of StdinPasswordProvider.
func (*StdinPasswordProvider) GetPassword ¶
func (p *StdinPasswordProvider) GetPassword(prompt string) ([]byte, error)
GetPassword prompts the user and returns the password read from the terminal.
Click to show internal directories.
Click to hide internal directories.