pricing

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSPriceItem

type AWSPriceItem struct {
	Product AWSPriceItemProduct `json:"product"`
	Terms   AWSPriceItemTerms   `json:"terms"`
}

type AWSPriceItemOnDemand

type AWSPriceItemOnDemand struct {
	PriceDimensions map[string]AWSPriceItemPriceDimension `json:"priceDimensions"`
	SKU             string                                `json:"sku"`
}

type AWSPriceItemPriceDimension

type AWSPriceItemPriceDimension struct {
	Description  string                   `json:"description"`
	BeginRange   string                   `json:"beginRange"`
	EndRange     string                   `json:"endRange"`
	PricePerUnit AWSPriceItemPricePerUnit `json:"pricePerUnit"`
}

type AWSPriceItemPricePerUnit

type AWSPriceItemPricePerUnit struct {
	USD string `json:"USD"`
}

type AWSPriceItemProduct

type AWSPriceItemProduct struct {
	Attributes AWSPriceItemProductAttributes `json:"attributes"`
}

type AWSPriceItemProductAttributes

type AWSPriceItemProductAttributes struct {
	Location  string `json:"location"`
	UsageType string `json:"usagetype"`
}

type AWSPriceItemTerms

type AWSPriceItemTerms struct {
	Attributes AWSPriceItemProductAttributes   `json:"attributes"`
	OnDemand   map[string]AWSPriceItemOnDemand `json:"OnDemand,omitempty"`
}

type Client

type Client struct {
	Pricing pricingiface.PricingAPI
}

func (*Client) GetProducts

func (client *Client) GetProducts(ctx context.Context, options *GetProductsInput) ([]*AWSPriceItem, error)

type GetProductsInput

type GetProductsInput struct {
	Region      string
	ServiceCode ServiceCode
	Filters     []*pricing.Filter
}

type PricingInterface

type PricingInterface interface {
	GetProducts(ctx context.Context, options *GetProductsInput) ([]*AWSPriceItem, error)
}

type ServiceCode

type ServiceCode string
const (
	DynamoDB ServiceCode = "AmazonDynamoDB"
	EC2      ServiceCode = "AmazonEC2"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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