inspect

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(data *format.Output, opts Options) *format.Output

Filter returns a new Output with resources filtered according to opts.

func InferProvider

func InferProvider(resourceType string) string

InferProvider returns the cloud provider from a resource type prefix.

func ResourceCost

func ResourceCost(r *format.ResourceOutput) *rat.Rat

func Run

func Run(w io.Writer, data *format.Output, opts Options) error

func WriteGroupBy

func WriteGroupBy(w io.Writer, data *format.Output, opts Options) error

func WritePolicyDetail

func WritePolicyDetail(w io.Writer, data *format.Output, opts Options) error

func WriteSummary

func WriteSummary(w io.Writer, data *format.Output, asJSON bool) error

Types

type Options

type Options struct {
	Summary   bool
	GroupBy   []string // type, provider, project, policy
	Policy    string   // filter to a specific policy name/slug
	Resource  string   // filter to a specific resource address
	Provider  string
	Project   string
	CostsOnly bool
	Failing   bool
	Top       int
	JSON      bool
}

Jump to

Keyboard shortcuts

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