bitbucket

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 6 Imported by: 0

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