Documentation
¶
Index ¶
- type BitbucketService
- func (b *BitbucketService) GetRepository(ctx context.Context, owner, repo string, settings krci.GitServerSettings) (*models.Repository, error)
- func (b *BitbucketService) ListBranches(ctx context.Context, owner, repo string, settings krci.GitServerSettings, ...) ([]models.Branch, error)
- func (b *BitbucketService) ListPullRequests(ctx context.Context, owner, repo string, settings krci.GitServerSettings, ...) (*models.PullRequestsResponse, error)
- func (b *BitbucketService) ListRepositories(ctx context.Context, account string, settings krci.GitServerSettings, ...) ([]models.Repository, error)
- func (b *BitbucketService) ListUserOrganizations(_ context.Context, settings krci.GitServerSettings) ([]models.Organization, 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 NewBitbucketProvider ¶
func NewBitbucketProvider() *BitbucketService
func (*BitbucketService) GetRepository ¶
func (b *BitbucketService) GetRepository( ctx context.Context, owner, repo string, settings krci.GitServerSettings, ) (*models.Repository, error)
func (*BitbucketService) ListBranches ¶
func (b *BitbucketService) ListBranches( ctx context.Context, owner, repo string, settings krci.GitServerSettings, _ models.ListOptions, ) ([]models.Branch, error)
ListBranches implements BranchesProvider for BitbucketService.
func (*BitbucketService) ListPullRequests ¶ added in v0.2.0
func (b *BitbucketService) ListPullRequests( ctx context.Context, owner, repo string, settings krci.GitServerSettings, opts models.PullRequestListOptions, ) (*models.PullRequestsResponse, error)
ListPullRequests returns pull requests for the given repository using the Bitbucket REST API. Direct HTTP (via go-resty) is used instead of go-bitbucket's PullRequests.Gets() because the library auto-paginates all pages into memory and lacks page/perPage control.
func (*BitbucketService) ListRepositories ¶
func (b *BitbucketService) ListRepositories( ctx context.Context, account string, settings krci.GitServerSettings, listOptions models.ListOptions, ) ([]models.Repository, error)
func (*BitbucketService) ListUserOrganizations ¶
func (b *BitbucketService) ListUserOrganizations( _ context.Context, settings krci.GitServerSettings, ) ([]models.Organization, error)
ListUserOrganizations returns workspaces for the authenticated user using go-bitbucket client
Click to show internal directories.
Click to hide internal directories.