costs

package
v0.4.6-debug Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReportCostsCmd

func NewReportCostsCmd() *cobra.Command

Types

type CostReporter

type CostReporter struct {
	// contains filtered or unexported fields
}

func NewCostReporter

func NewCostReporter(reportService ReportService, markdownService markdown.Markdown, opts CostReporterOpts) *CostReporter

func (*CostReporter) Run

func (r *CostReporter) Run() error

type CostReporterOpts

type CostReporterOpts struct {
	Regions   []string
	State     *types.State
	StartDate *time.Time
	EndDate   *time.Time
}

type ReportService

type ReportService interface {
	ProcessState(state types.State) types.ProcessedState
	FilterRegionCosts(processedState types.ProcessedState, regionName string, startTime, endTime *time.Time) (*types.ProcessedRegionCosts, error)
}

Jump to

Keyboard shortcuts

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