Documentation
¶
Index ¶
- 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 Presets() *cobra.Command
- func RootCommand() *cobra.Command
- func ValidateEndDate(endDate, startDate string) error
- func ValidateInput(input model.CommandLineInput) error
- func ValidateStartDate(startDate string) error
- type CostCommandType
- func (c *CostCommandType) DefineFlags()
- func (c *CostCommandType) Execute(req model.CostAndUsageRequestType) error
- func (c *CostCommandType) ExtractFilterBySelection() (..., error)
- func (c *CostCommandType) ExtractGroupBySelections() ([]string, []string)
- func (c *CostCommandType) ExtractPrintPreferences() ...
- func (c *CostCommandType) ExtractStartAndEndDates() (string, string, error)
- func (c *CostCommandType) InputHandler(validatorFn func(input model.CommandLineInput) error) (model.CommandLineInput, error)
- func (c *CostCommandType) RunE(cmd *cobra.Command, args []string) error
- func (c *CostCommandType) SynthesizeRequest(input model.CommandLineInput) ...
- type ForecastCommandType
- func (f *ForecastCommandType) DefineFlags()
- func (f *ForecastCommandType) Execute(r model.GetCostForecastRequest) (*costexplorer.GetCostForecastOutput, error)
- func (f *ForecastCommandType) InputHandler() model.ForecastCommandLineInput
- func (f *ForecastCommandType) RunE(cmd *cobra.Command, args []string) error
- func (f *ForecastCommandType) SynthesizeRequest(input ...) (..., error)
- type PresetCommandType
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CostAndForecast ¶
func HasAccountInformation ¶
func Initialize ¶
func Initialize()
func IsValidGranularity ¶
func IsValidMetric ¶
func IsValidPrintFormat ¶
func RootCommand ¶ added in v0.5.1
func ValidateEndDate ¶
func ValidateInput ¶
func ValidateInput(input model.CommandLineInput) error
func ValidateStartDate ¶
Types ¶
type CostCommandType ¶
func (*CostCommandType) DefineFlags ¶
func (c *CostCommandType) DefineFlags()
func (*CostCommandType) Execute ¶
func (c *CostCommandType) Execute(req model.CostAndUsageRequestType) error
func (*CostCommandType) ExtractFilterBySelection ¶
func (c *CostCommandType) ExtractFilterBySelection() (model. FilterBySelections, error)
func (*CostCommandType) ExtractGroupBySelections ¶
func (c *CostCommandType) ExtractGroupBySelections() ([]string, []string)
func (*CostCommandType) ExtractPrintPreferences ¶
func (c *CostCommandType) ExtractPrintPreferences() model. PrintOptions
func (*CostCommandType) ExtractStartAndEndDates ¶
func (c *CostCommandType) ExtractStartAndEndDates() ( string, string, error)
func (*CostCommandType) InputHandler ¶
func (c *CostCommandType) InputHandler(validatorFn func(input model.CommandLineInput) error) (model.CommandLineInput, error)
func (*CostCommandType) RunE ¶
func (c *CostCommandType) RunE(cmd *cobra.Command, args []string) error
func (*CostCommandType) SynthesizeRequest ¶
func (c *CostCommandType) SynthesizeRequest(input model.CommandLineInput) model. CostAndUsageRequestType
type ForecastCommandType ¶
func (*ForecastCommandType) DefineFlags ¶
func (f *ForecastCommandType) DefineFlags()
func (*ForecastCommandType) Execute ¶
func (f *ForecastCommandType) Execute(r model.GetCostForecastRequest) ( *costexplorer.GetCostForecastOutput, error)
func (*ForecastCommandType) InputHandler ¶
func (f *ForecastCommandType) InputHandler() model.ForecastCommandLineInput
func (*ForecastCommandType) RunE ¶
func (f *ForecastCommandType) RunE(cmd *cobra.Command, args []string) error
func (*ForecastCommandType) SynthesizeRequest ¶
func (f *ForecastCommandType) SynthesizeRequest(input model. ForecastCommandLineInput) (model. GetCostForecastRequest, error)
type PresetCommandType ¶
func (*PresetCommandType) Execute ¶
func (p *PresetCommandType) Execute(q model.CostAndUsageRequestType) error
func (*PresetCommandType) RunE ¶
func (p *PresetCommandType) RunE(cmd *cobra.Command, args []string) error
func (*PresetCommandType) SynthesizeRequest ¶
func (p *PresetCommandType) SynthesizeRequest(m model.PresetParams) (model. CostAndUsageRequestType, error)
type ValidationError ¶
type ValidationError struct {
Message string
}
func (ValidationError) Error ¶
func (e ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.