Documentation ¶
Index ¶
- func GetInstalledPlugins(ctx context.Context, pluginVersions map[string]*versionfile.InstalledVersion) (map[string]*plugin.PluginVersionString, error)
- func Install(ctx context.Context, plugin plugin.ResolvedPluginVersion, sub chan struct{}, ...) (...)
- type PluginConnection
- type PluginListItem
- type PluginRemoveReport
- type PluginRemoveReports
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 ¶
func Install(ctx context.Context, plugin plugin.ResolvedPluginVersion, sub chan struct{}, baseImageRef string, mediaTypesProvider ociinstaller.MediaTypeProvider, opts ...ociinstaller.PluginInstallOption) (*ociinstaller.OciImage[*ociinstaller.PluginImage, *ociinstaller.PluginImageConfig], error)
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()
Click to show internal directories.
Click to hide internal directories.