infra

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFilterFlags

func AddFilterFlags(flagSet *flag.FlagSet, commandFlags map[string]interface{})

func AddResourceTableFlags

func AddResourceTableFlags(flagSet *flag.FlagSet, commandFlags map[string]interface{})

func BackupResource added in v0.11.0

func BackupResource(resource *types.InfraResource, safe *bool, wait *bool) error

func GetCostsAndUsages

func GetCostsAndUsages(filter *types.CostAndUsageFilter) (map[string]*types.CostAndUsageOutput, error)

func GetFiltersFromCommandFlags

func GetFiltersFromCommandFlags(commandFlags map[string]interface{}) (*types.InfraFilter, error)

func GetResources

func GetResources(filter *types.InfraFilter) ([]*types.InfraResource, error)

func GetTagKeys

func GetTagKeys(resource *types.InfraResource) []string

func UpdateResourceState added in v0.11.0

func UpdateResourceState(resource *types.InfraResource, safe *bool, wait *bool, state *types.InfraResourceState) error

func UpdateResourceTag

func UpdateResourceTag(resource *types.InfraResource, tagKey *string, tagValue *string) error

func ValidateFilterTags added in v0.13.0

func ValidateFilterTags(commandFlags map[string]interface{}) error

Types

type ResourceTable

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

ResourceTable is responsible for rendering cloud resources in a table

func (*ResourceTable) Init

func (rt *ResourceTable) Init(commandFlags map[string]interface{}) error

func (*ResourceTable) Render

func (rt *ResourceTable) Render(headers map[string]bool, rows []map[string]string) (string, error)

func (*ResourceTable) RenderCostSpikes

func (rt *ResourceTable) RenderCostSpikes(costSpikes []*types.CostSpikeOutput) (string, error)

func (*ResourceTable) RenderResources

func (rt *ResourceTable) RenderResources(allResources []*types.InfraResource) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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