Documentation ¶
Overview ¶
Package secretdialog contains dialog widgets that supplements package secret.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptPassword ¶
func PromptPassword(ctx context.Context, mode PromptMode, done func(ok bool, enc *secret.EncryptedFile))
PromptPassword prompts the password to the user. done is called when the dialog is either closed or confirmed by the user.
Types ¶
type PromptMode ¶
type PromptMode uint8
PromptMode chooses the mode to prompt the password dialog to the user. It's either for decrypting for encrypting. This type only determines the labels.
const ( PromptEncrypt PromptMode = iota PromptDecrypt )
Click to show internal directories.
Click to hide internal directories.