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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinuxVirtualMachine

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

LinuxVirtualMachine is the entity that holds the logic to calculate price of the google_compute_instance

func (*LinuxVirtualMachine) Components

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

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

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) (*Provider, error)

NewProvider initializes a new Google provider with key and region

func (*Provider) Name

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 VirtualMachine

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

VirtualMachine is the entity that holds the logic to calculate price of the google_compute_instance

func (*VirtualMachine) Components

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

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

Jump to

Keyboard shortcuts

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