Documentation ¶
Overview ¶
Package pluginmanager is resposible for plugin discovery and installation
Index ¶
- Constants
- func AvailablePlugins(serverName string) ([]plugin.Discovered, error)
- func Clean() error
- func DeletePlugin(serverName, pluginName string) error
- func DescribePlugin(serverName, pluginName string) (desc *cliv1alpha1.PluginDescriptor, err error)
- func DiscoverPlugins(serverName string) (serverPlugins, standalonePlugins []plugin.Discovered, err error)
- func DiscoverServerPlugins(serverName string) (plugins []plugin.Discovered, err error)
- func DiscoverStandalonePlugins() (plugins []plugin.Discovered, err error)
- func InitializePlugin(serverName, pluginName string) error
- func InstallPlugin(serverName, pluginName, version string) error
- func InstalledPlugins(serverName string, exclude ...string) (serverPlugins, standalonePlugins []cliv1alpha1.PluginDescriptor, err error)
- func UpgradePlugin(serverName, pluginName, version string) error
- func ValidatePlugin(p *cliv1alpha1.PluginDescriptor) (err error)
Constants ¶
const ( PluginStatusInstalled = "installed" PluginStatusNotInstalled = "not installed" PluginScopeStandalone = "Stand-Alone" PluginScopeContext = "Context" )
Plugin status and scope constants
Variables ¶
This section is empty.
Functions ¶
func AvailablePlugins ¶
func AvailablePlugins(serverName string) ([]plugin.Discovered, error)
AvailablePlugins returns the list of available plugins including discovered and installed plugins
func DeletePlugin ¶
DeletePlugin deletes a plugin.
func DescribePlugin ¶
func DescribePlugin(serverName, pluginName string) (desc *cliv1alpha1.PluginDescriptor, err error)
DescribePlugin describes a plugin.
func DiscoverPlugins ¶
func DiscoverPlugins(serverName string) (serverPlugins, standalonePlugins []plugin.Discovered, err error)
DiscoverPlugins returns the available plugins that can be used with the given server
func DiscoverServerPlugins ¶
func DiscoverServerPlugins(serverName string) (plugins []plugin.Discovered, err error)
DiscoverServerPlugins returns the available plugins associated with the given server
func DiscoverStandalonePlugins ¶
func DiscoverStandalonePlugins() (plugins []plugin.Discovered, err error)
DiscoverStandalonePlugins returns the available standalone plugins
func InitializePlugin ¶
InitializePlugin initializes the plugin configuration
func InstallPlugin ¶
InstallPlugin installs a plugin from the given repository.
func InstalledPlugins ¶
func InstalledPlugins(serverName string, exclude ...string) (serverPlugins, standalonePlugins []cliv1alpha1.PluginDescriptor, err error)
InstalledPlugins returns the installed plugins.
func UpgradePlugin ¶
UpgradePlugin upgrades a plugin from the given repository.
func ValidatePlugin ¶
func ValidatePlugin(p *cliv1alpha1.PluginDescriptor) (err error)
ValidatePlugin validates the plugin descriptor.
Types ¶
This section is empty.