Documentation ¶
Index ¶
- func AddAttribute(f *hclwrite.File, name string, value string, replace bool) (*hclwrite.File, error)
- func CheckAttribute(f *hclwrite.File, name string) bool
- func GetAttributeValueAsString(attr *hclwrite.Attribute) (string, error)
- type AttributeAppendFilter
- type AttributeGetSink
- type AttributeSetFilter
- type BlockAppendFilter
- type BlockListSink
- type Filter
- type Sink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAttribute ¶
Types ¶
type AttributeAppendFilter ¶
type AttributeAppendFilter struct {
// contains filtered or unexported fields
}
AttributeAppendFilter is a filter implementation for appending attribute.
type AttributeGetSink ¶
type AttributeGetSink struct {
// contains filtered or unexported fields
}
AttributeGetSink is a sink implementation for getting a value of attribute.
type AttributeSetFilter ¶
type AttributeSetFilter struct {
// contains filtered or unexported fields
}
type BlockAppendFilter ¶
type BlockAppendFilter struct {
// contains filtered or unexported fields
}
BlockAppendFilter is a filter implementation for appending block.
type BlockListSink ¶
type BlockListSink struct{}
BlockListSink is a sink implementation for getting a list of block addresses.
type Filter ¶
type Filter interface { // Filter reads HCL and writes HCL Filter(*hclwrite.File) (*hclwrite.File, error) }
func NewAttributeAppendFilter ¶
NewAttributeAppendFilter creates a new instance of AttributeAppendFilter.
func NewAttributeSetFilter ¶
NewAttributeSetFilter creates a new instance of AttributeSetFilter.
type Sink ¶
func NewAttributeGetSink ¶
NewAttributeGetSink creates a new instance of AttributeGetSink.
func NewBlockListSink ¶
func NewBlockListSink() Sink
NewBlockListSink creates a new instance of BlockListSink.
Click to show internal directories.
Click to hide internal directories.