terminal

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostKey

func HostKey(host string) ssh.PublicKey

func PublicKey

func PublicKey(path string, passphrase []byte) (ssh.Signer, error)

func ReadLogin

func ReadLogin() []byte

func ReadPassphrase

func ReadPassphrase() []byte

func ReadPassword

func ReadPassword(prompt string) (pw []byte, err error)

ReadPassword prompts for a secret and returns value input by user from stdin Unlike terminal.ReadPassword(), $(echo $SECRET | podman...) is supported. Additionally, all input after `<secret>/n` is queued to podman command.

func SetConsole

func SetConsole() error

SetConsole for non-windows environments is a no-op

Types

This section is empty.

Jump to

Keyboard shortcuts

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