Documentation ¶
Index ¶
- Variables
- func IsGitProviderNotFound(err error) bool
- type AbstractGitProvider
- func (g *AbstractGitProvider) GetCommitsRange(repo *GitRepository, owner string, initialSha string, currentSha string) (int, error)
- func (g *AbstractGitProvider) GetPrebuildWebhook(repo *GitRepository, endpointUrl string) (*string, error)
- func (a *AbstractGitProvider) GetRepositoryFromUrl(repositoryUrl string) (*GitRepository, error)
- func (g *AbstractGitProvider) ParseEventData(request *http.Request) (*GitEventData, error)
- func (a *AbstractGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- func (g *AbstractGitProvider) RegisterPrebuildWebhook(repo *GitRepository, endpointUrl string) (string, error)
- func (g *AbstractGitProvider) UnregisterPrebuildWebhook(repo *GitRepository, id string) error
- type AwsCodeCommitGitProvider
- func (g *AwsCodeCommitGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *AwsCodeCommitGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *AwsCodeCommitGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *AwsCodeCommitGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *AwsCodeCommitGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *AwsCodeCommitGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *AwsCodeCommitGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *AwsCodeCommitGitProvider) GetUrlFromRepository(repository *GitRepository) string
- func (g *AwsCodeCommitGitProvider) GetUser() (*GitUser, error)
- func (g *AwsCodeCommitGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- type AzureDevOpsGitProvider
- func (g *AzureDevOpsGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *AzureDevOpsGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *AzureDevOpsGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *AzureDevOpsGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *AzureDevOpsGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *AzureDevOpsGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *AzureDevOpsGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *AzureDevOpsGitProvider) GetUrlFromRepository(repo *GitRepository) string
- func (g *AzureDevOpsGitProvider) GetUser() (*GitUser, error)
- func (g *AzureDevOpsGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- type BitbucketGitProvider
- func (g *BitbucketGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *BitbucketGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *BitbucketGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *BitbucketGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *BitbucketGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *BitbucketGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *BitbucketGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *BitbucketGitProvider) GetUrlFromRepository(repository *GitRepository) string
- func (g *BitbucketGitProvider) GetUser() (*GitUser, error)
- func (g *BitbucketGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- type BitbucketServerGitProvider
- func (g *BitbucketServerGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *BitbucketServerGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *BitbucketServerGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *BitbucketServerGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *BitbucketServerGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *BitbucketServerGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *BitbucketServerGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *BitbucketServerGitProvider) GetUrlFromRepository(repository *GitRepository) string
- func (g *BitbucketServerGitProvider) GetUser() (*GitUser, error)
- func (g *BitbucketServerGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- type ConfigStore
- type GitBranch
- type GitEventData
- type GitHubGitProvider
- func (g *GitHubGitProvider) GetCommitsRange(repo *GitRepository, owner string, initialSha string, currentSha string) (int, error)
- func (g *GitHubGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *GitHubGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *GitHubGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *GitHubGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *GitHubGitProvider) GetPrebuildWebhook(repo *GitRepository, endpointUrl string) (*string, error)
- func (g *GitHubGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *GitHubGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *GitHubGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *GitHubGitProvider) GetUrlFromRepository(repository *GitRepository) string
- func (g *GitHubGitProvider) GetUser() (*GitUser, error)
- func (g *GitHubGitProvider) ParseEventData(request *http.Request) (*GitEventData, error)
- func (g *GitHubGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- func (g *GitHubGitProvider) RegisterPrebuildWebhook(repo *GitRepository, endpointUrl string) (string, error)
- func (g *GitHubGitProvider) UnregisterPrebuildWebhook(repo *GitRepository, id string) error
- type GitLabGitProvider
- func (g *GitLabGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *GitLabGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *GitLabGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *GitLabGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *GitLabGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *GitLabGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *GitLabGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *GitLabGitProvider) GetUrlFromRepository(repository *GitRepository) string
- func (g *GitLabGitProvider) GetUser() (*GitUser, error)
- func (g *GitLabGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- type GitNamespace
- type GitProvider
- type GitProviderConfig
- type GitPullRequest
- type GitRepository
- type GitUser
- type GiteaGitProvider
- func (g *GiteaGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *GiteaGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *GiteaGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *GiteaGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *GiteaGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *GiteaGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *GiteaGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *GiteaGitProvider) GetUrlFromRepository(repository *GitRepository) string
- func (g *GiteaGitProvider) GetUser() (*GitUser, error)
- func (g *GiteaGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- type GitnessGitProvider
- func (g *GitnessGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
- func (g *GitnessGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *GitnessGitProvider) GetNamespaces() ([]*GitNamespace, error)
- func (g *GitnessGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
- func (g *GitnessGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
- func (g *GitnessGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
- func (g *GitnessGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
- func (g *GitnessGitProvider) GetUrlFromRepository(repo *GitRepository) string
- func (g *GitnessGitProvider) GetUser() (*GitUser, error)
- func (g *GitnessGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
- type StaticGitContext
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrGitProviderConfigNotFound = errors.New("git provider config not found")
)
Functions ¶
func IsGitProviderNotFound ¶ added in v0.18.0
Types ¶
type AbstractGitProvider ¶ added in v0.16.0
type AbstractGitProvider struct {
GitProvider
}
func (*AbstractGitProvider) GetCommitsRange ¶ added in v0.26.0
func (g *AbstractGitProvider) GetCommitsRange(repo *GitRepository, owner string, initialSha string, currentSha string) (int, error)
func (*AbstractGitProvider) GetPrebuildWebhook ¶ added in v0.26.0
func (g *AbstractGitProvider) GetPrebuildWebhook(repo *GitRepository, endpointUrl string) (*string, error)
func (*AbstractGitProvider) GetRepositoryFromUrl ¶ added in v0.16.0
func (a *AbstractGitProvider) GetRepositoryFromUrl(repositoryUrl string) (*GitRepository, error)
func (*AbstractGitProvider) ParseEventData ¶ added in v0.26.0
func (g *AbstractGitProvider) ParseEventData(request *http.Request) (*GitEventData, error)
func (*AbstractGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (a *AbstractGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
func (*AbstractGitProvider) RegisterPrebuildWebhook ¶ added in v0.26.0
func (g *AbstractGitProvider) RegisterPrebuildWebhook(repo *GitRepository, endpointUrl string) (string, error)
func (*AbstractGitProvider) UnregisterPrebuildWebhook ¶ added in v0.26.0
func (g *AbstractGitProvider) UnregisterPrebuildWebhook(repo *GitRepository, id string) error
type AwsCodeCommitGitProvider ¶ added in v0.24.0
type AwsCodeCommitGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewAwsCodeCommitGitProvider ¶ added in v0.24.0
func NewAwsCodeCommitGitProvider(baseApiUrl string) *AwsCodeCommitGitProvider
func (*AwsCodeCommitGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *AwsCodeCommitGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*AwsCodeCommitGitProvider) GetLastCommitSha ¶ added in v0.24.0
func (g *AwsCodeCommitGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*AwsCodeCommitGitProvider) GetNamespaces ¶ added in v0.24.0
func (g *AwsCodeCommitGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*AwsCodeCommitGitProvider) GetPrContext ¶ added in v0.26.0
func (g *AwsCodeCommitGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*AwsCodeCommitGitProvider) GetRepoBranches ¶ added in v0.24.0
func (g *AwsCodeCommitGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*AwsCodeCommitGitProvider) GetRepoPRs ¶ added in v0.24.0
func (g *AwsCodeCommitGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*AwsCodeCommitGitProvider) GetRepositories ¶ added in v0.24.0
func (g *AwsCodeCommitGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*AwsCodeCommitGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *AwsCodeCommitGitProvider) GetUrlFromRepository(repository *GitRepository) string
func (*AwsCodeCommitGitProvider) GetUser ¶ added in v0.24.0
func (g *AwsCodeCommitGitProvider) GetUser() (*GitUser, error)
func (*AwsCodeCommitGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *AwsCodeCommitGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
type AzureDevOpsGitProvider ¶ added in v0.21.0
type AzureDevOpsGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewAzureDevOpsGitProvider ¶ added in v0.21.0
func NewAzureDevOpsGitProvider(token string, baseApiUrl string) *AzureDevOpsGitProvider
func (*AzureDevOpsGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *AzureDevOpsGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*AzureDevOpsGitProvider) GetLastCommitSha ¶ added in v0.21.0
func (g *AzureDevOpsGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*AzureDevOpsGitProvider) GetNamespaces ¶ added in v0.21.0
func (g *AzureDevOpsGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*AzureDevOpsGitProvider) GetPrContext ¶ added in v0.26.0
func (g *AzureDevOpsGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*AzureDevOpsGitProvider) GetRepoBranches ¶ added in v0.21.0
func (g *AzureDevOpsGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*AzureDevOpsGitProvider) GetRepoPRs ¶ added in v0.21.0
func (g *AzureDevOpsGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*AzureDevOpsGitProvider) GetRepositories ¶ added in v0.21.0
func (g *AzureDevOpsGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*AzureDevOpsGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *AzureDevOpsGitProvider) GetUrlFromRepository(repo *GitRepository) string
func (*AzureDevOpsGitProvider) GetUser ¶ added in v0.21.0
func (g *AzureDevOpsGitProvider) GetUser() (*GitUser, error)
func (*AzureDevOpsGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *AzureDevOpsGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
type BitbucketGitProvider ¶
type BitbucketGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewBitbucketGitProvider ¶ added in v0.11.0
func NewBitbucketGitProvider(username string, token string) *BitbucketGitProvider
func (*BitbucketGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *BitbucketGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*BitbucketGitProvider) GetLastCommitSha ¶ added in v0.16.0
func (g *BitbucketGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*BitbucketGitProvider) GetNamespaces ¶
func (g *BitbucketGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*BitbucketGitProvider) GetPrContext ¶ added in v0.26.0
func (g *BitbucketGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*BitbucketGitProvider) GetRepoBranches ¶
func (g *BitbucketGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*BitbucketGitProvider) GetRepoPRs ¶
func (g *BitbucketGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*BitbucketGitProvider) GetRepositories ¶
func (g *BitbucketGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*BitbucketGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *BitbucketGitProvider) GetUrlFromRepository(repository *GitRepository) string
func (*BitbucketGitProvider) GetUser ¶ added in v0.11.0
func (g *BitbucketGitProvider) GetUser() (*GitUser, error)
func (*BitbucketGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *BitbucketGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
type BitbucketServerGitProvider ¶ added in v0.21.0
type BitbucketServerGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewBitbucketServerGitProvider ¶ added in v0.21.0
func NewBitbucketServerGitProvider(username string, token string, baseApiUrl *string) *BitbucketServerGitProvider
func (*BitbucketServerGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *BitbucketServerGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*BitbucketServerGitProvider) GetLastCommitSha ¶ added in v0.21.0
func (g *BitbucketServerGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*BitbucketServerGitProvider) GetNamespaces ¶ added in v0.21.0
func (g *BitbucketServerGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*BitbucketServerGitProvider) GetPrContext ¶ added in v0.26.0
func (g *BitbucketServerGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*BitbucketServerGitProvider) GetRepoBranches ¶ added in v0.21.0
func (g *BitbucketServerGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*BitbucketServerGitProvider) GetRepoPRs ¶ added in v0.21.0
func (g *BitbucketServerGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*BitbucketServerGitProvider) GetRepositories ¶ added in v0.21.0
func (g *BitbucketServerGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*BitbucketServerGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *BitbucketServerGitProvider) GetUrlFromRepository(repository *GitRepository) string
func (*BitbucketServerGitProvider) GetUser ¶ added in v0.21.0
func (g *BitbucketServerGitProvider) GetUser() (*GitUser, error)
func (*BitbucketServerGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *BitbucketServerGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
type ConfigStore ¶ added in v0.11.0
type ConfigStore interface { List() ([]*GitProviderConfig, error) Find(id string) (*GitProviderConfig, error) Save(*GitProviderConfig) error Delete(*GitProviderConfig) error }
type GitEventData ¶ added in v0.26.0
type GitEventData struct { Url string `json:"url" validate:"required"` Branch string `json:"branch" validate:"required"` Sha string `json:"sha" validate:"required"` Owner string `json:"user" validate:"required"` AffectedFiles []string `json:"affectedFiles" validate:"required"` } // @name GitEventData
type GitHubGitProvider ¶
type GitHubGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewGitHubGitProvider ¶ added in v0.11.0
func NewGitHubGitProvider(token string, baseApiUrl *string) *GitHubGitProvider
func (*GitHubGitProvider) GetCommitsRange ¶ added in v0.26.0
func (g *GitHubGitProvider) GetCommitsRange(repo *GitRepository, owner string, initialSha string, currentSha string) (int, error)
func (*GitHubGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *GitHubGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*GitHubGitProvider) GetLastCommitSha ¶ added in v0.16.0
func (g *GitHubGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*GitHubGitProvider) GetNamespaces ¶
func (g *GitHubGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*GitHubGitProvider) GetPrContext ¶ added in v0.26.0
func (g *GitHubGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*GitHubGitProvider) GetPrebuildWebhook ¶ added in v0.26.0
func (g *GitHubGitProvider) GetPrebuildWebhook(repo *GitRepository, endpointUrl string) (*string, error)
func (*GitHubGitProvider) GetRepoBranches ¶
func (g *GitHubGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*GitHubGitProvider) GetRepoPRs ¶
func (g *GitHubGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*GitHubGitProvider) GetRepositories ¶
func (g *GitHubGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*GitHubGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *GitHubGitProvider) GetUrlFromRepository(repository *GitRepository) string
func (*GitHubGitProvider) GetUser ¶ added in v0.11.0
func (g *GitHubGitProvider) GetUser() (*GitUser, error)
func (*GitHubGitProvider) ParseEventData ¶ added in v0.26.0
func (g *GitHubGitProvider) ParseEventData(request *http.Request) (*GitEventData, error)
func (*GitHubGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *GitHubGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
func (*GitHubGitProvider) RegisterPrebuildWebhook ¶ added in v0.26.0
func (g *GitHubGitProvider) RegisterPrebuildWebhook(repo *GitRepository, endpointUrl string) (string, error)
func (*GitHubGitProvider) UnregisterPrebuildWebhook ¶ added in v0.26.0
func (g *GitHubGitProvider) UnregisterPrebuildWebhook(repo *GitRepository, id string) error
type GitLabGitProvider ¶
type GitLabGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewGitLabGitProvider ¶ added in v0.11.0
func NewGitLabGitProvider(token string, baseApiUrl *string) *GitLabGitProvider
func (*GitLabGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *GitLabGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*GitLabGitProvider) GetLastCommitSha ¶ added in v0.16.0
func (g *GitLabGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*GitLabGitProvider) GetNamespaces ¶
func (g *GitLabGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*GitLabGitProvider) GetPrContext ¶ added in v0.26.0
func (g *GitLabGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*GitLabGitProvider) GetRepoBranches ¶
func (g *GitLabGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*GitLabGitProvider) GetRepoPRs ¶
func (g *GitLabGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*GitLabGitProvider) GetRepositories ¶
func (g *GitLabGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*GitLabGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *GitLabGitProvider) GetUrlFromRepository(repository *GitRepository) string
func (*GitLabGitProvider) GetUser ¶ added in v0.11.0
func (g *GitLabGitProvider) GetUser() (*GitUser, error)
func (*GitLabGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *GitLabGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
type GitNamespace ¶
type GitProvider ¶
type GitProvider interface { GetNamespaces() ([]*GitNamespace, error) GetRepositories(namespace string) ([]*GitRepository, error) GetUser() (*GitUser, error) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error) GetRepositoryFromUrl(repositoryUrl string) (*GitRepository, error) GetUrlFromRepository(repository *GitRepository) string GetLastCommitSha(staticContext *StaticGitContext) (string, error) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error) GetDefaultBranch(staticContext *StaticGitContext) (*string, error) RegisterPrebuildWebhook(repo *GitRepository, endpointUrl string) (string, error) GetPrebuildWebhook(repo *GitRepository, endpointUrl string) (*string, error) UnregisterPrebuildWebhook(repo *GitRepository, id string) error GetCommitsRange(repo *GitRepository, owner string, initialSha string, currentSha string) (int, error) ParseEventData(request *http.Request) (*GitEventData, error) }
type GitProviderConfig ¶ added in v0.11.0
type GitPullRequest ¶
type GitPullRequest struct { Name string `json:"name" validate:"required"` Branch string `json:"branch" validate:"required"` Sha string `json:"sha" validate:"required"` SourceRepoId string `json:"sourceRepoId" validate:"required"` SourceRepoUrl string `json:"sourceRepoUrl" validate:"required"` SourceRepoOwner string `json:"sourceRepoOwner" validate:"required"` SourceRepoName string `json:"sourceRepoName" validate:"required"` } // @name GitPullRequest
type GitRepository ¶ added in v0.11.0
type GitRepository struct { Id string `json:"id" validate:"required"` Url string `json:"url" validate:"required"` Name string `json:"name" validate:"required"` Branch *string `json:"branch,omitempty" validate:"optional"` Sha string `json:"sha" validate:"required"` Owner string `json:"owner" validate:"required"` PrNumber *uint32 `json:"prNumber,omitempty" validate:"optional"` Source string `json:"source" validate:"required"` Path *string `json:"path,omitempty" validate:"optional"` } // @name GitRepository
type GiteaGitProvider ¶ added in v0.4.0
type GiteaGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewGiteaGitProvider ¶ added in v0.11.0
func NewGiteaGitProvider(token string, baseApiUrl string) *GiteaGitProvider
func (*GiteaGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *GiteaGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*GiteaGitProvider) GetLastCommitSha ¶ added in v0.16.0
func (g *GiteaGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*GiteaGitProvider) GetNamespaces ¶ added in v0.4.0
func (g *GiteaGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*GiteaGitProvider) GetPrContext ¶ added in v0.26.0
func (g *GiteaGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*GiteaGitProvider) GetRepoBranches ¶ added in v0.4.0
func (g *GiteaGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*GiteaGitProvider) GetRepoPRs ¶ added in v0.4.0
func (g *GiteaGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*GiteaGitProvider) GetRepositories ¶ added in v0.4.0
func (g *GiteaGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*GiteaGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *GiteaGitProvider) GetUrlFromRepository(repository *GitRepository) string
func (*GiteaGitProvider) GetUser ¶ added in v0.11.0
func (g *GiteaGitProvider) GetUser() (*GitUser, error)
func (*GiteaGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *GiteaGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
type GitnessGitProvider ¶ added in v0.20.0
type GitnessGitProvider struct { *AbstractGitProvider // contains filtered or unexported fields }
func NewGitnessGitProvider ¶ added in v0.20.0
func NewGitnessGitProvider(token string, baseApiUrl *string) *GitnessGitProvider
func (*GitnessGitProvider) GetDefaultBranch ¶ added in v0.26.0
func (g *GitnessGitProvider) GetDefaultBranch(staticContext *StaticGitContext) (*string, error)
func (*GitnessGitProvider) GetLastCommitSha ¶ added in v0.20.0
func (g *GitnessGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
func (*GitnessGitProvider) GetNamespaces ¶ added in v0.20.0
func (g *GitnessGitProvider) GetNamespaces() ([]*GitNamespace, error)
func (*GitnessGitProvider) GetPrContext ¶ added in v0.26.0
func (g *GitnessGitProvider) GetPrContext(staticContext *StaticGitContext) (*StaticGitContext, error)
func (*GitnessGitProvider) GetRepoBranches ¶ added in v0.20.0
func (g *GitnessGitProvider) GetRepoBranches(repositoryId string, namespaceId string) ([]*GitBranch, error)
func (*GitnessGitProvider) GetRepoPRs ¶ added in v0.20.0
func (g *GitnessGitProvider) GetRepoPRs(repositoryId string, namespaceId string) ([]*GitPullRequest, error)
func (*GitnessGitProvider) GetRepositories ¶ added in v0.20.0
func (g *GitnessGitProvider) GetRepositories(namespace string) ([]*GitRepository, error)
func (*GitnessGitProvider) GetUrlFromRepository ¶ added in v0.24.0
func (g *GitnessGitProvider) GetUrlFromRepository(repo *GitRepository) string
func (*GitnessGitProvider) GetUser ¶ added in v0.20.0
func (g *GitnessGitProvider) GetUser() (*GitUser, error)
func (*GitnessGitProvider) ParseStaticGitContext ¶ added in v0.26.0
func (g *GitnessGitProvider) ParseStaticGitContext(repoUrl string) (*StaticGitContext, error)
type StaticGitContext ¶ added in v0.16.0
type StaticGitContext struct { Id string `json:"id" validate:"required"` Url string `json:"url" validate:"required"` Name string `json:"name" validate:"required"` Branch *string `json:"branch,omitempty" validate:"optional"` Sha *string `json:"sha,omitempty" validate:"optional"` Owner string `json:"owner" validate:"required"` PrNumber *uint32 `json:"prNumber,omitempty" validate:"optional"` Source string `json:"source" validate:"required"` Path *string `json:"path,omitempty" validate:"optional"` } // @name StaticGitContext
Source Files ¶
Click to show internal directories.
Click to hide internal directories.