Documentation ¶
Index ¶
- type TerraformConfiguration
- func (t *TerraformConfiguration) Bytes() ([]byte, error)
- func (t *TerraformConfiguration) GetApplyHash() string
- func (t *TerraformConfiguration) Hash() (string, error)
- func (t *TerraformConfiguration) SetApplyHash(hash string)
- func (t *TerraformConfiguration) String() (string, error)
- func (t *TerraformConfiguration) TfBytes() []byte
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.