plugin

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstalledPlugins added in v0.20.0

func GetInstalledPlugins(ctx context.Context, pluginVersions map[string]*versionfile.InstalledVersion) (map[string]*plugin.PluginVersionString, error)

GetInstalledPlugins returns the list of plugins keyed by the shortname (org/name) and its specific version Does not validate/check of available connections

func Install

Install installs a plugin in the local file system

Types

type PluginConnection added in v1.0.0

type PluginConnection interface {
	GetDeclRange() hclhelpers.Range
	GetName() string
	GetDisplayName() string
}

type PluginListItem

type PluginListItem struct {
	Name        string
	Version     *plugin.PluginVersionString
	Connections []string
}

PluginListItem is a struct representing an item in the list of plugins

func List

func List(ctx context.Context, pluginConnectionMap map[string][]PluginConnection, pluginVersions map[string]*versionfile.InstalledVersion) ([]PluginListItem, error)

List returns all installed plugins

type PluginRemoveReport added in v1.0.0

type PluginRemoveReport struct {
	Image       *ociinstaller.ImageRef
	ShortName   string
	Connections []PluginConnection
}

func Remove

func Remove(ctx context.Context, image string, pluginConnections map[string][]PluginConnection) (*PluginRemoveReport, error)

Remove removes an installed plugin

type PluginRemoveReports added in v1.0.0

type PluginRemoveReports []PluginRemoveReport

func (PluginRemoveReports) Print added in v1.0.0

func (r PluginRemoveReports) Print()

Jump to

Keyboard shortcuts

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