Documentation ¶
Index ¶
- func AddFilterFlags(flagSet *flag.FlagSet, commandFlags map[string]interface{})
- func AddResourceTableFlags(flagSet *flag.FlagSet, commandFlags map[string]interface{})
- func BackupResource(resource *types.InfraResource, safe *bool, wait *bool) error
- func GetCostsAndUsages(filter *types.CostAndUsageFilter) (map[string]*types.CostAndUsageOutput, error)
- func GetFiltersFromCommandFlags(commandFlags map[string]interface{}) (*types.InfraFilter, error)
- func GetResources(filter *types.InfraFilter) ([]*types.InfraResource, error)
- func GetTagKeys(resource *types.InfraResource) []string
- func UpdateResourceState(resource *types.InfraResource, safe *bool, wait *bool, ...) error
- func UpdateResourceTag(resource *types.InfraResource, tagKey *string, tagValue *string) error
- func ValidateFilterTags(commandFlags map[string]interface{}) error
- type ResourceTable
- func (rt *ResourceTable) Init(commandFlags map[string]interface{}) error
- func (rt *ResourceTable) Render(headers map[string]bool, rows []map[string]string) (string, error)
- func (rt *ResourceTable) RenderCostSpikes(costSpikes []*types.CostSpikeOutput) (string, error)
- func (rt *ResourceTable) RenderResources(allResources []*types.InfraResource) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFilterFlags ¶
func AddResourceTableFlags ¶
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
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) RenderCostSpikes ¶
func (rt *ResourceTable) RenderCostSpikes(costSpikes []*types.CostSpikeOutput) (string, error)
func (*ResourceTable) RenderResources ¶
func (rt *ResourceTable) RenderResources(allResources []*types.InfraResource) (string, error)
Click to show internal directories.
Click to hide internal directories.