Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortInputsByName ¶
func SortInputsByName(inputs []Input)
SortInputsByName sorts a list of inputs by name.
func SortInputsByRequired ¶ added in v0.5.0
func SortInputsByRequired(inputs []Input)
SortInputsByRequired sorts a list of inputs by whether they are required
func SortOutputsByName ¶
func SortOutputsByName(outputs []Output)
SortOutputsByName sorts a list of outputs by name.
Types ¶
type Doc ¶
Doc represents a Terraform module.
func CreateFromPaths ¶
CreateFromPaths creates a new document from a list of file or directory paths.
func TestDocFromFile ¶
TestDocFromFile creates a *Doc from a Terraform file.
func (*Doc) HasComment ¶
HasComment indicates if the document has a comment.
func (*Doc) HasOutputs ¶
HasOutputs indicates if the document has outputs.
type Input ¶
Input represents a Terraform input.
func (*Input) GetDefault ¶
GetDefault returns the Terraform input's default value.
func (*Input) HasDefault ¶
HasDefault indicates if a Terraform input has a default value set.
func (*Input) HasDescription ¶
HasDescription indicates if a Terraform input has a description.
func (*Input) IsAggregateType ¶ added in v0.6.0
IsAggregateType indicates if a Terraform input is an aggregate type.
func (*Input) IsOptional ¶
IsOptional indicates if a Terraform input is optional.
func (*Input) IsRequired ¶
IsRequired indicates if a Terraform input is required.
type Output ¶
Output represents a Terraform output.
func (*Output) HasDescription ¶
HasDescription indicates if a Terraform output has a description.