model

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 3 Imported by: 0

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