decoder

package
v0.35.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 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 {
	RootReader
	StateReader
}

type PathReader

type PathReader struct {
	RootReader  RootReader
	StateReader StateReader
}

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 {
	InstalledModuleCalls(modPath string) (map[string]tfmod.InstalledModuleCall, error)
	TerraformVersion(modPath string) *version.Version
	InstalledModulePath(rootPath string, normalizedSource string) (string, bool)
}

type StateReader

type StateReader interface {
	DeclaredModuleCalls(modPath string) (map[string]tfmod.DeclaredModuleCall, error)
	LocalModuleMeta(modPath string) (*tfmod.Meta, error)
	ModuleRecordByPath(modPath string) (*state.ModuleRecord, error)
	List() ([]*state.ModuleRecord, error)

	RegistryModuleMeta(addr tfaddr.Module, cons version.Constraints) (*registry.ModuleData, 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