Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReportTypeWebhooks = "webhook" ReportTypePRs = "pull requests" ReportTypeBranchRules = "branch rules" ReportTypeLabels = "labels" ReportTypeUsers = "users" )
View Source
const (
UnknownEmailSuffix = "@unknownemail.harness.io"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct { ScmLogin string ScmToken string Tracer tracer.Tracer Report map[string]*report.Report // contains filtered or unexported fields }
func NewExporter ¶
func (*Exporter) CloneRepository ¶
type FileLogger ¶
type FileLogger struct {
Location string
}
type Interface ¶
type Interface interface { ListRepositories(ctx context.Context, opts types.ListOptions) ([]types.RepoResponse, error) ListPullRequests(ctx context.Context, repoSlug string, opts types.PullRequestListOptions) ([]types.PRResponse, error) ListPullRequestComments(ctx context.Context, repoSlug string, prNumber int, opts types.ListOptions) ([]*types.PRComment, error) PullRequestReviewers(ctx context.Context, prNumber int) error PullRequestRefs() []config.RefSpec ListWebhooks(ctx context.Context, repoSlug string, opts types.ListOptions) (types.WebhookData, error) ListBranchRules(ctx context.Context, repoSlug string, opts types.ListOptions) ([]*types.BranchRule, error) ListLabels(ctx context.Context, repoSlug string, opts types.ListOptions) (map[string]externalTypes.Label, error) }
Interface helps to support a generic way of doing export for all git providers
Click to show internal directories.
Click to hide internal directories.