genericpass

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDefault

func OpenDefault(fileName string) (f *os.File, err error)

OpenDefault opens default pgpass file, which is ~/.pgpass. Current homedir will be retrieved by calling user.Current or using $HOME on failure.

func Password

func Password(fileName string, keyParts []string) (string, error)

Password reads password for given host and user from a default pgpass file. Host should be of the form "hostname:port".

func PasswordFrom

func PasswordFrom(keyParts []string, r io.Reader) (string, error)

PasswordFrom reads password for given host and user from r, which should be in a valid pgpass format. Host should be of the form "hostname:port".

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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