bitbucket

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

NewBitbucketProvider returns a service shared by all git servers. Keep the HTTP client without a cookie jar: cookies must not cross credentials.

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