source

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendBlockView

type BackendBlockView struct {
	// contains filtered or unexported fields
}

func (BackendBlockView) Attributes

func (v BackendBlockView) Attributes() (map[string]*hcl.Attribute, hcl.Diagnostics)

func (BackendBlockView) Type

func (v BackendBlockView) Type() string

type Loader

type Loader struct{}

func NewLoader

func NewLoader() *Loader

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, modulePath string) (*Snapshot, error)

type ModuleBlockView

type ModuleBlockView struct {
	// contains filtered or unexported fields
}

func (ModuleBlockView) Content

func (v ModuleBlockView) Content() (*hcl.BodyContent, hcl.Diagnostics)

func (ModuleBlockView) Name

func (v ModuleBlockView) Name() string

type RemoteStateBlockView

type RemoteStateBlockView struct {
	// contains filtered or unexported fields
}

func (RemoteStateBlockView) AppendConfigBlockAttributes

func (v RemoteStateBlockView) AppendConfigBlockAttributes(
	content *hcl.BodyContent,
	dst map[string]hcl.Expression,
) hcl.Diagnostics

func (RemoteStateBlockView) AppendInlineConfigExpressions

func (v RemoteStateBlockView) AppendInlineConfigExpressions(
	content *hcl.BodyContent,
	dst map[string]hcl.Expression,
)

func (RemoteStateBlockView) Content

func (RemoteStateBlockView) Name

func (v RemoteStateBlockView) Name() string

func (RemoteStateBlockView) RawBody

func (v RemoteStateBlockView) RawBody() hcl.Body

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

func (*Snapshot) Blocks

func (s *Snapshot) Blocks(blockType string) []*hcl.Block

func (*Snapshot) DataBlocks

func (s *Snapshot) DataBlocks() []*hcl.Block

func (*Snapshot) Diagnostics

func (s *Snapshot) Diagnostics() hcl.Diagnostics

func (*Snapshot) Files

func (s *Snapshot) Files() map[string]*hcl.File

func (*Snapshot) LocalsBlocks

func (s *Snapshot) LocalsBlocks() []*hcl.Block

func (*Snapshot) LockFile

func (s *Snapshot) LockFile() (*hcl.File, hcl.Diagnostics)

func (*Snapshot) ModuleBlockViews

func (s *Snapshot) ModuleBlockViews() []ModuleBlockView

func (*Snapshot) ModuleBlocks

func (s *Snapshot) ModuleBlocks() []*hcl.Block

func (*Snapshot) ParseHCLFile

func (s *Snapshot) ParseHCLFile(path string) (*hcl.File, hcl.Diagnostics, error)

func (*Snapshot) RemoteStateBlockViews

func (s *Snapshot) RemoteStateBlockViews() []RemoteStateBlockView

func (*Snapshot) SharedDiagnostics

func (s *Snapshot) SharedDiagnostics() hcl.Diagnostics

func (*Snapshot) SharedFiles

func (s *Snapshot) SharedFiles() map[string]*hcl.File

func (*Snapshot) SharedTopLevelBlockIndex

func (s *Snapshot) SharedTopLevelBlockIndex() map[string][]*hcl.Block

func (*Snapshot) TerraformBlockViews

func (s *Snapshot) TerraformBlockViews() []TerraformBlockView

func (*Snapshot) TerraformBlocks

func (s *Snapshot) TerraformBlocks() []*hcl.Block

func (*Snapshot) TopLevelBlockIndex

func (s *Snapshot) TopLevelBlockIndex() map[string][]*hcl.Block

func (*Snapshot) VariableBlockViews

func (s *Snapshot) VariableBlockViews() []VariableBlockView

func (*Snapshot) VariableBlocks

func (s *Snapshot) VariableBlocks() []*hcl.Block

type TerraformBlockView

type TerraformBlockView struct {
	// contains filtered or unexported fields
}

func (TerraformBlockView) BackendBlocks

func (v TerraformBlockView) BackendBlocks() ([]BackendBlockView, hcl.Diagnostics)

func (TerraformBlockView) RequiredProviderBlocks

func (v TerraformBlockView) RequiredProviderBlocks() ([]*hcl.Block, hcl.Diagnostics)

type VariableBlockView

type VariableBlockView struct {
	// contains filtered or unexported fields
}

func (VariableBlockView) DefaultValue

func (v VariableBlockView) DefaultValue() (cty.Value, bool, hcl.Diagnostics)

func (VariableBlockView) Name

func (v VariableBlockView) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL