Documentation ¶
Overview ¶
Package jsonprovider contains types and functions to marshal terraform provider schemas into a json formatted output.
Index ¶
Constants ¶
View Source
const FormatVersion = "1.0"
FormatVersion represents the version of the json format and will be incremented for any change to this format that requires changes to a consuming parser.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct { AttributeType json.RawMessage `json:"type,omitempty"` AttributeNestedType *NestedType `json:"nested_type,omitempty"` Description string `json:"description,omitempty"` DescriptionKind string `json:"description_kind,omitempty"` Deprecated bool `json:"deprecated,omitempty"` Required bool `json:"required,omitempty"` Optional bool `json:"optional,omitempty"` Computed bool `json:"computed,omitempty"` Sensitive bool `json:"sensitive,omitempty"` }
type Block ¶
type Block struct { Attributes map[string]*Attribute `json:"attributes,omitempty"` BlockTypes map[string]*BlockType `json:"block_types,omitempty"` Description string `json:"description,omitempty"` DescriptionKind string `json:"description_kind,omitempty"` Deprecated bool `json:"deprecated,omitempty"` }
type NestedType ¶
Click to show internal directories.
Click to hide internal directories.