Documentation ¶
Index ¶
- Constants
- type AzureDevOpsClientFactory
- type AzureDevOpsService
- type BitbucketCloudPullRequest
- type BitbucketCloudPullRequestSource
- type BitbucketCloudPullRequestSourceBranch
- type BitbucketCloudPullRequestSourceCommit
- type BitbucketCloudService
- type BitbucketService
- type FakeService
- type Filter
- type GitLabService
- type GiteaService
- type GithubService
- type PullRequest
- type PullRequestResponse
- type PullRequestService
- func NewAzureDevOpsService(ctx context.Context, token, url, organization, project, repo string, ...) (PullRequestService, error)
- func NewBitbucketCloudServiceBasicAuth(baseUrl, username, password, owner, repositorySlug string) (PullRequestService, error)
- func NewBitbucketCloudServiceBearerToken(baseUrl, bearerToken, owner, repositorySlug string) (PullRequestService, error)
- func NewBitbucketCloudServiceNoAuth(baseUrl, owner, repositorySlug string) (PullRequestService, error)
- func NewBitbucketServiceBasicAuth(ctx context.Context, ...) (PullRequestService, error)
- func NewBitbucketServiceNoAuth(ctx context.Context, url, projectKey, repositorySlug string) (PullRequestService, error)
- func NewFakeService(_ context.Context, listPullReuests []*PullRequest, listError error) (PullRequestService, error)
- func NewGitLabService(ctx context.Context, token, url, project string, labels []string, ...) (PullRequestService, error)
- func NewGiteaService(ctx context.Context, token, url, owner, repo string, insecure bool) (PullRequestService, error)
- func NewGithubAppService(g github_app_auth.Authentication, url, owner, repo string, labels []string) (PullRequestService, error)
- func NewGithubService(ctx context.Context, token, url, owner, repo string, labels []string) (PullRequestService, error)
Constants ¶
View Source
const AZURE_DEVOPS_DEFAULT_URL = "https://dev.azure.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureDevOpsClientFactory ¶ added in v2.8.0
type AzureDevOpsService ¶ added in v2.8.0
type AzureDevOpsService struct {
// contains filtered or unexported fields
}
func (*AzureDevOpsService) List ¶ added in v2.8.0
func (a *AzureDevOpsService) List(ctx context.Context) ([]*PullRequest, error)
type BitbucketCloudPullRequest ¶ added in v2.8.0
type BitbucketCloudPullRequest struct { ID int `json:"id"` Source BitbucketCloudPullRequestSource `json:"source"` }
type BitbucketCloudPullRequestSource ¶ added in v2.8.0
type BitbucketCloudPullRequestSource struct { Branch BitbucketCloudPullRequestSourceBranch `json:"branch"` Commit BitbucketCloudPullRequestSourceCommit `json:"commit"` }
type BitbucketCloudPullRequestSourceBranch ¶ added in v2.8.0
type BitbucketCloudPullRequestSourceBranch struct {
Name string `json:"name"`
}
type BitbucketCloudPullRequestSourceCommit ¶ added in v2.8.0
type BitbucketCloudPullRequestSourceCommit struct {
Hash string `json:"hash"`
}
type BitbucketCloudService ¶ added in v2.8.0
type BitbucketCloudService struct {
// contains filtered or unexported fields
}
func (*BitbucketCloudService) List ¶ added in v2.8.0
func (b *BitbucketCloudService) List(_ context.Context) ([]*PullRequest, error)
type BitbucketService ¶
type BitbucketService struct {
// contains filtered or unexported fields
}
func (*BitbucketService) List ¶
func (b *BitbucketService) List(_ context.Context) ([]*PullRequest, error)
type FakeService ¶
type FakeService struct {
// contains filtered or unexported fields
}
func (*FakeService) List ¶
func (g *FakeService) List(ctx context.Context) ([]*PullRequest, error)
type GitLabService ¶ added in v2.5.0
type GitLabService struct {
// contains filtered or unexported fields
}
func (*GitLabService) List ¶ added in v2.5.0
func (g *GitLabService) List(ctx context.Context) ([]*PullRequest, error)
type GiteaService ¶
type GiteaService struct {
// contains filtered or unexported fields
}
func (*GiteaService) List ¶
func (g *GiteaService) List(ctx context.Context) ([]*PullRequest, error)
type GithubService ¶
type GithubService struct {
// contains filtered or unexported fields
}
func (*GithubService) List ¶
func (g *GithubService) List(ctx context.Context) ([]*PullRequest, error)
type PullRequest ¶
type PullRequest struct { // Number is a number that will be the ID of the pull request. Number int // Branch is the name of the branch from which the pull request originated. Branch string // TargetBranch is the name of the target branch of the pull request. TargetBranch string // HeadSHA is the SHA of the HEAD from which the pull request originated. HeadSHA string // Labels of the pull request. Labels []string }
func ListPullRequests ¶
func ListPullRequests(ctx context.Context, provider PullRequestService, filters []argoprojiov1alpha1.PullRequestGeneratorFilter) ([]*PullRequest, error)
type PullRequestResponse ¶ added in v2.8.0
type PullRequestService ¶
type PullRequestService interface { // List gets a list of pull requests. List(ctx context.Context) ([]*PullRequest, error) }
func NewAzureDevOpsService ¶ added in v2.8.0
func NewBitbucketCloudServiceBasicAuth ¶ added in v2.8.0
func NewBitbucketCloudServiceBasicAuth(baseUrl, username, password, owner, repositorySlug string) (PullRequestService, error)
func NewBitbucketCloudServiceBearerToken ¶ added in v2.8.0
func NewBitbucketCloudServiceBearerToken(baseUrl, bearerToken, owner, repositorySlug string) (PullRequestService, error)
func NewBitbucketCloudServiceNoAuth ¶ added in v2.8.0
func NewBitbucketCloudServiceNoAuth(baseUrl, owner, repositorySlug string) (PullRequestService, error)
func NewBitbucketServiceBasicAuth ¶
func NewBitbucketServiceBasicAuth(ctx context.Context, username, password, url, projectKey, repositorySlug string) (PullRequestService, error)
func NewBitbucketServiceNoAuth ¶
func NewBitbucketServiceNoAuth(ctx context.Context, url, projectKey, repositorySlug string) (PullRequestService, error)
func NewFakeService ¶
func NewFakeService(_ context.Context, listPullReuests []*PullRequest, listError error) (PullRequestService, error)
func NewGitLabService ¶ added in v2.5.0
func NewGiteaService ¶
func NewGithubAppService ¶ added in v2.5.0
func NewGithubAppService(g github_app_auth.Authentication, url, owner, repo string, labels []string) (PullRequestService, error)
func NewGithubService ¶
Click to show internal directories.
Click to hide internal directories.