bitbucket

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) ListPipelines added in v0.3.0

ListPipelines returns pipelines for a Bitbucket repository using the REST API.

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(
	ctx context.Context,
	settings krci.GitServerSettings,
) ([]models.Organization, error)

ListUserOrganizations returns workspaces for the authenticated user using a direct HTTP call to the Bitbucket REST API.

Why direct HTTP instead of go-bitbucket client.Workspaces.List():

func (*BitbucketService) TriggerPipeline added in v0.3.0

TriggerPipeline is not supported for Bitbucket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL