hooks

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

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

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 (h *Hooks) LocalModuleSources(ctx context.Context, value cty.Value) ([]decoder.Candidate, error)

func (*Hooks) RegistryModuleSources

func (h *Hooks) RegistryModuleSources(ctx context.Context, value cty.Value) ([]decoder.Candidate, error)

func (*Hooks) RegistryModuleVersions

func (h *Hooks) RegistryModuleVersions(ctx context.Context, value cty.Value) ([]decoder.Candidate, error)

type RegistryModule

type RegistryModule struct {
	FullName    string `json:"full-name"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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