model

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 3 Imported by: 1 module, 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 BackendConfig

type BackendConfig struct {
	Type   string
	Config map[string]string
}

type Dependency

type Dependency struct {
	From            *discovery.Module
	To              *discovery.Module
	Type            string
	RemoteStateName string
}

type LibraryDependency

type LibraryDependency struct {
	ModuleCall  *ModuleCall
	LibraryPath string
}

type LockedProvider

type LockedProvider struct {
	Source      string
	Version     string
	Constraints string
}

type ModuleCall

type ModuleCall struct {
	Name         string
	Source       string
	Version      string
	IsLocal      bool
	ResolvedPath string
}

type ModuleDependencies

type ModuleDependencies struct {
	Module              *discovery.Module
	Dependencies        []*Dependency
	LibraryDependencies []*LibraryDependency
	DependsOn           []string
	Errors              []error
}

type ParsedModule

type ParsedModule struct {
	Path              string
	Locals            map[string]cty.Value
	Variables         map[string]cty.Value
	Backend           *BackendConfig
	RequiredProviders []*RequiredProvider
	LockedProviders   []*LockedProvider
	RemoteStates      []*RemoteStateRef
	ModuleCalls       []*ModuleCall
	Files             map[string]*hcl.File
	Diagnostics       hcl.Diagnostics
	// contains filtered or unexported fields
}

func NewParsedModule

func NewParsedModule(modulePath string) *ParsedModule

func (*ParsedModule) AddDiags

func (pm *ParsedModule) AddDiags(diags hcl.Diagnostics)

func (*ParsedModule) AdoptDiags

func (pm *ParsedModule) AdoptDiags(diags hcl.Diagnostics)

func (*ParsedModule) AdoptTopLevelBlocks

func (pm *ParsedModule) AdoptTopLevelBlocks(blocks map[string][]*hcl.Block)

func (*ParsedModule) SetTopLevelBlocks

func (pm *ParsedModule) SetTopLevelBlocks(blocks map[string][]*hcl.Block)

func (*ParsedModule) TopLevelBlocks

func (pm *ParsedModule) TopLevelBlocks() map[string][]*hcl.Block

type RemoteStateRef

type RemoteStateRef struct {
	Name         string
	Backend      string
	Config       map[string]hcl.Expression
	ForEach      hcl.Expression
	WorkspaceDir string
	RawBody      hcl.Body
}

type RequiredProvider

type RequiredProvider struct {
	Name              string
	Source            string
	VersionConstraint string
}

Jump to

Keyboard shortcuts

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