terraform

package
v0.0.0-...-8531fef Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UI cli.Ui

Functions

func RemoveFile

func RemoveFile(namespace string, name string, path string) error

func RenderBackendToTerraform

func RenderBackendToTerraform(instance interface{}, backendName string) ([]byte, error)

RenderBackendToTerraform takes an object, and attempts to construct the appropriate terraform json from it.

func RenderModuleToTerraform

func RenderModuleToTerraform(instance interface{}, moduleName string) ([]byte, error)

RenderModuleToTerraform takes an object, and attempts to construct the appropriate terraform json from it.

func RenderOutputToTerraform

func RenderOutputToTerraform(instance interface{}, moduleName string) ([][]byte, error)

func RenderProviderToTerraform

func RenderProviderToTerraform(instance interface{}, providerName string) ([]byte, error)

RenderProviderToTerraform takes an object, and attempts to construct the appropriate terraform json from it.

func TerraformApply

func TerraformApply(namespace string, path string) error

func TerraformInit

func TerraformInit(namespace string, path string) error

func TerraformNewWorkspace

func TerraformNewWorkspace(namespace string, path string) error

func TerraformOutput

func TerraformOutput(namespace string, path string, name string) (string, error)

func TerraformPlan

func TerraformPlan(namespace string, path string) error

func TerraformSelectWorkspace

func TerraformSelectWorkspace(namespace string, path string) error

func TerraformShow

func TerraformShow(namespace string, path string) error

func TerraformValidate

func TerraformValidate(namespace string, path string) error

func WriteToFile

func WriteToFile(b []byte, namespace string, name string, path string) error

Types

type Backend

type Backend struct {
	Backend map[string]interface{} `json:"backend"`
}

type Module

type Module struct {
	Module map[string]interface{} `json:"module"`
}

type Output

type Output struct {
	Output map[string]interface{} `json:"output"`
}

type Provider

type Provider struct {
	Provider map[string]interface{} `json:"provider"`
}

type Terraform

type Terraform struct {
	Terraform Backend `json:"terraform"`
}

Jump to

Keyboard shortcuts

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