modules

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModulesFeature

type ModulesFeature struct {
	Store *state.ModuleStore
	// contains filtered or unexported fields
}

ModulesFeature groups everything related to modules. Its internal state keeps track of all modules in the workspace.

func NewModulesFeature

func NewModulesFeature(eventbus *eventbus.EventBus, stateStore *globalState.StateStore, fs jobs.ReadOnlyFS, rootFeature fdecoder.RootReader, registryClient registry.Client) (*ModulesFeature, error)

func (*ModulesFeature) AppendCompletionHooks

func (f *ModulesFeature) AppendCompletionHooks(srvCtx context.Context, decoderContext decoder.DecoderContext)

func (*ModulesFeature) CoreRequirements

func (f *ModulesFeature) CoreRequirements(modPath string) (version.Constraints, error)

func (*ModulesFeature) DeclaredModuleCalls

func (f *ModulesFeature) DeclaredModuleCalls(modPath string) (map[string]tfmod.DeclaredModuleCall, error)

func (*ModulesFeature) Diagnostics

func (f *ModulesFeature) Diagnostics(path string) diagnostics.Diagnostics

func (*ModulesFeature) LocalModuleMeta added in v0.35.0

func (s *ModulesFeature) LocalModuleMeta(modPath string) (*tfmod.Meta, error)

func (*ModulesFeature) MetadataReady

func (f *ModulesFeature) MetadataReady(dir document.DirHandle) (<-chan struct{}, bool, error)

MetadataReady checks if a given module exists and if it's metadata has been loaded. We need the metadata to enable other features like validation for variables.

func (*ModulesFeature) ModuleInputs

func (f *ModulesFeature) ModuleInputs(modPath string) (map[string]tfmod.Variable, error)

func (*ModulesFeature) PathContext

func (f *ModulesFeature) PathContext(path lang.Path) (*decoder.PathContext, error)

func (*ModulesFeature) Paths

func (f *ModulesFeature) Paths(ctx context.Context) []lang.Path

func (*ModulesFeature) ProviderRequirements

func (f *ModulesFeature) ProviderRequirements(modPath string) (tfmod.ProviderRequirements, error)

func (*ModulesFeature) SetLogger

func (f *ModulesFeature) SetLogger(logger *log.Logger)

func (*ModulesFeature) Start

func (f *ModulesFeature) Start(ctx context.Context)

Start starts the features separate goroutine. It listens to various events from the EventBus and performs corresponding actions.

func (*ModulesFeature) Stop

func (f *ModulesFeature) Stop()

func (*ModulesFeature) Telemetry

func (f *ModulesFeature) Telemetry(path string) map[string]interface{}

Directories

Path Synopsis
Package hooks enables the implementation of hooks for dynamic autocompletion.
Package hooks enables the implementation of hooks for dynamic autocompletion.

Jump to

Keyboard shortcuts

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