util

package
v0.4.1-0...-d745f3b Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagRegion is a viper flag for the region to run in
	FlagRegion = "region"
)

Variables

View Source
var (
	PricingError         = errors.New("Pricing error")
	NoResourceFoundError = errors.New("There are no instances of the requested resource")
)
View Source
var RegionLongNames = map[string]string{
	endpoints.UsEast1RegionID: "US East (N. Virginia)",
	endpoints.UsEast2RegionID: "US East (Ohio)",
	endpoints.UsWest2RegionID: "US West (Oregon)",
}

Functions

This section is empty.

Types

type AWSPriceItem

type AWSPriceItem struct {
	Attributes map[string]interface{}
	UsageType  string
	OnDemand   struct {
		Dimensions []AWSPriceItemDimension
	}
}

func ParsePriceItem

func ParsePriceItem(priceItem aws.JSONValue) (priceItemRet *AWSPriceItem, err error)

type AWSPriceItemDimension

type AWSPriceItemDimension struct {
	BeginRange  string
	EndRange    string
	Unit        string
	Rate        float64
	Description string
}

type AWSResource

type AWSResource interface {
	Type() string
	ID() string
}

type AWSResourceObject

type AWSResourceObject struct {
	R AWSResource
}

type AWSWastedResource

type AWSWastedResource struct {
	Resource AWSResourceObject
	Price    Price
}

type Price

type Price struct {
	Unit string
	Rate float64
}

Jump to

Keyboard shortcuts

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