bitbucketcloud

package
v20.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 14 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

Overview

Package bitbucketcloud provides the forge connector for BitBucket.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(remoteURL giturl.Parts) bool

Detect indicates whether the current repository is hosted on a Bitbucket server.

Types

type Connector

type Connector struct {
	forgedomain.Data
	// contains filtered or unexported fields
}

Connector provides access to the API of Bitbucket installations.

func NewConnector

func NewConnector(args NewConnectorArgs) Connector

NewConnector provides a Bitbucket connector instance if the current repo is hosted on Bitbucket, otherwise nil.

func (Connector) DefaultProposalMessage

func (self Connector) DefaultProposalMessage(data forgedomain.ProposalData) string

func (Connector) FindProposalFn

func (self Connector) FindProposalFn() Option[func(branch, target gitdomain.LocalBranchName) (Option[forgedomain.Proposal], error)]

func (Connector) NewProposalURL

func (self Connector) NewProposalURL(branch, parentBranch, _ gitdomain.LocalBranchName, _ gitdomain.ProposalTitle, _ gitdomain.ProposalBody) (string, error)

func (Connector) RepositoryURL

func (self Connector) RepositoryURL() string

func (Connector) SearchProposalFn

func (self Connector) SearchProposalFn() Option[func(gitdomain.LocalBranchName) (Option[forgedomain.Proposal], error)]

func (Connector) SquashMergeProposalFn

func (self Connector) SquashMergeProposalFn() Option[func(int, gitdomain.CommitMessage) error]

func (Connector) UpdateProposalSourceFn

func (self Connector) UpdateProposalSourceFn() Option[func(forgedomain.ProposalInterface, gitdomain.LocalBranchName, stringslice.Collector) error]

func (Connector) UpdateProposalTargetFn

func (self Connector) UpdateProposalTargetFn() Option[func(forgedomain.ProposalInterface, gitdomain.LocalBranchName, stringslice.Collector) error]

type NewConnectorArgs

type NewConnectorArgs struct {
	AppPassword Option[configdomain.BitbucketAppPassword]
	ForgeType   Option[forgedomain.ForgeType]
	Log         print.Logger
	RemoteURL   giturl.Parts
	UserName    Option[configdomain.BitbucketUsername]
}

Jump to

Keyboard shortcuts

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