Documentation ¶
Index ¶
- func BuildOutputFilePath(dir string, fileName string) string
- func ConvertServiceMapToArray(s map[int]types2.Service, granularity string) [][]string
- func ConvertServiceToSlice(s types2.Service, granularity string) [][]string
- func ConvertToChartInputType(r types2.CostAndUsageOutputType, s []types2.Service) types2.InputType
- func ConvertToFloat(amount string) float64
- func ConvertToForecastStdoutType(r types2.ForecastPrintData, filteredBy string) types2.ForecastStdoutType
- func ConvertToPineconeStruct(items []*types2.VectorStoreItem) []pinecone.PineconeStruct
- func ConvertToStdoutType(s []types2.Service, granularity string) types2.CostAndUsageStdoutType
- func CurateCostAndUsageReport(d *costexplorer.GetCostAndUsageOutput, query types2.CostAndUsageRequestType) types2.CostAndUsageOutputType
- func DayOfCurrentMonth(time time.Time) int
- func DefaultEndDate(f func(date time.Time) string) string
- func DefaultStartDate(dayOfCurrentMonth func(time time.Time) int, ...) string
- func EncodeString(s string) string
- func Format(date time.Time) string
- func LastDayOfMonth() string
- func MaxSupportedRows(rows [][]string, maxRows int) int
- func MetricsToService(m map[string]types.MetricValue) []types2.Metrics
- func NewFile(dir string, file string) (*os.File, error)
- func ResultsToServicesMap(res []types.ResultByTime) map[int]types2.Service
- func ReturnIfPresent(s []string) string
- func SortByFn(sortByDate bool) string
- func SortFunction(sortBy string) func(r map[int]types2.Service) []types2.Service
- func SortServicesByMetricAmount(r map[int]types2.Service) []types2.Service
- func SortServicesByStartDate(r map[int]types2.Service) []types2.Service
- func SplitCommaSeparatedString(value string) []string
- func SplitNameValuePair(value string) ([]string, error)
- func SubtractDays(today time.Time, days int) string
- func ToCostAndUsageOutputType(r *costexplorer.GetCostAndUsageOutput, u types2.CostAndUsageRequestType) types2.CostAndUsageOutputType
- func ToPrintWriterType(s string) types2.PrintWriterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOutputFilePath ¶
func ConvertServiceToSlice ¶
func ConvertToChartInputType ¶
func ConvertToFloat ¶
func ConvertToForecastStdoutType ¶
func ConvertToForecastStdoutType(r types2.ForecastPrintData, filteredBy string) types2.ForecastStdoutType
func ConvertToPineconeStruct ¶
func ConvertToPineconeStruct(items []*types2.VectorStoreItem) []pinecone.PineconeStruct
func ConvertToStdoutType ¶
func ConvertToStdoutType(s []types2.Service, granularity string) types2.CostAndUsageStdoutType
func CurateCostAndUsageReport ¶
func CurateCostAndUsageReport( d *costexplorer.GetCostAndUsageOutput, query types2.CostAndUsageRequestType) types2.CostAndUsageOutputType
func DayOfCurrentMonth ¶
func DefaultStartDate ¶
func EncodeString ¶
func LastDayOfMonth ¶
func LastDayOfMonth() string
func MaxSupportedRows ¶
func MetricsToService ¶
func MetricsToService(m map[string]types.MetricValue) []types2.Metrics
func ResultsToServicesMap ¶
func ResultsToServicesMap(res []types.ResultByTime) map[int]types2.Service
func ReturnIfPresent ¶
func SortFunction ¶
func SortServicesByStartDate ¶
func SplitNameValuePair ¶
func ToCostAndUsageOutputType ¶
func ToCostAndUsageOutputType(r *costexplorer.GetCostAndUsageOutput, u types2.CostAndUsageRequestType) types2.CostAndUsageOutputType
func ToPrintWriterType ¶
func ToPrintWriterType(s string) types2.PrintWriterType
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.