decoder

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedReader added in v0.35.0

type CombinedReader struct {
	ModuleReader
	StateReader
	RootReader
}

type ModuleReader added in v0.35.0

type ModuleReader interface {
	// LocalModuleMeta returns the module meta data for a local module. This is the result
	// of the [earlydecoder] when processing module files
	LocalModuleMeta(modPath string) (*tfmod.Meta, error)
}

type PathReader

type PathReader struct {
	StateReader  StateReader
	ModuleReader ModuleReader
	RootReader   RootReader
}

func (*PathReader) PathContext

func (pr *PathReader) PathContext(path lang.Path) (*decoder.PathContext, error)

PathContext returns a PathContext for the given path based on the language ID

func (*PathReader) Paths

func (pr *PathReader) Paths(ctx context.Context) []lang.Path

type RootReader added in v0.36.0

type RootReader interface {
	InstalledModulePath(rootPath string, normalizedSource string) (string, bool)
}

type StateReader

type StateReader interface {
	List() ([]*state.StackRecord, error)
	StackRecordByPath(modPath string) (*state.StackRecord, error)
	ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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