Documentation ¶
Index ¶
- Variables
- func GetGitProviderFromHost(url string, gitProviders []serverapiclient.GitProvider) *serverapiclient.GitProvider
- func GetUsernameFromToken(providerId string, gitProviders []config.GitProvider, token string, ...) (string, error)
- type BitbucketGitProvider
- func (g *BitbucketGitProvider) GetNamespaces() ([]GitNamespace, error)
- func (g *BitbucketGitProvider) GetRepoBranches(repo types.Repository, namespaceId string) ([]GitBranch, error)
- func (g *BitbucketGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
- func (g *BitbucketGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
- func (g *BitbucketGitProvider) GetUserData() (GitUser, error)
- type BranchResponse
- type BranchesResponse
- type CheckoutOption
- type GitBranch
- type GitHubGitProvider
- func (g *GitHubGitProvider) GetNamespaces() ([]GitNamespace, error)
- func (g *GitHubGitProvider) GetRepoBranches(repo types.Repository, namespaceId string) ([]GitBranch, error)
- func (g *GitHubGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
- func (g *GitHubGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
- func (g *GitHubGitProvider) GetUserData() (GitUser, error)
- type GitLabGitProvider
- func (g *GitLabGitProvider) GetNamespaces() ([]GitNamespace, error)
- func (g *GitLabGitProvider) GetRepoBranches(repo types.Repository, namespaceId string) ([]GitBranch, error)
- func (g *GitLabGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
- func (g *GitLabGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
- func (g *GitLabGitProvider) GetUserData() (GitUser, error)
- type GitNamespace
- type GitProvider
- type GitPullRequest
- type GitUser
- type GiteaGitProvider
- func (g *GiteaGitProvider) GetNamespaces() ([]GitNamespace, error)
- func (g *GiteaGitProvider) GetRepoBranches(repo types.Repository, namespaceId string) ([]GitBranch, error)
- func (g *GiteaGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
- func (g *GiteaGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
- func (g *GiteaGitProvider) GetUserData() (GitUser, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CheckoutDefault = CheckoutOption{Title: "Clone the default branch", Id: "default"} CheckoutBranch = CheckoutOption{Title: "Branches", Id: "branch"} CheckoutPR = CheckoutOption{Title: "Pull/Merge requests", Id: "pullrequest"} )
Functions ¶
func GetGitProviderFromHost ¶ added in v0.8.0
func GetGitProviderFromHost(url string, gitProviders []serverapiclient.GitProvider) *serverapiclient.GitProvider
func GetUsernameFromToken ¶
Types ¶
type BitbucketGitProvider ¶
type BitbucketGitProvider struct {
// contains filtered or unexported fields
}
func (*BitbucketGitProvider) GetNamespaces ¶
func (g *BitbucketGitProvider) GetNamespaces() ([]GitNamespace, error)
func (*BitbucketGitProvider) GetRepoBranches ¶
func (g *BitbucketGitProvider) GetRepoBranches(repo types.Repository, namespaceId string) ([]GitBranch, error)
func (*BitbucketGitProvider) GetRepoPRs ¶
func (g *BitbucketGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
func (*BitbucketGitProvider) GetRepositories ¶
func (g *BitbucketGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
func (*BitbucketGitProvider) GetUserData ¶
func (g *BitbucketGitProvider) GetUserData() (GitUser, error)
type BranchResponse ¶
type BranchesResponse ¶
type BranchesResponse struct {
Values []BranchResponse `json:"values"`
}
type CheckoutOption ¶
type GitHubGitProvider ¶
type GitHubGitProvider struct {
// contains filtered or unexported fields
}
func (*GitHubGitProvider) GetNamespaces ¶
func (g *GitHubGitProvider) GetNamespaces() ([]GitNamespace, error)
func (*GitHubGitProvider) GetRepoBranches ¶
func (g *GitHubGitProvider) GetRepoBranches(repo types.Repository, namespaceId string) ([]GitBranch, error)
func (*GitHubGitProvider) GetRepoPRs ¶
func (g *GitHubGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
func (*GitHubGitProvider) GetRepositories ¶
func (g *GitHubGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
func (*GitHubGitProvider) GetUserData ¶
func (g *GitHubGitProvider) GetUserData() (GitUser, error)
type GitLabGitProvider ¶
type GitLabGitProvider struct {
// contains filtered or unexported fields
}
func (*GitLabGitProvider) GetNamespaces ¶
func (g *GitLabGitProvider) GetNamespaces() ([]GitNamespace, error)
func (*GitLabGitProvider) GetRepoBranches ¶
func (g *GitLabGitProvider) GetRepoBranches(repo types.Repository, namespaceId string) ([]GitBranch, error)
func (*GitLabGitProvider) GetRepoPRs ¶
func (g *GitLabGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
func (*GitLabGitProvider) GetRepositories ¶
func (g *GitLabGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
func (*GitLabGitProvider) GetUserData ¶
func (g *GitLabGitProvider) GetUserData() (GitUser, error)
type GitNamespace ¶
type GitProvider ¶
type GitProvider interface { GetNamespaces() ([]GitNamespace, error) GetRepositories(namespace string) ([]types.Repository, error) GetUserData() (GitUser, error) GetRepoBranches(types.Repository, string) ([]GitBranch, error) GetRepoPRs(types.Repository, string) ([]GitPullRequest, error) }
func GetGitProvider ¶
func GetGitProvider(providerId string, gitProviders []types.GitProvider) GitProvider
type GitPullRequest ¶
type GiteaGitProvider ¶ added in v0.4.0
type GiteaGitProvider struct {
// contains filtered or unexported fields
}
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(repo types.Repository, namespaceId string) ([]GitBranch, error)
func (*GiteaGitProvider) GetRepoPRs ¶ added in v0.4.0
func (g *GiteaGitProvider) GetRepoPRs(repo types.Repository, namespaceId string) ([]GitPullRequest, error)
func (*GiteaGitProvider) GetRepositories ¶ added in v0.4.0
func (g *GiteaGitProvider) GetRepositories(namespace string) ([]types.Repository, error)
func (*GiteaGitProvider) GetUserData ¶ added in v0.4.0
func (g *GiteaGitProvider) GetUserData() (GitUser, error)
Click to show internal directories.
Click to hide internal directories.