Documentation
¶
Index ¶
- func Filter(data *format.Output, opts Options) *format.Output
- func InferProvider(resourceType string) string
- func ResourceCost(r *format.ResourceOutput) *rat.Rat
- func Run(w io.Writer, data *format.Output, opts Options) error
- func WriteBudgetDetail(w io.Writer, data *format.Output, opts Options) error
- func WriteGroupBy(w io.Writer, data *format.Output, opts Options) error
- func WriteGuardrailDetail(w io.Writer, data *format.Output, opts Options) error
- func WritePolicyDetail(w io.Writer, data *format.Output, opts Options) error
- func WriteSummary(w io.Writer, data *format.Output, asJSON bool) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferProvider ¶
InferProvider returns the cloud provider from a resource type prefix.
func ResourceCost ¶
func ResourceCost(r *format.ResourceOutput) *rat.Rat
func WriteBudgetDetail ¶ added in v0.0.12
func WriteGuardrailDetail ¶ added in v0.0.12
func WritePolicyDetail ¶
Types ¶
type Options ¶
type Options struct {
Summary bool
GroupBy []string // type, provider, project, policy, budget, guardrail
Policy string // filter to a specific policy name/slug
Budget string // filter to a specific budget name/id
Guardrail string // filter to a specific guardrail name/id
Resource string // filter to a specific resource address
Provider string
Project string
CostsOnly bool
Failing bool
Top int
JSON bool
}
Click to show internal directories.
Click to hide internal directories.