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 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" )
Click to show internal directories.
Click to hide internal directories.