Documentation ¶
Index ¶
Constants ¶
View Source
const ( HCLIDField = "HCLID" StateIDField = "StateID" )
Internal field names.
View Source
const InternalFieldName = "-"
InternalFieldName is used for fields not based on the TF schema.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tag ¶
type Tag struct { TFName string Optional bool Computed bool ListEncodedObject bool Default string File bool }
Tag contains metadata for a intschema struct tag.
func InternalFieldTag ¶
func InternalFieldTag() Tag
InternalFieldTag marks a field which is not part of the resource schema.
func Unmarshal ¶
func Unmarshal(f reflect.StructField) Tag
Unmarshal unmarshals an intschema Tag for the specified struct field.
func (Tag) IgnoreResourceData ¶
IgnoreResourceData returns true for fields that should not be used when setting to/from ResourceData. E.g., fields only relevant to HCL marshalling like HCLID.
Click to show internal directories.
Click to hide internal directories.