Documentation ¶
Overview ¶
Package hooks enables the implementation of hooks for dynamic autocompletion. Hooks should be added to this package and registered via AppendCompletionHooks in completion_hooks.go.
Index ¶
- type Hooks
- func (h *Hooks) LocalModuleSources(ctx context.Context, value cty.Value) ([]decoder.Candidate, error)
- func (h *Hooks) RegistryModuleSources(ctx context.Context, value cty.Value) ([]decoder.Candidate, error)
- func (h *Hooks) RegistryModuleVersions(ctx context.Context, value cty.Value) ([]decoder.Candidate, error)
- type RegistryModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
type Hooks struct { ModStore *state.ModuleStore RegistryClient registry.Client AlgoliaClient *search.Client Logger *log.Logger }
func (*Hooks) LocalModuleSources ¶
func (*Hooks) RegistryModuleSources ¶
type RegistryModule ¶
Click to show internal directories.
Click to hide internal directories.