Documentation
¶
Index ¶
- func BuildOutputFilePath(dir string, fileName string) string
- func ConvertServiceMapToArray(s map[int]model.Service, granularity string) [][]string
- func ConvertServiceToSlice(s model.Service, granularity string) [][]string
- func ConvertToChartInputType(r model.CostAndUsageOutputType, s []model.Service) model.InputType
- func ConvertToFloat(amount string) float64
- func ConvertToForecastStdoutType(r model.ForecastPrintData, filteredBy string) model.ForecastStdoutType
- func ConvertToPineconeStruct(items []*model.VectorStoreItem) []...
- func ConvertToStdoutType(s []model.Service, granularity string) model.CostAndUsageStdoutType
- func CurateCostAndUsageReport(d *costexplorer.GetCostAndUsageOutput, query model.CostAndUsageRequestType) model.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) []model.Metrics
- func NewFile(dir string, file string) (*os.File, error)
- func ResultsToServicesMap(res []types.ResultByTime) map[int]model.Service
- func ReturnIfPresent(s []string) string
- func SortByFn(sortByDate bool) string
- func SortFunction(sortBy string) func(r map[int]model.Service) []model.Service
- func SortServicesByMetricAmount(r map[int]model.Service) []model.Service
- func SortServicesByStartDate(r map[int]model.Service) []model.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 model.CostAndUsageRequestType) model.CostAndUsageOutputType
- func ToPrintWriterType(s string) model.PrintWriterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOutputFilePath ¶
func ConvertServiceMapToArray ¶ added in v0.5.0
func ConvertServiceToSlice ¶ added in v0.5.0
func ConvertToChartInputType ¶ added in v0.5.0
func ConvertToFloat ¶
func ConvertToForecastStdoutType ¶ added in v0.5.0
func ConvertToForecastStdoutType(r model.ForecastPrintData, filteredBy string) model.ForecastStdoutType
func ConvertToPineconeStruct ¶ added in v0.5.0
func ConvertToPineconeStruct(items []*model.VectorStoreItem) []pinecone. PineconeStruct
func ConvertToStdoutType ¶ added in v0.5.0
func ConvertToStdoutType(s []model.Service, granularity string) model.CostAndUsageStdoutType
func CurateCostAndUsageReport ¶ added in v0.5.0
func CurateCostAndUsageReport( d *costexplorer.GetCostAndUsageOutput, query model.CostAndUsageRequestType) model.CostAndUsageOutputType
func DayOfCurrentMonth ¶
func DefaultStartDate ¶
func EncodeString ¶ added in v0.5.0
func LastDayOfMonth ¶
func LastDayOfMonth() string
func MaxSupportedRows ¶ added in v0.5.0
func MetricsToService ¶ added in v0.5.0
func MetricsToService(m map[string]types.MetricValue) []model.Metrics
func ResultsToServicesMap ¶ added in v0.5.0
func ResultsToServicesMap(res []types.ResultByTime) map[int]model.Service
func ReturnIfPresent ¶
func SortFunction ¶ added in v0.5.0
func SortServicesByMetricAmount ¶ added in v0.5.0
func SortServicesByStartDate ¶ added in v0.5.0
func SplitNameValuePair ¶
func ToCostAndUsageOutputType ¶ added in v0.5.0
func ToCostAndUsageOutputType(r *costexplorer.GetCostAndUsageOutput, u model.CostAndUsageRequestType) model.CostAndUsageOutputType
func ToPrintWriterType ¶
func ToPrintWriterType(s string) model.PrintWriterType
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.