terraform

package
v0.12.103 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const REQUIRED_TERRAFORM_VERSION = "0.9.4"

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(path string, config *Config) error

Types

type Config

type Config struct {
	Variables map[string]Variable `json:"variable,omitempty"`
	Modules   map[string]Module   `json:"module,omitempty"`
	Outputs   map[string]Output   `json:"output,omitempty"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func NewConfig

func NewConfig() *Config

type Module

type Module map[string]interface{}

type Output

type Output struct {
	Value interface{} `json:"value"`
}

type Terraform

type Terraform struct{}

func New

func New() *Terraform

func (*Terraform) Apply

func (t *Terraform) Apply(dir string) error

func (*Terraform) Destroy

func (t *Terraform) Destroy(dir string, force bool) error

func (*Terraform) Get

func (t *Terraform) Get(dir string) error

func (*Terraform) Init added in v0.10.4

func (t *Terraform) Init(dir string) error

func (*Terraform) Output

func (t *Terraform) Output(dir, key string) (string, error)

func (*Terraform) Plan

func (t *Terraform) Plan(dir string) error

func (*Terraform) Validate

func (t *Terraform) Validate(dir string) error

type Variable

type Variable struct {
	Type        string      `json:"type,omitempty"`
	Description string      `json:"description,omitempty"`
	Default     interface{} `json:"default,omitempty"`
}

Jump to

Keyboard shortcuts

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