cli

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CostAndUsageExamples = `` /* 2212-byte string literal not displayed */

	ForecastExamples = `` /* 412-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func CostAndForecast

func CostAndForecast() *cobra.Command

func HasAccountInformation

func HasAccountInformation(groupBy []string) bool

func Initialize

func Initialize()

func IsValidGranularity

func IsValidGranularity(g string) bool

func IsValidMetric

func IsValidMetric(m string) bool

func IsValidPrintFormat

func IsValidPrintFormat(f string) bool

func PresetList

func PresetList() []types.PresetParams

func RootCommand

func RootCommand() *cobra.Command

func ValidateEndDate

func ValidateEndDate(endDate, startDate string) error

func ValidateInput

func ValidateInput(input types.CommandLineInput) error

func ValidateStartDate

func ValidateStartDate(startDate string) error

Types

type CostCommandType

type CostCommandType struct {
	Cmd *cobra.Command
}

func (*CostCommandType) DefineFlags

func (c *CostCommandType) DefineFlags()

func (*CostCommandType) Execute

func (*CostCommandType) ExtractFilterBySelection

func (c *CostCommandType) ExtractFilterBySelection() (types.FilterBySelections, error)

func (*CostCommandType) ExtractGroupBySelections

func (c *CostCommandType) ExtractGroupBySelections() ([]string, []string)

func (*CostCommandType) ExtractPrintPreferences

func (c *CostCommandType) ExtractPrintPreferences() types.PrintOptions

func (*CostCommandType) ExtractStartAndEndDates

func (c *CostCommandType) ExtractStartAndEndDates() (
	string, string, error)

func (*CostCommandType) InputHandler

func (c *CostCommandType) InputHandler(validatorFn func(input types.CommandLineInput) error) (types.CommandLineInput, error)

func (*CostCommandType) RunE

func (c *CostCommandType) RunE(cmd *cobra.Command,
	args []string) error

func (*CostCommandType) SynthesizeRequest

type ForecastCommandType

type ForecastCommandType struct {
	Cmd *cobra.Command
}

func (*ForecastCommandType) DefineFlags

func (f *ForecastCommandType) DefineFlags()

func (*ForecastCommandType) Execute

func (*ForecastCommandType) InputHandler

func (*ForecastCommandType) RunE

func (f *ForecastCommandType) RunE(cmd *cobra.Command, args []string) error

func (*ForecastCommandType) SynthesizeRequest

type ValidationError

type ValidationError struct {
	Message string
}

func (ValidationError) Error

func (e ValidationError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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