Documentation
¶
Index ¶
- Constants
- func BuildSummarySections(plans []ci.PlanResult, reports []*ci.Report) []ci.ReportSection
- func BuildSummarySectionsWithOptions(plans []ci.PlanResult, reports []*ci.Report, includeDetails bool) []ci.ReportSection
- func ComposeComment(plans []ci.PlanResult, reports []*ci.Report, commitSHA, pipelineID string, ...) string
- func ComposeCommentWithOptions(plans []ci.PlanResult, reports []*ci.Report, commitSHA, pipelineID string, ...) string
- func FormatCostDiff(diff float64) string
- func FormatMonthlyCost(cost float64) string
- func Truncate(s string, maxLen int) string
- type Config
Constants ¶
View Source
const CommentMarker = ci.CommentMarker
CommentMarker is used to identify terraci comments for updates
Variables ¶
This section is empty.
Functions ¶
func BuildSummarySections ¶ added in v0.10.0
func BuildSummarySections(plans []ci.PlanResult, reports []*ci.Report) []ci.ReportSection
BuildSummarySections builds the filtered summary view from plan results and typed plugin reports.
func BuildSummarySectionsWithOptions ¶ added in v0.10.0
func BuildSummarySectionsWithOptions(plans []ci.PlanResult, reports []*ci.Report, includeDetails bool) []ci.ReportSection
BuildSummarySectionsWithOptions builds the filtered summary view with explicit rendering options.
func ComposeComment ¶ added in v0.7.4
func ComposeComment(plans []ci.PlanResult, reports []*ci.Report, commitSHA, pipelineID string, generatedAt time.Time) string
ComposeComment builds the final markdown comment from plans and typed plugin reports.
func ComposeCommentWithOptions ¶ added in v0.10.0
func ComposeCommentWithOptions(plans []ci.PlanResult, reports []*ci.Report, commitSHA, pipelineID string, generatedAt time.Time, includeDetails bool) string
ComposeCommentWithOptions builds the final markdown comment with explicit rendering options.
func FormatCostDiff ¶
func FormatMonthlyCost ¶
Types ¶
type Config ¶ added in v0.7.5
type Config struct {
Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
OnChangesOnly bool `yaml:"on_changes_only,omitempty" json:"on_changes_only,omitempty"`
IncludeDetails *bool `yaml:"include_details,omitempty" json:"include_details,omitempty"`
Labels []string `yaml:"labels,omitempty" json:"labels,omitempty"`
}
Config holds summary plugin settings.
Click to show internal directories.
Click to hide internal directories.