Documentation ¶
Overview ¶
Package use contains types and methods to deal with block use
Index ¶
- Constants
- type Use
- func (use *Use) AddArgument(name string, attr hcl.Expression)
- func (use *Use) Arguments() map[string]hcl.Expression
- func (use *Use) Desc() hcl.Expression
- func (use *Use) SetDesc(desc hcl.Expression)
- func (use *Use) SetVarRef(varRef string)
- func (use *Use) SetWhen(when hcl.Expression)
- func (use *Use) VarRef() string
- func (use *Use) When() hcl.Expression
Constants ¶
View Source
const ( // BlockUse identifier of block use. BlockUse = "use" // ArgRef argument of block use. ArgRef = "ref" // ArgDesc argument of block use. ArgDesc = "_desc" // ArgWhen argument of block use. ArgWhen = "when" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Use ¶
type Use struct {
// contains filtered or unexported fields
}
Use defined struct.
func (*Use) AddArgument ¶
AddArgument add an argument to the existing values in attribute arguments.
func (*Use) SetDesc ¶
func (use *Use) SetDesc(desc hcl.Expression)
SetDesc set the value for attribute desc of type Use.
Click to show internal directories.
Click to hide internal directories.