Documentation ¶
Index ¶
Constants ¶
View Source
const ( BootSecretName = "jx-boot" OperatorNamespace = "jx-git-operator" )
Variables ¶
This section is empty.
Functions ¶
func FindOperatorCredentials ¶
func FindOperatorCredentials() (credentialhelper.GitCredential, error)
FindOperatorCredentials detects the git operator secret so we have default credentials
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, bool, error)
loadGitCredentialsAuthFile loads the git credentials file
Click to show internal directories.
Click to hide internal directories.