Documentation ¶
Index ¶
Constants ¶
View Source
const ( UsernameKey = "username" PasswordKey = "password" KeyKey = "key" )
Variables ¶
This section is empty.
Functions ¶
func GetAuth ¶
func GetAuth(options *AuthOptions) (git2go.RemoteCallbacks, error)
func IsNotRecoverableError ¶
func NewGit2Go ¶
func NewGit2Go(logger *zap.SugaredLogger) *git2GoClient
Types ¶
type AuthOptions ¶
type AuthOptions struct { Type RepositoryAuthType Credentials map[string]string SecretName string }
type GitClientFactory ¶
type GitClientFactory struct { }
func (GitClientFactory) GetGitClient ¶
func (f GitClientFactory) GetGitClient(logger *zap.SugaredLogger) GitClient
type Options ¶
type Options struct { URL string Reference string Auth *AuthOptions }
type RepositoryAuthType ¶
type RepositoryAuthType string
const ( RepositoryAuthBasic RepositoryAuthType = "basic" RepositoryAuthSSHKey RepositoryAuthType = "key" )
Click to show internal directories.
Click to hide internal directories.