1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 01:06:27 +00:00
prometheus-operator/vendor/github.com/howeyc/gopass
2018-01-30 15:30:00 +01:00
..
.travis.yml Uses 'dep' to manage dependencies 2018-01-30 15:30:00 +01:00
LICENSE.txt *: add basic e2e test for Prometheus TPR 2016-11-24 17:46:12 +01:00
OPENSOLARIS.LICENSE *: add basic e2e test for Prometheus TPR 2016-11-24 17:46:12 +01:00
pass.go Vendoring kubernetes/client-go 1.8 2017-11-30 13:35:36 +01:00
pass_test.go Uses 'dep' to manage dependencies 2018-01-30 15:30:00 +01:00
README.md vendor: update k8s.io/* dependencies 2017-01-26 15:35:37 +01:00
terminal.go *: add basic e2e test for Prometheus TPR 2016-11-24 17:46:12 +01:00
terminal_solaris.go *: add basic e2e test for Prometheus TPR 2016-11-24 17:46:12 +01:00

getpasswd in Go GoDoc Build Status

Retrieve password from user terminal or piped input without echo.

Verified on BSD, Linux, and Windows.

Example:

package main

import "fmt"
import "github.com/howeyc/gopass"

func main() {
	fmt.Printf("Password: ")

	// Silent. For printing *'s use gopass.GetPasswdMasked()
	pass, err := gopass.GetPasswd()
	if err != nil {
		// Handle gopass.ErrInterrupted or getch() read error
	}

	// Do something with pass
}

Caution: Multi-byte characters not supported!