Documentation ¶
Index ¶
- func ImpactedSourcesMapToGroupMapping(impactedSources map[string]digger_config.ProjectToSourceMapping, ...) map[string][]ProjectNameSourceDetail
- type CiReporter
- type CiReporterLazy
- func (lazyReporter *CiReporterLazy) Flush() (string, string, error)
- func (lazyReporter *CiReporterLazy) Report(report string, reportFormatting func(report string) string) (string, string, error)
- func (lazyReporter *CiReporterLazy) SupportsMarkdown() bool
- func (lazyReporter *CiReporterLazy) Suppress() error
- type CommentPerRunStrategy
- type LatestRunCommentStrategy
- type MockReporter
- type MultipleCommentsStrategy
- type NoopReporter
- type ProjectNameSourceDetail
- type ReportStrategy
- type Reporter
- type SourceDetails
- type SourceGroupingReporter
- type StdOutReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImpactedSourcesMapToGroupMapping ¶
func ImpactedSourcesMapToGroupMapping(impactedSources map[string]digger_config.ProjectToSourceMapping, jobMapping map[string]scheduler.SerializedJob, jobSpecMapping map[string]orchestrator.JobJson, footprintsMap map[string]terraform_utils.TerraformPlanFootprint) map[string][]ProjectNameSourceDetail
returns a map inverting locations
Types ¶
type CiReporter ¶
type CiReporter struct { CiService orchestrator.PullRequestService PrNumber int IsSupportMarkdown bool ReportStrategy ReportStrategy }
func (*CiReporter) SupportsMarkdown ¶
func (ciReporter *CiReporter) SupportsMarkdown() bool
func (*CiReporter) Suppress ¶
func (ciReporter *CiReporter) Suppress() error
type CiReporterLazy ¶
type CiReporterLazy struct { CiReporter CiReporter // contains filtered or unexported fields }
func NewCiReporterLazy ¶
func NewCiReporterLazy(ciReporter CiReporter) *CiReporterLazy
func (*CiReporterLazy) SupportsMarkdown ¶
func (lazyReporter *CiReporterLazy) SupportsMarkdown() bool
func (*CiReporterLazy) Suppress ¶
func (lazyReporter *CiReporterLazy) Suppress() error
type CommentPerRunStrategy ¶
func (CommentPerRunStrategy) Report ¶
func (strategy CommentPerRunStrategy) Report(ciService orchestrator.PullRequestService, PrNumber int, report string, reportFormatter func(report string) string, supportsCollapsibleComment bool) (string, string, error)
type LatestRunCommentStrategy ¶
func (*LatestRunCommentStrategy) Report ¶
func (strategy *LatestRunCommentStrategy) Report(ciService orchestrator.PullRequestService, PrNumber int, report string, reportFormatter func(report string) string, supportsCollapsibleComment bool) (string, string, error)
type MockReporter ¶
type MockReporter struct {
// contains filtered or unexported fields
}
func (*MockReporter) SupportsMarkdown ¶
func (mockReporter *MockReporter) SupportsMarkdown() bool
func (*MockReporter) Suppress ¶
func (mockReporter *MockReporter) Suppress() error
type MultipleCommentsStrategy ¶
type MultipleCommentsStrategy struct{}
func (*MultipleCommentsStrategy) Report ¶
func (strategy *MultipleCommentsStrategy) Report(ciService orchestrator.PullRequestService, PrNumber int, report string, reportFormatter func(report string) string, supportsCollapsibleComment bool) (string, string, error)
type NoopReporter ¶
type NoopReporter struct{}
func (NoopReporter) SupportsMarkdown ¶
func (reporter NoopReporter) SupportsMarkdown() bool
func (NoopReporter) Suppress ¶
func (reporter NoopReporter) Suppress() error
type ProjectNameSourceDetail ¶
type ProjectNameSourceDetail struct { ProjectName string Source string Job scheduler.SerializedJob JobSpec orchestrator.JobJson PlanFootPrint terraform_utils.TerraformPlanFootprint }
type ReportStrategy ¶
type ReportStrategy interface {
Report(ciService orchestrator.PullRequestService, PrNumber int, report string, reportFormatter func(report string) string, supportsCollapsibleComment bool) (commentId string, commentUrl string, error error)
}
type SourceDetails ¶
type SourceDetails struct { SourceLocation string `json:"source_location"` CommentId string `json:"comment_id"` Projects []string `json:"projects"` }
func PostInitialSourceComments ¶
func PostInitialSourceComments(ghService *dg_github.GithubService, prNumber int, impactedProjectsSourceMapping map[string]dg_configuration.ProjectToSourceMapping) ([]SourceDetails, error)
type SourceGroupingReporter ¶
type SourceGroupingReporter struct { Jobs []scheduler.SerializedJob PrNumber int PrService orchestrator.PullRequestService }
func (SourceGroupingReporter) UpdateComment ¶
func (r SourceGroupingReporter) UpdateComment(sourceDetails []SourceDetails, location string, terraformOutputs map[string]string) error
type StdOutReporter ¶
type StdOutReporter struct{}
func (*StdOutReporter) SupportsMarkdown ¶
func (reporter *StdOutReporter) SupportsMarkdown() bool
func (*StdOutReporter) Suppress ¶
func (reporter *StdOutReporter) Suppress() error
Click to show internal directories.
Click to hide internal directories.