decoder

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedReader

type CombinedReader struct {
	ModuleReader
	StateReader
	RootReader
}

type ModuleReader

type ModuleReader interface {
	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

type RootReader interface {
	TerraformVersion(modPath string) *version.Version
}

type StateReader

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

Jump to

Keyboard shortcuts

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