plugin

package
v0.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstalledPlugins

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 PluginNameVersion

type PluginNameVersion struct {
	Name    string
	Version *plugin.PluginVersionString
}

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

func Get

func Get(_ context.Context, pluginVersions map[string]*versionfile.InstalledVersion, imageRef string) (*PluginNameVersion, error)

Get returns one installed plugin

func List

func List(ctx context.Context, pluginVersions map[string]*versionfile.InstalledVersion, fileNameFilter *string) ([]PluginNameVersion, error)

List returns all installed plugins

type PluginRemoveReport

type PluginRemoveReport struct {
	Image     *ociinstaller.ImageRef
	ShortName string
}

func Remove

func Remove(ctx context.Context, image string) (*PluginRemoveReport, error)

Remove removes an installed plugin

type PluginRemoveReports

type PluginRemoveReports []PluginRemoveReport

func (PluginRemoveReports) Print

func (r PluginRemoveReports) Print()

Jump to

Keyboard shortcuts

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