Documentation
¶
Overview ¶
Package bbinstance provides Bitbucket Cloud instance configuration.
Index ¶
- func AuthenticatedCloneURL(hostname, workspace, repoSlug, username, appPassword string) string
- func CloneURL(hostname, workspace, repoSlug string) string
- func Default() string
- func HostPrefix(hostname string) string
- func HostnameValidator(hostname string) error
- func IsCloud(hostname string) bool
- func IssueURL(hostname, workspace, repoSlug string, issueID int) string
- func NormalizeHostname(hostname string) string
- func PullRequestURL(hostname, workspace, repoSlug string, prID int) string
- func RESTPrefix(hostname string) string
- func RepoURL(hostname, workspace, repoSlug string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedCloneURL ¶
AuthenticatedCloneURL returns the HTTPS clone URL with credentials embedded.
func HostPrefix ¶
HostPrefix returns the web URL prefix for the given hostname.
func HostnameValidator ¶
HostnameValidator validates a Bitbucket hostname.
func NormalizeHostname ¶
NormalizeHostname normalizes the hostname to lowercase. For Bitbucket, we also strip common prefixes like "api." and "www.".
func PullRequestURL ¶
PullRequestURL returns the URL to view a pull request.
func RESTPrefix ¶
RESTPrefix returns the REST API base URL for the given hostname. For Bitbucket Cloud, this is https://api.bitbucket.org/2.0/
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.