Documentation ¶
Index ¶
- func FetchAccountsMap(profileName string) (map[string]string, error)
- func GetConfigForProfile(profile string) (aws.Config, error)
- func NewNewQuery(_profile string, _start string, _end string, _granularity string, ...)
- func NewQuery(_profile string, _start string, _end string, _granularity string, ...)
- func QueryCostWithQuery(query Query, out Output)
- type ArrayOutput
- type CSVOutput
- type CustomFormatter
- type FormattedResult
- type Formatter
- type Output
- type Query
- type ReplaceAccountAliasFormatter
- type Result
- type SimpleFormatter
- type StandardOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNewQuery ¶
func QueryCostWithQuery ¶
Types ¶
type ArrayOutput ¶
type ArrayOutput struct {
Array *[][]string
}
func NewArrayOutput ¶
func NewArrayOutput(a *[][]string) ArrayOutput
func (ArrayOutput) DisplayResult ¶
func (a ArrayOutput) DisplayResult(res FormattedResult)
type CSVOutput ¶
type CSVOutput struct {
// contains filtered or unexported fields
}
func NewCSVOutput ¶
func (CSVOutput) DisplayResult ¶
func (s CSVOutput) DisplayResult(res FormattedResult)
type CustomFormatter ¶
type CustomFormatter struct{}
func (CustomFormatter) Format ¶
func (s CustomFormatter) Format(res Result) FormattedResult
type FormattedResult ¶
type Formatter ¶
type Formatter interface {
Format(res Result) FormattedResult
}
type Output ¶
type Output interface {
DisplayResult(res FormattedResult)
}
type ReplaceAccountAliasFormatter ¶
type ReplaceAccountAliasFormatter struct{}
*
func (ReplaceAccountAliasFormatter) Format ¶
func (s ReplaceAccountAliasFormatter) Format(res Result) FormattedResult
type Result ¶
type Result struct { Output *costexplorer.GetCostAndUsageOutput Query Query }
type SimpleFormatter ¶
type SimpleFormatter struct{}
func (SimpleFormatter) Format ¶
func (s SimpleFormatter) Format(res Result) FormattedResult
type StandardOutput ¶
type StandardOutput struct{}
func (StandardOutput) DisplayResult ¶
func (s StandardOutput) DisplayResult(res FormattedResult)
Click to show internal directories.
Click to hide internal directories.