Documentation
¶
Index ¶
- type ArgumentList
- type AttributeList
- type IOEntry
- type InputEntry
- type Module
- type OutputEntry
- type TFInput
- type TFMain
- type TFOutput
- type TFResource
- func (r *TFResource) AppendArgument(entry InputEntry)
- func (r *TFResource) AppendAttribute(entry OutputEntry)
- func (r TFResource) Arguments() []InputEntry
- func (r TFResource) Attributes() []OutputEntry
- func (r *TFResource) Create() error
- func (r TFResource) MaxArgumentLength() int
- func (r TFResource) MaxAttributeLength() int
- func (r *TFResource) SetHashicorpResource() error
- type Templatable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentList ¶
type ArgumentList struct { Arguments []InputEntry // contains filtered or unexported fields }
func NewArgumentList ¶
func NewArgumentList() *ArgumentList
func (*ArgumentList) Append ¶
func (l *ArgumentList) Append(item InputEntry)
type AttributeList ¶
type AttributeList struct { Attributes []OutputEntry // contains filtered or unexported fields }
func NewAttributeList ¶
func NewAttributeList() *AttributeList
func (*AttributeList) Append ¶
func (l *AttributeList) Append(item OutputEntry)
type IOEntry ¶
type IOEntry struct { *schema.Schema Resource *TFResource Name string TFType string Optional bool Deprecated bool Description string }
func (IOEntry) DefaultValue ¶
func (IOEntry) NameLength ¶
type InputEntry ¶
type InputEntry IOEntry
Arguments
func (InputEntry) DefaultValue ¶
func (e InputEntry) DefaultValue() string
func (InputEntry) Padding ¶
func (e InputEntry) Padding(max int) string
func (InputEntry) PrefixedName ¶ added in v0.6.0
func (e InputEntry) PrefixedName() string
func (InputEntry) ValueType ¶
func (e InputEntry) ValueType() string
type Module ¶
type Module struct { TerrawrapLine string Copyright string Legal cmd.License Name string AbsolutePath string }
Module contains name and paths to generated modules.
func (*Module) Initialize ¶
type OutputEntry ¶
type OutputEntry IOEntry
Attributes
func (OutputEntry) DefaultValue ¶
func (e OutputEntry) DefaultValue() string
func (OutputEntry) Padding ¶
func (e OutputEntry) Padding(max int) string
func (OutputEntry) PrefixedName ¶ added in v0.6.0
func (e OutputEntry) PrefixedName() string
func (OutputEntry) ValueType ¶
func (e OutputEntry) ValueType() string
type TFInput ¶
type TFInput struct { *TFResource // contains filtered or unexported fields }
TFInput represents the inputs of a terraform resource
func NewTFInput ¶
func NewTFInput(resource *TFResource) TFInput
func (TFInput) TemplateName ¶
type TFMain ¶
type TFMain struct { *TFResource // contains filtered or unexported fields }
TFMain represents the main instantiation of a terraform resource
func NewTFMain ¶
func NewTFMain(resource *TFResource) TFMain
func (TFMain) TemplateName ¶
type TFOutput ¶
type TFOutput struct { *TFResource // contains filtered or unexported fields }
TFOutput represents the outputs of a terraform resource
func NewTFOutput ¶
func NewTFOutput(resource *TFResource) TFOutput
func (TFOutput) TemplateName ¶
type TFResource ¶
type TFResource struct { *Module Name string VarPrefix string AttrPrefix string Type string DocerizedType string DocPath string AbsolutePath string *schema.Resource // contains filtered or unexported fields }
func NewTFResource ¶
func NewTFResource() TFResource
func (*TFResource) AppendArgument ¶
func (r *TFResource) AppendArgument(entry InputEntry)
func (*TFResource) AppendAttribute ¶
func (r *TFResource) AppendAttribute(entry OutputEntry)
func (TFResource) Arguments ¶
func (r TFResource) Arguments() []InputEntry
func (TFResource) Attributes ¶
func (r TFResource) Attributes() []OutputEntry
func (*TFResource) Create ¶
func (r *TFResource) Create() error
func (TFResource) MaxArgumentLength ¶
func (r TFResource) MaxArgumentLength() int
func (TFResource) MaxAttributeLength ¶
func (r TFResource) MaxAttributeLength() int
func (*TFResource) SetHashicorpResource ¶
func (r *TFResource) SetHashicorpResource() error
Click to show internal directories.
Click to hide internal directories.