prompt

package
Version: v6.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Methods = map[string]PromptFunc{}

Functions

func Available

func Available() []string

func KDialogMfaPrompt

func KDialogMfaPrompt(mfaSerial string) (string, error)

func OSAScriptMfaPrompt

func OSAScriptMfaPrompt(mfaSerial string) (string, error)

func PassMfaProvider

func PassMfaProvider(mfaSerial string) (string, error)

PassOTPProvider uses the pass otp extension to generate a OATH-TOTP token To set up pass otp, first create a pass otp credential with a name of your mfaSerial, or set PASS_OATH_CREDENTIAL_NAME.

func TerminalMfaPrompt

func TerminalMfaPrompt(mfaSerial string) (string, error)

func TerminalPrompt

func TerminalPrompt(message string) (string, error)

func TerminalSecretPrompt

func TerminalSecretPrompt(message string) (string, error)

func YkmanMfaProvider

func YkmanMfaProvider(mfaSerial string) (string, error)

YkmanProvider runs ykman to generate a OATH-TOTP token from the Yubikey device To set up ykman, first run `ykman oath add`

func ZenityMfaPrompt

func ZenityMfaPrompt(mfaSerial string) (string, error)

Types

type PromptFunc

type PromptFunc func(string) (string, error)

func Method

func Method(s string) PromptFunc

Jump to

Keyboard shortcuts

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