parser

package
v0.0.0-...-bed0df6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerraformConfiguration

type TerraformConfiguration struct {
	Name string
	// contains filtered or unexported fields
}

TerraformConfiguration represents a terraform directory on a local filesystem.

func NewTerraformConfigurationFromEncodedString

func NewTerraformConfigurationFromEncodedString(encodedConfig string) (*TerraformConfiguration, error)

NewTerraformConfigurationFromString will create a new terraform configuration from an encoded string that could be exchanged over gRPC.

func NewTerraformConfigurationFromPath

func NewTerraformConfigurationFromPath(name, path string) (*TerraformConfiguration, error)

NewTerraformConfigurationFromPath will attempt to parse a path on a local filesystem and build a TerraformConfiguration struct from it.

func (*TerraformConfiguration) Bytes

func (t *TerraformConfiguration) Bytes() ([]byte, error)

Bytes will return the terraform configuration as a slice of bytes. Note this is NOT the terraform configuration.

func (*TerraformConfiguration) GetApplyHash

func (t *TerraformConfiguration) GetApplyHash() string

func (*TerraformConfiguration) Hash

func (t *TerraformConfiguration) Hash() (string, error)

func (*TerraformConfiguration) SetApplyHash

func (t *TerraformConfiguration) SetApplyHash(hash string)

func (*TerraformConfiguration) String

func (t *TerraformConfiguration) String() (string, error)

String will return the terraform configuration as a string. Note this is NOT the terraform configuration.

func (*TerraformConfiguration) TfBytes

func (t *TerraformConfiguration) TfBytes() []byte

TfBytes returns the raw Terraform configuration as a slice of bytes. Note this is NOT the byte string for the object for the gRPC transaction.

Jump to

Keyboard shortcuts

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