Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAPIKey = errors.New("Invalid API key")
Functions ¶
func ReportCLIError ¶
func ReportCLIError(ctx *config.RunContext, cliErr error) error
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func (*APIClient) AddAuthHeaders ¶
func (*APIClient) AddDefaultHeaders ¶
type APIErrorResponse ¶
type APIErrorResponse struct {
Error string `json:"error"`
}
type AddRunResponse ¶ added in v0.9.16
type AddRunResponse struct { RunID string `json:"id"` }
type CreateAPIKeyResponse ¶
type DashboardAPIClient ¶
type DashboardAPIClient struct { APIClient // contains filtered or unexported fields }
func NewDashboardAPIClient ¶
func NewDashboardAPIClient(ctx *config.RunContext) *DashboardAPIClient
func (*DashboardAPIClient) AddRun ¶
func (c *DashboardAPIClient) AddRun(ctx *config.RunContext, projectContexts []*config.ProjectContext, out output.Root) (AddRunResponse, error)
func (*DashboardAPIClient) CreateAPIKey ¶
func (c *DashboardAPIClient) CreateAPIKey(name string, email string) (CreateAPIKeyResponse, error)
type GraphQLQuery ¶
type PriceQueryKey ¶
type PriceQueryKey struct { Resource *schema.Resource CostComponent *schema.CostComponent }
type PriceQueryResult ¶
type PriceQueryResult struct { PriceQueryKey Result gjson.Result }
type PricingAPIClient ¶
func NewPricingAPIClient ¶
func NewPricingAPIClient(ctx *config.RunContext) *PricingAPIClient
func (*PricingAPIClient) AddEvent ¶ added in v0.9.5
func (c *PricingAPIClient) AddEvent(name string, env map[string]interface{}) error
func (*PricingAPIClient) RunQueries ¶
func (c *PricingAPIClient) RunQueries(r *schema.Resource) ([]PriceQueryResult, error)
Click to show internal directories.
Click to hide internal directories.