summaryengine

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 FormatCostDiff(diff float64) string

func FormatMonthlyCost

func FormatMonthlyCost(cost float64) string

func Truncate

func Truncate(s string, maxLen int) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL