minio/vendor/github.com/howeyc/gopass
Harshavardhana eb7c690ea9 Support in-place upgrades of new minio binary and releases. (#4961)
This PR allows 'minio update' to not only shows update banner
but also allows for in-place upgrades.

Updates are done safely by validating the downloaded
sha256 of the binary.

Fixes #4781
2017-12-15 12:33:42 -08:00
..
LICENSE.txt Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00
OPENSOLARIS.LICENSE Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00
pass.go Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00
README.md Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00
terminal.go Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00
terminal_solaris.go Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08: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!