bitbucket

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 6 Imported by: ? 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

func CreateRepository

func CreateRepository(repoSha, repository, mirrorVisibilityMode, sourceURL, projectName string) *bitbucket.Repository

CreateRepository - create bitbucket repository (package function for backward compatibility)

func FetchOwnerRepos

func FetchOwnerRepos(repoSha, owner, bitbucketRole string) []bitbucket.Repository

FetchOwnerRepos - fetch owner repositories via API (package function for backward compatibility)

func GenerateProjectKey

func GenerateProjectKey(projectName string) string

GenerateProjectKey - convert project name to project key

func ProjectExists

func ProjectExists(git *bitbucket.Client, repoSha, workspace, project string) bool

ProjectExists - checks if bitbucket project exists

func RepositoryExists

func RepositoryExists(repoSha, owner, repository string) bool

RepositoryExists - checks if bitbucket repository exists (package function for backward compatibility)

Types

type GitGetBitbucket added in v0.0.32

type GitGetBitbucket struct {
	// contains filtered or unexported fields
}

func (*GitGetBitbucket) CreateRepository added in v0.0.32

func (gitProvider *GitGetBitbucket) CreateRepository(repoSha, repository, mirrorVisibilityMode, sourceURL, projectName string) *bitbucket.Repository

CreateRepository - create bitbucket repository (method)

func (*GitGetBitbucket) FetchOwnerRepos added in v0.0.32

func (gitProvider *GitGetBitbucket) FetchOwnerRepos(repoSha, owner, bitbucketRole string) []bitbucket.Repository

FetchOwnerRepos - fetch owner repositories via API (method)

func (*GitGetBitbucket) Init added in v0.0.32

func (gitProvider *GitGetBitbucket) Init() bool

func (*GitGetBitbucket) RepositoryExists added in v0.0.32

func (gitProvider *GitGetBitbucket) RepositoryExists(repoSha, owner, repository string) bool

RepositoryExists - checks if bitbucket repository exists (method)

type GitGetBitbucketI added in v0.0.32

type GitGetBitbucketI interface {
	Init() bool
	RepositoryExists(repoSha, owner, repository string) bool
	CreateRepository(repoSha, repository, mirrorVisibilityMode, sourceURL, projectName string) *bitbucket.Repository
	FetchOwnerRepos(repoSha, owner, bitbucketRole string) []bitbucket.Repository
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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