Documentation ¶
Index ¶
- Constants
- func CostAndForecast() *cobra.Command
- func HasAccountInformation(groupBy []string) bool
- func Initialize()
- func IsValidGranularity(g string) bool
- func IsValidMetric(m string) bool
- func IsValidPrintFormat(f string) bool
- func PresetList() []types.PresetParams
- func RootCommand() *cobra.Command
- func ValidateEndDate(endDate, startDate string) error
- func ValidateInput(input types.CommandLineInput) error
- func ValidateStartDate(startDate string) error
- type CostCommandType
- func (c *CostCommandType) DefineFlags()
- func (c *CostCommandType) Execute(req types.CostAndUsageRequestType) error
- func (c *CostCommandType) ExtractFilterBySelection() (types.FilterBySelections, error)
- func (c *CostCommandType) ExtractGroupBySelections() ([]string, []string)
- func (c *CostCommandType) ExtractPrintPreferences() types.PrintOptions
- func (c *CostCommandType) ExtractStartAndEndDates() (string, string, error)
- func (c *CostCommandType) InputHandler(validatorFn func(input types.CommandLineInput) error) (types.CommandLineInput, error)
- func (c *CostCommandType) RunE(cmd *cobra.Command, args []string) error
- func (c *CostCommandType) SynthesizeRequest(input types.CommandLineInput) types.CostAndUsageRequestType
- type ForecastCommandType
- func (f *ForecastCommandType) DefineFlags()
- func (f *ForecastCommandType) Execute(r types.GetCostForecastRequest) (*costexplorer.GetCostForecastOutput, error)
- func (f *ForecastCommandType) InputHandler() types.ForecastCommandLineInput
- func (f *ForecastCommandType) RunE(cmd *cobra.Command, args []string) error
- func (f *ForecastCommandType) SynthesizeRequest(input types.ForecastCommandLineInput) (types.GetCostForecastRequest, error)
- type ValidationError
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 HasAccountInformation ¶
func Initialize ¶
func Initialize()
func IsValidGranularity ¶
func IsValidMetric ¶
func IsValidPrintFormat ¶
func PresetList ¶
func PresetList() []types.PresetParams
func RootCommand ¶
func ValidateEndDate ¶
func ValidateInput ¶
func ValidateInput(input types.CommandLineInput) error
func ValidateStartDate ¶
Types ¶
type CostCommandType ¶
func (*CostCommandType) DefineFlags ¶
func (c *CostCommandType) DefineFlags()
func (*CostCommandType) Execute ¶
func (c *CostCommandType) Execute(req types.CostAndUsageRequestType) error
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 ¶
func (c *CostCommandType) SynthesizeRequest(input types.CommandLineInput) types.CostAndUsageRequestType
type ForecastCommandType ¶
func (*ForecastCommandType) DefineFlags ¶
func (f *ForecastCommandType) DefineFlags()
func (*ForecastCommandType) Execute ¶
func (f *ForecastCommandType) Execute(r types.GetCostForecastRequest) ( *costexplorer.GetCostForecastOutput, error)
func (*ForecastCommandType) InputHandler ¶
func (f *ForecastCommandType) InputHandler() types.ForecastCommandLineInput
func (*ForecastCommandType) RunE ¶
func (f *ForecastCommandType) RunE(cmd *cobra.Command, args []string) error
func (*ForecastCommandType) SynthesizeRequest ¶
func (f *ForecastCommandType) SynthesizeRequest(input types.ForecastCommandLineInput) (types.GetCostForecastRequest, error)
type ValidationError ¶
type ValidationError struct {
Message string
}
func (ValidationError) Error ¶
func (e ValidationError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.