Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool bool
Bool represents a 'bool' value
func (Bool) HasDefault ¶
HasDefault indicates a Terraform variable has a default value set.
type Empty ¶
type Empty string
Empty represents an empty 'string' which is marshaled to `""` in JSON and YAML
func (Empty) HasDefault ¶
HasDefault indicates a Terraform variable has a default value set.
func (Empty) MarshalJSON ¶
MarshalJSON custom marshal function which sets the value to `""`
type List ¶
type List []interface{}
List represents a 'list' of values
func (List) HasDefault ¶
HasDefault indicates a Terraform variable has a default value set.
func (List) MarshalXML ¶
MarshalXML custom marshal function which wraps list items in '<default></default>' tag and each items of the list will be wrapped in a '<item></item>' tag
func (List) Underlying ¶
func (l List) Underlying() []interface{}
Underlying returns the underlying elements in the form of '[]interface {}'
type Map ¶
type Map map[string]interface{}
Map represents a 'map' of values
func (Map) HasDefault ¶
HasDefault indicates a Terraform variable has a default value set.
func (Map) MarshalXML ¶
MarshalXML custom marshal function which converts map to its literal XML representation. For example:
m := Map{ "a": 1, "b": 2, "c": 3, }
type foo struct { Value Map `xml:"value"` }
will get marshaled to:
<foo>
<value> <a>1</a> <b>2</b> <c>3</c> </value>
</foo>
func (Map) Underlying ¶
Underlying returns the underlying elements in the form of 'map[string]interface {}'
type Nil ¶
Nil represents a 'nil' value which is marshaled to `null` when empty for JSON and YAML
func (Nil) HasDefault ¶
HasDefault return false for Nil, because there's no value set for the variable
func (Nil) MarshalJSON ¶
MarshalJSON custom marshal function which sets the value to literal `null`
func (Nil) MarshalXML ¶
MarshalXML custom marshal function which adds property 'xsi:nil="true"' to a tag of a 'nil' item
func (Nil) MarshalYAML ¶
MarshalYAML custom marshal function which sets the value to literal `null`
type Number ¶
type Number float64
Number represents a 'number' value which is marshaled to `null` when emty in JSON and YAML
func (Number) HasDefault ¶
HasDefault indicates a Terraform variable has a default value set.
type String ¶
type String string
String represents a 'string' value which is marshaled to `null` when empty for JSON and YAML
func TypeOf ¶
TypeOf returns Terraform type of a value based on provided type by terraform-inspect or by looking the underlying type of the value
func (String) HasDefault ¶
HasDefault indicates a Terraform variable has a default value set.
func (String) MarshalJSON ¶
MarshalJSON custom marshal function which sets the value to literal `null` when empty
func (String) MarshalXML ¶
MarshalXML custom marshal function which adds property 'xsi:nil="true"' to a tag if the underlying item is 'nil'
func (String) MarshalYAML ¶
MarshalYAML custom marshal function which sets the value to literal `null` when empty