Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoEntry = errors.New("no entry for hostname")
ErrNoEntry represents the case that there is no entry for a given hostname in the netrc
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { // Login is typically the username Login string // Password contains the secret to authenticate with Password string }
Credentials for a host
func GetCredentials ¶
func GetCredentials(lines []Line, host string) (*Credentials, error)
GetCredentials from given netrc lines and the given host
Click to show internal directories.
Click to hide internal directories.