terraform

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInstance

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

DBInstance represents an RDS database instance definition that can be cost-estimated.

func (*DBInstance) Components

func (inst *DBInstance) Components() []query.Component

Components returns the price component queries that make up this Instance.

type ElastiCache added in v0.5.1

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

ElastiCache represents an ElastiCache instance definition that can be cost-estimated.

func (*ElastiCache) Components added in v0.5.1

func (inst *ElastiCache) Components() []query.Component

Components returns the price component queries that make up this Instance.

type ElastiCacheReplication added in v0.5.1

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

ElastiCacheReplication represents an ElastiCacheReplication instance definition that can be cost-estimated.

func (*ElastiCacheReplication) Components added in v0.5.1

func (inst *ElastiCacheReplication) Components() []query.Component

Components returns the price component queries that make up this Instance.

type ElasticIP added in v0.5.1

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

ElasticIP represents an ElasticIP instance definition that can be cost-estimated.

func (*ElasticIP) Components added in v0.5.1

func (inst *ElasticIP) Components() []query.Component

Components returns the price component queries that make up this Instance.

type Instance

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

Instance represents an EC2 instance definition that can be cost-estimated.

func (*Instance) Components

func (inst *Instance) Components() []query.Component

Components returns the price component queries that make up this Instance.

type LB

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

LB represents a Load Balancer definition that can be cost-estimated.

func (*LB) Components

func (lb *LB) Components() []query.Component

Components returns the price component queries that make up this LB.

type Provider

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

Provider is an implementation of the terraform.Provider, used to extract component queries from terraform resources.

func NewProvider

func NewProvider(key string, regionCode region.Code) (*Provider, error)

NewProvider returns a new Provider with the provided default region and a query key.

func (*Provider) Name added in v0.2.0

func (p *Provider) Name() string

Name returns the Provider's common name.

func (*Provider) ResourceComponents

func (p *Provider) ResourceComponents(rss map[string]terraform.Resource, tfRes terraform.Resource) []query.Component

ResourceComponents returns Component queries for a given terraform.Resource.

type Volume

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

Volume represents an EBS volume that can be cost-estimated.

func (*Volume) Components

func (v *Volume) Components() []query.Component

Components returns the price component queries that make up the Volume.

Jump to

Keyboard shortcuts

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