Versions in this module Expand all Collapse all v0 v0.0.2 Feb 16, 2022 v0.0.1 Feb 11, 2022 Changes in this version + var Schema = &hcl.BodySchema + var TypeData = Type + var TypeLocal = Type + var TypeModule = Type + var TypeMoved = Type + var TypeOutput = Type + var TypeProvider = Type + var TypeResource = Type + var TypeTerraform = Type + var TypeVariable = Type + var ValidTypes = []Type + func IsValidBlockReference(name string) bool + func IsValidType(name string) bool + type Attribute struct + func NewAttribute(attr *hcl.Attribute, ctx *context.Context, module string, ...) *Attribute + func (a *Attribute) AllReferences(blocks ...*Block) []*Reference + func (a *Attribute) AsBoolValueOrDefault(defaultValue bool, parent *Block) types.BoolValue + func (a *Attribute) AsBytesValueOrDefault(defaultValue []byte, parent *Block) types.BytesValue + func (a *Attribute) AsIntValueOrDefault(defaultValue int, parent *Block) types.IntValue + func (a *Attribute) AsStringValueOrDefault(defaultValue string, parent *Block) types.StringValue + func (a *Attribute) Contains(checkValue interface{}, equalityOptions ...EqualityOption) bool + func (a *Attribute) Each(f func(key cty.Value, val cty.Value)) error + func (a *Attribute) EndsWith(suffix interface{}) bool + func (a *Attribute) Equals(checkValue interface{}, equalityOptions ...EqualityOption) bool + func (a *Attribute) GetMetadata() types.Metadata + func (a *Attribute) GetRawValue() interface{} + func (a *Attribute) GreaterThan(checkValue interface{}) bool + func (a *Attribute) GreaterThanOrEqualTo(checkValue interface{}) bool + func (a *Attribute) HasIntersect(checkValues ...interface{}) bool + func (a *Attribute) IsAny(options ...interface{}) bool + func (a *Attribute) IsBool() bool + func (a *Attribute) IsDataBlockReference() bool + func (a *Attribute) IsEmpty() bool + func (a *Attribute) IsFalse() bool + func (a *Attribute) IsIterable() bool + func (a *Attribute) IsLiteral() bool + func (a *Attribute) IsNil() bool + func (a *Attribute) IsNone(options ...interface{}) bool + func (a *Attribute) IsNotAny(options ...interface{}) bool + func (a *Attribute) IsNotEmpty() bool + func (a *Attribute) IsNotNil() bool + func (a *Attribute) IsNotResolvable() bool + func (a *Attribute) IsNumber() bool + func (a *Attribute) IsResolvable() bool + func (a *Attribute) IsResourceBlockReference(resourceType string) bool + func (a *Attribute) IsString() bool + func (a *Attribute) IsTrue() bool + func (a *Attribute) LessThan(checkValue interface{}) bool + func (a *Attribute) LessThanOrEqualTo(checkValue interface{}) bool + func (a *Attribute) MapValue(mapKey string) cty.Value + func (a *Attribute) Name() string + func (a *Attribute) NotContains(checkValue interface{}, equalityOptions ...EqualityOption) bool + func (a *Attribute) NotEqual(checkValue interface{}, equalityOptions ...EqualityOption) bool + func (a *Attribute) References(r types.Reference) bool + func (a *Attribute) ReferencesBlock(b *Block) bool + func (a *Attribute) RegexMatches(re regexp.Regexp) bool + func (a *Attribute) SingleReference() (*Reference, error) + func (a *Attribute) StartsWith(prefix interface{}) bool + func (a *Attribute) Type() cty.Type + func (a *Attribute) Value() (ctyVal cty.Value) + func (a *Attribute) ValueAsStrings() []string + type Block struct + func NewBlock(hclBlock *hcl.Block, ctx *context.Context, moduleBlock *Block, ...) *Block + func (b *Block) AllBlocks() Blocks + func (b *Block) Attributes() map[string]*Attribute + func (b *Block) Clone(index cty.Value) *Block + func (b *Block) Context() *context.Context + func (b *Block) FullName() string + func (b *Block) GetAttribute(name string) *Attribute + func (b *Block) GetAttributes() []*Attribute + func (b *Block) GetBlock(name string) *Block + func (b *Block) GetBlocks(name string) Blocks + func (b *Block) GetFirstMatchingBlock(names ...string) *Block + func (b *Block) GetMetadata() types.Metadata + func (b *Block) GetNestedAttribute(name string) *Attribute + func (b *Block) GetRawValue() interface{} + func (b *Block) HasChild(childElement string) bool + func (b *Block) ID() string + func (b *Block) InModule() bool + func (b *Block) InjectBlock(block *Block, name string) + func (b *Block) IsCountExpanded() bool + func (b *Block) IsEmpty() bool + func (b *Block) IsNil() bool + func (b *Block) IsNotNil() bool + func (b *Block) IsResourceType(resourceType string) bool + func (b *Block) Label() string + func (b *Block) Labels() []string + func (b *Block) LocalName() string + func (b *Block) MissingChild(childElement string) bool + func (b *Block) MissingNestedChild(name string) bool + func (b *Block) NameLabel() string + func (b *Block) OverrideContext(ctx *context.Context) + func (b *Block) Type() string + func (b *Block) TypeLabel() string + func (b *Block) UniqueName() string + func (b *Block) Values() cty.Value + type Blocks []*Block + func (blocks Blocks) OfType(t string) Blocks + func (blocks Blocks) WithID(id string) *Block + type EqualityOption int + const IgnoreCase + type Ignore struct + Block bool + Expiry *time.Time + Params map[string]string + Range types.Range + RuleID string + Workspace string + func (ignore Ignore) Covering(modules Modules, m types.Metadata, workspace string, ids ...string) bool + func (ignore Ignore) MatchParams(modules Modules) bool + type Ignores []Ignore + func (ignores Ignores) Covering(modules Modules, m types.Metadata, workspace string, ids ...string) *Ignore + type Module struct + func NewModule(rootPath string, modulePath string, blocks Blocks, ignores Ignores) *Module + func (c *Module) GetBlocks() Blocks + func (c *Module) GetDatasByType(label string) Blocks + func (c *Module) GetProviderBlocksByProvider(providerName string, alias string) Blocks + func (c *Module) GetReferencedBlock(referringAttr *Attribute, parentBlock *Block) (*Block, error) + func (c *Module) GetReferencingBlocks(originalBlock *Block, referencingType string, referencingLabel string, ...) Blocks + func (c *Module) GetReferencingResources(originalBlock *Block, referencingLabel string, referencingAttributeName string) Blocks + func (c *Module) GetResourcesByIDs(ids ...string) Blocks + func (c *Module) GetResourcesByType(labels ...string) Blocks + func (c *Module) GetsModulesBySource(moduleSource string) (Blocks, error) + func (c *Module) Ignores() Ignores + func (h *Module) GetBlocksByTypeLabel(typeLabel string) Blocks + type Modules []*Module + func (m Modules) GetBlockByIgnoreRange(r types.Range) *Block + func (m Modules) GetBlocks() Blocks + func (m Modules) GetChildResourceIDMapByType(typeLabels ...string) ResourceIDResolutions + func (m Modules) GetReferencedBlock(referringAttr *Attribute, parentBlock *Block) (*Block, error) + func (m Modules) GetReferencingResources(originalBlock *Block, referencingLabel string, referencingAttributeName string) Blocks + func (m Modules) GetResourceByIDs(id ...string) Blocks + func (m Modules) GetResourcesByType(typeLabel ...string) Blocks + type Reference struct + func (r *Reference) BlockType() Type + func (r *Reference) HumanReadable() string + func (r *Reference) Key() string + func (r *Reference) KeyBracketed() string + func (r *Reference) LogicalID() string + func (r *Reference) NameLabel() string + func (r *Reference) RawKey() cty.Value + func (r *Reference) RefersTo(a types.Reference) bool + func (r *Reference) SetKey(key cty.Value) + func (r *Reference) String() string + func (r *Reference) TypeLabel() string + type ResourceIDResolutions map[string]bool + func (r ResourceIDResolutions) Orphans() (orphanIDs []string) + func (r ResourceIDResolutions) Resolve(id string) + type Type struct + func TypeFromRefName(name string) (*Type, error) + func (t Type) Name() string + func (t Type) ShortName() string