Documentation ¶
Index ¶
Constants ¶
View Source
const (
GitlabContextType = "git.gitlab"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitProvider ¶
type GitProvider interface { // GetManifestRepoInfo information about manifest repo that include author, commits and other info GetManifestRepoInfo(repoUrl string, revision string) (error, *codefreshSdk.Gitops) // GetCommitByRevision retrieve git commit by sha GetCommitByRevision(repoUrl string, revision string) (error, *ResourceCommit) }
GitProvider interface for git providers
func GetGitProvider ¶
func GetGitProvider() GitProvider
func NewGithubProvider ¶
func NewGithubProvider() GitProvider
func NewGitlabProvider ¶
func NewGitlabProvider() GitProvider
type Github ¶
type Github struct { }
func (*Github) GetCommitByRevision ¶
func (github *Github) GetCommitByRevision(repoUrl string, revision string) (error, *ResourceCommit)
func (*Github) GetManifestRepoInfo ¶
type Gitlab ¶
type Gitlab struct {
// contains filtered or unexported fields
}
func (*Gitlab) GetCommitByRevision ¶
func (gitlabInstance *Gitlab) GetCommitByRevision(repoUrl string, revision string) (error, *ResourceCommit)
func (*Gitlab) GetManifestRepoInfo ¶
Click to show internal directories.
Click to hide internal directories.