Documentation ¶
Index ¶
- type BitbucketService
- type FakeService
- type Filter
- type GiteaService
- type GithubService
- type PullRequest
- type PullRequestService
- 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 NewGiteaService(ctx context.Context, token, url, owner, repo string, insecure bool) (PullRequestService, error)
- func NewGithubService(ctx context.Context, token, url, owner, repo string, labels []string) (PullRequestService, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 // HeadSHA is the SHA of the HEAD from which the pull request originated. HeadSHA string }
func ListPullRequests ¶
func ListPullRequests(ctx context.Context, provider PullRequestService, filters []argoprojiov1alpha1.PullRequestGeneratorFilter) ([]*PullRequest, error)
type PullRequestService ¶
type PullRequestService interface { // List gets a list of pull requests. List(ctx context.Context) ([]*PullRequest, 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 NewGiteaService ¶
func NewGithubService ¶
Click to show internal directories.
Click to hide internal directories.