Documentation
¶
Overview ¶
Package bitbucketlink resolves a tenant's Bitbucket workspace links. It lives outside internal/cmd because both the project and the integration command trees need it, and sibling command packages must not import each other.
Index ¶
Constants ¶
const PageSize = 100
PageSize is the integration service's cap on a listing page.
Variables ¶
This section is empty.
Functions ¶
func NormalizeRepositoryUUID ¶
NormalizeRepositoryUUID validates a repository UUID and returns the canonical lowercase, unbraced form the control plane requires. Bitbucket shows repository UUIDs braced and uppercase, so the CLI accepts those forms instead of letting the server reject them after auth and link resolution.
func PickSingle ¶
PickSingle applies ResolveSingle's selection to links a caller already fetched, so one listing serves both the source inference and the link resolution in `project sync`.
func ResolveSingle ¶
ResolveSingle returns the tenant's only workspace link when the caller did not pick one with --link-id. With no link or more than one, it fails with guidance, mirroring the GitHub link resolution in `project sync`.
Types ¶
type Lister ¶
type Lister interface {
ListBitbucketWorkspaceLinks(
context.Context,
*controltowerv1.ListBitbucketWorkspaceLinksRequest,
...grpc.CallOption,
) (*controltowerv1.ListBitbucketWorkspaceLinksResponse, error)
}
Lister is the one RPC this package reads.