prices

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAPIKey = errors.New("Invalid API key")

Functions

func GetPrices

func GetPrices(r *schema.Resource, q QueryRunner) error

func PopulatePrices

func PopulatePrices(resources []*schema.Resource) error

Types

type GraphQLQuery

type GraphQLQuery struct {
	Query     string                 `json:"query"`
	Variables map[string]interface{} `json:"variables"`
}

type GraphQLQueryRunner

type GraphQLQueryRunner struct {
	// contains filtered or unexported fields
}

func NewGraphQLQueryRunner

func NewGraphQLQueryRunner() *GraphQLQueryRunner

func (*GraphQLQueryRunner) ReportSummary added in v0.6.5

func (q *GraphQLQueryRunner) ReportSummary(resources []*schema.Resource)

func (*GraphQLQueryRunner) RunQueries

func (q *GraphQLQueryRunner) RunQueries(r *schema.Resource) ([]QueryResult, error)

type PricingAPIError

type PricingAPIError struct {
	// contains filtered or unexported fields
}

func (*PricingAPIError) Error

func (e *PricingAPIError) Error() string

type QueryResult

type QueryResult struct {
	Result gjson.Result
	// contains filtered or unexported fields
}

type QueryRunner

type QueryRunner interface {
	RunQueries(resource *schema.Resource) ([]QueryResult, error)
}

Jump to

Keyboard shortcuts

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