Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NetrcUsernameField is the value that holds the username in the netrc format NetrcUsernameField string = "login" // NetrcPasswordField is the value that holds the passwod in the netrc format NetrcPasswordField string = "password" // NetrcDefaultFilename is the default name of the netrc configuration file. NetrcDefaultFilename string = ".netrc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represents a configuration structure passed to the Netrc object in order to initialize it
type Interface ¶
type Interface interface { // GetAuth retrieves the authentication credentials for a given host, or // throws an error GetUsernamePassword(host string) (string, string, error) }
Interface is a generic authentication interface
type NetrcAuth ¶
type NetrcAuth struct { // Config is the reference to the config struct Config *Config // Netrc is the parsed netrc file Netrc *netrc.Netrc }
NetrcAuth reresents the implementation of the netrc authentication manager interface
Click to show internal directories.
Click to hide internal directories.