usage

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateTierBuckets added in v0.7.19

func CalculateTierBuckets(requestCount decimal.Decimal, tierLimits []int) []decimal.Decimal

func LoadFromFile

func LoadFromFile(usageFilePath string, createIfNotExisting bool) (map[string]*schema.UsageData, error)

func SyncUsageData added in v0.8.3

func SyncUsageData(project *schema.Project, existingUsageData map[string]*schema.UsageData, usageFilePath string) error

Types

type SchemaItem added in v0.8.3

type SchemaItem struct {
	Key          string
	ValueType    schema.UsageVariableType
	DefaultValue interface{}
}

type UsageFile

type UsageFile struct {
	Version       string                 `yaml:"version"`
	ResourceUsage map[string]interface{} `yaml:"resource_usage"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL