bbinstance

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package bbinstance provides Bitbucket Cloud instance configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticatedCloneURL

func AuthenticatedCloneURL(hostname, workspace, repoSlug, username, appPassword string) string

AuthenticatedCloneURL returns the HTTPS clone URL with credentials embedded.

func CloneURL

func CloneURL(hostname, workspace, repoSlug string) string

CloneURL returns the HTTPS clone URL for a repository.

func Default

func Default() string

Default returns the host name of Bitbucket Cloud.

func HostPrefix

func HostPrefix(hostname string) string

HostPrefix returns the web URL prefix for the given hostname.

func HostnameValidator

func HostnameValidator(hostname string) error

HostnameValidator validates a Bitbucket hostname.

func IsCloud

func IsCloud(hostname string) bool

IsCloud returns true if the hostname is Bitbucket Cloud.

func IssueURL

func IssueURL(hostname, workspace, repoSlug string, issueID int) string

IssueURL returns the URL to view an issue.

func NormalizeHostname

func NormalizeHostname(hostname string) string

NormalizeHostname normalizes the hostname to lowercase. For Bitbucket, we also strip common prefixes like "api." and "www.".

func PullRequestURL

func PullRequestURL(hostname, workspace, repoSlug string, prID int) string

PullRequestURL returns the URL to view a pull request.

func RESTPrefix

func RESTPrefix(hostname string) string

RESTPrefix returns the REST API base URL for the given hostname. For Bitbucket Cloud, this is https://api.bitbucket.org/2.0/

func RepoURL

func RepoURL(hostname, workspace, repoSlug string) string

RepoURL returns the full URL for a repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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