Documentation ¶
Index ¶
- type Error
- type Export
- 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) 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) ListWebhooks(ctx context.Context, repoSlug string, options types.ListOptions) (types.WebhookData, error)
- func (e *Export) PullRequestRefs() []config.RefSpec
- func (e *Export) PullRequestReviewers(context.Context, int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Message string `json:"message"` Status int `json:"status-code"` Errors []struct { Message string `json:"message"` ExceptionName string `json:"exceptionName"` CurrentVersion int `json:"currentVersion"` ExpectedVersion int `json:"expectedVersion"` } `json:"errors"` }
Error represents a Stash error.
type Export ¶
type Export struct {
// contains filtered or unexported fields
}
func New ¶
func New( client *scm.Client, project string, repo string, checkpointer *checkpoint.CheckpointManager, logger *gitexporter.FileLogger, tracer tracer.Tracer, reporter map[string]*report.Report, ) *Export
func (*Export) ListBranchRules ¶
func (e *Export) ListBranchRules( ctx context.Context, repoSlug string, opts types.ListOptions, ) ([]*types.BranchRule, error)
func (*Export) ListBranchRulesInternal ¶
func (*Export) ListLabels ¶ added in v0.24.0
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) 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) 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.