terraform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	ResourcesByName map[string]Resource
}

func NewTerraformContent

func NewTerraformContent() *Content

func (*Content) AddResource

func (content *Content) AddResource(resource Resource)

type Resource

type Resource struct {
	Name    string
	Type    string
	Content map[string]string
}

func NewTerraformResource

func NewTerraformResource(name string, resourceType string) Resource

type Service

type Service struct{}

func NewTerraformService

func NewTerraformService() *Service

func (*Service) ModifyInPlaceHclAst

func (s *Service) ModifyInPlaceHclAst(
	hclParser hcl.Parser,
	hclBytes []byte,
	objectItemVisitorFunc func(item *ast.ObjectItem) error,
) (*ast.File, error)

func (*Service) TerraformContentToHCLfile

func (s *Service) TerraformContentToHCLfile(hclParser hcl.Parser, terraformContent *Content) (*ast.File, error)

func (*Service) TerraformResourceToHCLfile

func (s *Service) TerraformResourceToHCLfile(hclParser hcl.Parser, resource Resource) (*ast.File, error)

func (*Service) WriteHCLfile

func (s *Service) WriteHCLfile(hclPrinter hcl.Printer, hclFile *ast.File, output io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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