extract

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDefault

func RunDefault(ctx *Context)

Types

type BackendConfig

type BackendConfig = model.BackendConfig

type Context

type Context struct {
	Source      Source
	EvalBuilder evalctx.Builder
	Sink        Sink
}

type LockedProvider

type LockedProvider = model.LockedProvider

type ModuleCall

type ModuleCall = model.ModuleCall

type RemoteStateRef

type RemoteStateRef = model.RemoteStateRef

type RequiredProvider

type RequiredProvider = model.RequiredProvider

type Sink

type Sink interface {
	Path() string
	Locals() map[string]cty.Value
	Variables() map[string]cty.Value
	AddDiags(hcl.Diagnostics)
	SetLocal(name string, value cty.Value)
	SetVariable(name string, value cty.Value)
	SetBackend(BackendConfig)
	AppendRequiredProvider(RequiredProvider)
	AppendLockedProvider(LockedProvider)
	AppendRemoteState(RemoteStateRef)
	AppendModuleCall(ModuleCall)
}

type Source

type Source interface {
	LocalsBlocks() []*hcl.Block
	VariableBlockViews() []source.VariableBlockView
	TerraformBlockViews() []source.TerraformBlockView
	RemoteStateBlockViews() []source.RemoteStateBlockView
	ModuleBlockViews() []source.ModuleBlockView
	LockFile() (*hcl.File, hcl.Diagnostics)
	ParseHCLFile(path string) (*hcl.File, hcl.Diagnostics, error)
}

Jump to

Keyboard shortcuts

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