Documentation ¶
Index ¶
- type AbstractGitProvider
- type BitbucketGitProvider
- func (g *BitbucketGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *BitbucketGitProvider) GetNamespaces() ([]*GitNamespace, 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) GetUser() (*GitUser, error)
- type ConfigStore
- type GitBranch
- type GitHubGitProvider
- func (g *GitHubGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *GitHubGitProvider) GetNamespaces() ([]*GitNamespace, 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) GetUser() (*GitUser, error)
- type GitLabGitProvider
- func (g *GitLabGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *GitLabGitProvider) GetNamespaces() ([]*GitNamespace, 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) GetUser() (*GitUser, error)
- type GitNamespace
- type GitProvider
- type GitProviderConfig
- type GitPullRequest
- type GitRepository
- type GitUser
- type GiteaGitProvider
- func (g *GiteaGitProvider) GetLastCommitSha(staticContext *StaticGitContext) (string, error)
- func (g *GiteaGitProvider) GetNamespaces() ([]*GitNamespace, 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) GetUser() (*GitUser, error)
- type StaticGitContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractGitProvider ¶ added in v0.16.0
type AbstractGitProvider struct {
GitProvider
}
func (*AbstractGitProvider) GetRepositoryFromUrl ¶ added in v0.16.0
func (a *AbstractGitProvider) GetRepositoryFromUrl(repositoryUrl string) (*GitRepository, 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) 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) 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) GetUser ¶ added in v0.11.0
func (g *BitbucketGitProvider) GetUser() (*GitUser, 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 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) 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) 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) GetUser ¶ added in v0.11.0
func (g *GitHubGitProvider) GetUser() (*GitUser, 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) 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) 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) GetUser ¶ added in v0.11.0
func (g *GitLabGitProvider) GetUser() (*GitUser, 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) GetLastCommitSha(staticContext *StaticGitContext) (string, error) // contains filtered or unexported methods }
type GitProviderConfig ¶ added in v0.11.0
type GitPullRequest ¶
type GitPullRequest struct { Name string `json:"name"` Branch string `json:"branch"` Sha string `json:"sha"` SourceRepoId string `json:"sourceRepoId"` SourceRepoUrl string `json:"sourceRepoUrl"` SourceRepoOwner string `json:"sourceRepoOwner"` SourceRepoName string `json:"sourceRepoName"` } // @name GitPullRequest
type GitRepository ¶ added in v0.11.0
type GitRepository struct { Id string `json:"id"` Url string `json:"url"` Name string `json:"name"` Branch *string `json:"branch,omitempty"` Sha string `json:"sha"` Owner string `json:"owner"` PrNumber *uint32 `json:"prNumber,omitempty"` Source string `json:"source"` Path *string `json:"path,omitempty"` } // @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) 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) 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) GetUser ¶ added in v0.11.0
func (g *GiteaGitProvider) GetUser() (*GitUser, error)
type StaticGitContext ¶ added in v0.16.0
type StaticGitContext struct { Id string `json:"id"` Url string `json:"url"` Name string `json:"name"` Branch *string `json:"branch,omitempty"` Sha *string `json:"sha,omitempty"` Owner string `json:"owner"` PrNumber *uint32 `json:"prNumber,omitempty"` Source string `json:"source"` Path *string `json:"path,omitempty"` } // @name StaticGitContext
Click to show internal directories.
Click to hide internal directories.