plugin

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureConfiguredPlugins

func EnsureConfiguredPlugins(engineType engine.EngineType, version string) (int, error)

EnsureConfiguredPlugins collects the plugins from both the global CLI config, as well those within the current configuration context, such as config files within the working directory

func EnsurePlugin

func EnsurePlugin(pluginName string, engineType engine.EngineType, version string) error

func EnsurePluginDir

func EnsurePluginDir(version string) (string, error)

func EnsurePlugins

func EnsurePlugins(plugins []string, engineType engine.EngineType, version string, saveDefault bool) (int, error)

func GetPluginLocalPath

func GetPluginLocalPath(
	pluginName string,
	engineType engine.EngineType,
	version string,
) (fileName string, localPath string, err error)

GetPluginLocalPath returns the plugin file name and the local file path for the specified plugin name, engine type, and version.

func ListDefaultPlugins

func ListDefaultPlugins() ([]string, error)

func ListVersionDirs

func ListVersionDirs() ([]string, error)

ListVersionDirs returns the names of the versioned directories under the plugin base dir. This is only the list of versions, not fully qualified paths.

func UninstallPlugin

func UninstallPlugin(pluginName string, engineType engine.EngineType, version string) (bool, error)

UninstallPlugin removes a single plugin from disk. Returns true if the plugin was installed and removed, false if it wasn't installed.

func UninstallPlugins

func UninstallPlugins(plugins []string, engineType engine.EngineType, version string, removeDefault bool) (int, error)

UninstallPlugins removes the specified plugins from disk and optionally from the default plugins configuration.

Types

type PluginMetadata

type PluginMetadata struct {
	Name       string
	EngineType engine.EngineType
	Version    string
}

func List

func List(engineType engine.EngineType, version string) ([]PluginMetadata, error)

List returns a list of available plugins for the specified engine type and version.

Jump to

Keyboard shortcuts

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