cloud

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddResourceTableFlags added in v0.6.0

func AddResourceTableFlags(flagSet *flag.FlagSet) (*flags.StringArray, *bool, *bool, *string, *string, *bool, *string)

func GetTagKeys

func GetTagKeys(resource *Resource) []string

func UpdateResourceTag added in v0.3.0

func UpdateResourceTag(region *string, resource *Resource, tagKey *string, tagValue *string) error

Types

type AWS

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

type Filter

type Filter struct {
	Providers     []string
	ResourceTypes []string
	Regions       []string
	Tags          map[string]string
}

func GetFiltersFromCommandFlags

func GetFiltersFromCommandFlags(providerFlag *flags.StringArray, regionFlag *flags.StringArray, typeFlag *flags.StringArray, tagFlag *flags.StringArray) *Filter

type Provider

type Provider interface {
	// contains filtered or unexported methods
}

type Resource

type Resource struct {
	Provider     string
	ID           string
	Location     string
	ResourceType string
	LaunchTime   time.Time
	Tags         map[string]string
	Properties   map[string]string
	Data         map[string]string
}

func GetAllCloudResources

func GetAllCloudResources(filter *Filter, quiet bool) ([]*Resource, error)

type ResourceTable added in v0.6.0

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

ResourceTable is responsible for rendering cloud resources in a table

func (*ResourceTable) Init added in v0.6.0

func (rt *ResourceTable) Init(
	showFlag *flags.StringArray,
	hideHeadersFlag *bool,
	csvFlag *bool,
	fieldSeparatorFlag *string,
	resourceSeparatorFlag *string,
	listFieldsFlag *bool,
	defaultFieldValueFlag *string)

func (*ResourceTable) Render added in v0.6.0

func (rt *ResourceTable) Render(allResources []*Resource) (string, error)

Jump to

Keyboard shortcuts

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