prices

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidAPIKeyError = 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(endpoint string) *GraphQLQueryRunner

func (*GraphQLQueryRunner) RunQueries

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

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