pinentry

package
v0.0.0-...-fc64459 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package pinentry provides an interface to the pinentry utility.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskPass

func AskPass(ctx context.Context, prompt string, verify func(string) bool) (string, error)

AskPass displays a password entry dialogue.

func Confirm

func Confirm(ctx context.Context, prompt string) (bool, error)

Confirm displays a confirmation dialog to the user.

func NewPass

func NewPass(ctx context.Context, prompt string) (string, error)

NewPass displays a new password creation dialogue.

Types

type Pinentry

type Pinentry interface {
	Confirm(context.Context, string) (bool, error)
	NewPass(context.Context, string) (string, error)
	AskPass(context.Context, string, func(string) bool) (string, error)
}

Pinentry is the interface

var External Pinentry = pinentry{}

External is the external (default) pinentry implementation.

Jump to

Keyboard shortcuts

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