Documentation
¶
Overview ¶
Package bitbucket provides automatic migration tools from Bitbucket Cloud to Harness.
Index ¶
- Constants
- type Error
- type Export
- func (e *Export) GetDefaultEmail(ctx context.Context, accID, displayName string) (string, error)
- func (e *Export) GetLFSEnabledSettings(ctx context.Context, repoSlug string) (bool, error)
- func (e *Export) ListBranchRules(ctx context.Context, repoSlug string, opts types.ListOptions) ([]*types.BranchRule, error)
- func (e *Export) ListBranchRulesInternal(ctx context.Context, repoSlug string, opts types.ListOptions) ([]*types.BranchRule, *scm.Response, error)
- func (e *Export) ListLabels(ctx context.Context, repoSlug string, opts types.ListOptions) (map[string]externalTypes.Label, error)
- func (e *Export) ListPRComments(ctx context.Context, repoSlug string, prNumber int, opts types.ListOptions) ([]*types.PRComment, *scm.Response, error)
- func (e *Export) ListPullRequestComments(ctx context.Context, repoSlug string, prNumber int, opts types.ListOptions) ([]*types.PRComment, error)
- func (e *Export) ListPullRequestReviews(ctx context.Context, repoSlug string, prNumber int, opts types.ListOptions) ([]*types.PRReview, error)
- func (e *Export) ListPullRequests(ctx context.Context, repoSlug string, params types.PullRequestListOptions) ([]types.PRResponse, error)
- func (e *Export) ListRepositories(ctx context.Context, params types.ListOptions) ([]types.RepoResponse, error)
- func (e *Export) ListRequestedReviewers(ctx context.Context, repoSlug string, prNumber int) ([]*types.PRReviewer, error)
- func (e *Export) ListWebhooks(ctx context.Context, repoSlug string, options types.ListOptions) (types.WebhookData, error)
- func (e *Export) PullRequestRefs() []config.RefSpec
Constants ¶
View Source
const ( KindPush = "push" KindForce = "force" KindDelete = "delete" KindRestrictMerges = "restrict_merges" KindRequireTasksToBeCompleted = "require_tasks_to_be_completed" KindRequireApprovalsToMerge = "require_approvals_to_merge" KindRequireDefaultReviewerApprovals = "require_default_reviewer_approvals_to_merge" KindRequireNoChangesRequested = "require_no_changes_requested" KindRequireCommitsBehind = "require_commits_behind" KindResetPullRequestApprovalsOnChange = "reset_pullrequest_approvals_on_change" KindSmartResetPullRequestApprovals = "smart_reset_pullrequest_approvals" KindResetPullRequestChangesRequested = "reset_pullrequest_changes_requested_on_change" KindEnforceMergeChecks = "enforce_merge_checks" KindRequirePassingBuildsToMerge = "require_passing_builds_to_merge" KindAllowAutoMergeWhenBuildsPass = "allow_auto_merge_when_builds_pass" )
View Source
const CheckpointKeyUsers = "users"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Export ¶
type Export struct {
// contains filtered or unexported fields
}
func New ¶
func New( client *scm.Client, workspace string, repository string, checkpointer *checkpoint.CheckpointManager, logger *gitexporter.FileLogger, tracer tracer.Tracer, report map[string]*report.Report, ) *Export
func (*Export) GetDefaultEmail ¶ added in v0.40.0
Bitbucket in accordance with GPDR does not provide PII for users https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/
func (*Export) GetLFSEnabledSettings ¶ added in v0.40.0
func (*Export) ListBranchRules ¶
func (e *Export) ListBranchRules( ctx context.Context, repoSlug string, opts types.ListOptions, ) ([]*types.BranchRule, error)
func (*Export) ListBranchRulesInternal ¶
func (*Export) ListLabels ¶
func (e *Export) ListLabels( ctx context.Context, repoSlug string, opts types.ListOptions, ) (map[string]externalTypes.Label, error)
func (*Export) ListPRComments ¶
func (*Export) ListPullRequestComments ¶
func (*Export) ListPullRequestReviews ¶ added in v0.43.1
func (*Export) ListPullRequests ¶
func (e *Export) ListPullRequests( ctx context.Context, repoSlug string, params types.PullRequestListOptions, ) ([]types.PRResponse, error)
func (*Export) ListRepositories ¶
func (e *Export) ListRepositories( ctx context.Context, params types.ListOptions, ) ([]types.RepoResponse, error)
func (*Export) ListRequestedReviewers ¶ added in v0.43.1
func (*Export) ListWebhooks ¶
func (e *Export) ListWebhooks( ctx context.Context, repoSlug string, options types.ListOptions, ) (types.WebhookData, error)
func (*Export) PullRequestRefs ¶
Click to show internal directories.
Click to hide internal directories.