Documentation ¶
Index ¶
- type ModulesFeature
- func (f *ModulesFeature) AppendCompletionHooks(srvCtx context.Context, decoderContext decoder.DecoderContext)
- func (f *ModulesFeature) CoreRequirements(modPath string) (version.Constraints, error)
- func (f *ModulesFeature) DeclaredModuleCalls(modPath string) (map[string]tfmod.DeclaredModuleCall, error)
- func (f *ModulesFeature) Diagnostics(path string) diagnostics.Diagnostics
- func (s *ModulesFeature) LocalModuleMeta(modPath string) (*tfmod.Meta, error)
- func (f *ModulesFeature) MetadataReady(dir document.DirHandle) (<-chan struct{}, bool, error)
- func (f *ModulesFeature) ModuleInputs(modPath string) (map[string]tfmod.Variable, error)
- func (f *ModulesFeature) PathContext(path lang.Path) (*decoder.PathContext, error)
- func (f *ModulesFeature) Paths(ctx context.Context) []lang.Path
- func (f *ModulesFeature) ProviderRequirements(modPath string) (tfmod.ProviderRequirements, error)
- func (f *ModulesFeature) SetLogger(logger *log.Logger)
- func (f *ModulesFeature) Start(ctx context.Context)
- func (f *ModulesFeature) Stop()
- func (f *ModulesFeature) Telemetry(path string) map[string]interface{}
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 (*ModulesFeature) PathContext ¶
func (f *ModulesFeature) PathContext(path lang.Path) (*decoder.PathContext, error)
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{}
Click to show internal directories.
Click to hide internal directories.