types
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeBool¶
type Boolbool
Bool represents a 'bool' value
func (Bool)HasDefault¶
HasDefault indicates a Terraform variable has a default value set.
typeEmpty¶
type Emptystring
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 `""`
typeList¶
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 (lList) Underlying() []interface{}
Underlying returns the underlying elements in the form of '[]interface {}'
typeMap¶
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 literalXML 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 {}'
typeNil¶
type Nil struct{}
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 tagof a 'nil' item
func (Nil)MarshalYAML¶
MarshalYAML custom marshal function which sets the value to literal `null`
typeNumber¶
type Numberfloat64
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.
typeString¶
type Stringstring
String represents a 'string' value which is marshaled to `null` when empty for JSON and YAML
funcTypeOf¶
TypeOf returns Terraform type of a value based on provided type byterraform-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 tagif the underlying item is 'nil'
func (String)MarshalYAML¶
MarshalYAML custom marshal function which sets the value to literal `null` when empty