Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitCredentialsFile ¶
GitCredentialsFile returns the location of the git credentials file
Types ¶
type Credentials ¶
Credentials the loaded credentials
func GetServerCredentials ¶
func GetServerCredentials(credentials []Credentials, serverURL string) Credentials
GetServerCredentials returns the credentials for the given server URL or an empty struct
func LoadGitCredential ¶
func LoadGitCredential() ([]Credentials, error)
LoadGitCredentialsFile loads the git credentials from the `git/credentials` file in `$XDG_CONFIG_HOME/git/credentials` or in the `~/git/credentials` directory
func LoadGitCredentialsFile ¶
func LoadGitCredentialsFile(fileName string) ([]Credentials, error)
loadGitCredentialsAuthFile loads the git credentials file
Click to show internal directories.
Click to hide internal directories.