Documentation ¶
Index ¶
- func ConfigureHelper(binaryPath, userName string, port int) error
- func GetLocalGitConfigPath(repoPath string) string
- func RemoveHelper(userName string) error
- func RemoveHelperFromPath(gitConfigPath string) error
- func SetUser(userName string, user *GitUser) error
- func SetupGpgGitKey(gitSignKey string) error
- func ToString(credentials *GitCredentials) string
- type GitCredentials
- type GitUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureHelper ¶
func GetLocalGitConfigPath ¶ added in v0.5.20
GetLocalGitConfigPath resolves the local git config for the specified repository path
func RemoveHelper ¶
func RemoveHelperFromPath ¶
func SetupGpgGitKey ¶ added in v0.5.0
func ToString ¶
func ToString(credentials *GitCredentials) string
Types ¶
type GitCredentials ¶
type GitCredentials struct { Protocol string `json:"protocol,omitempty"` URL string `json:"url,omitempty"` Host string `json:"host,omitempty"` Path string `json:"path,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
func GetCredentials ¶
func GetCredentials(requestObj *GitCredentials) (*GitCredentials, error)
func Parse ¶
func Parse(raw string) (*GitCredentials, error)
Click to show internal directories.
Click to hide internal directories.