secretdialog

package
v0.0.0-...-bd1a654 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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