Documentation ¶
Overview ¶
Package pluginsupplier provides installed plugins information
Index ¶
- func FilterPluginsByActiveContextType(plugins []cli.PluginInfo) (result []cli.PluginInfo, err error)
- func GetInstalledPlugins() ([]cli.PluginInfo, error)
- func GetInstalledServerPlugins() ([]cli.PluginInfo, error)
- func GetInstalledStandalonePlugins() ([]cli.PluginInfo, error)
- func IsStandalonePluginInstalled(name string, target configtypes.Target, version string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterPluginsByActiveContextType ¶ added in v1.3.0
func FilterPluginsByActiveContextType(plugins []cli.PluginInfo) (result []cli.PluginInfo, err error)
FilterPluginsByActiveContextType will exclude any plugin with an explicit setting of supportedContextType that does not match the type of any active CLI context Separating this conditional check so GetInstalledStandalonePlugins can continue to return all standalone plugins regardless of supportedContextType
func GetInstalledPlugins ¶
func GetInstalledPlugins() ([]cli.PluginInfo, error)
GetInstalledPlugins return the installed plugins( both standalone and server plugins )
func GetInstalledServerPlugins ¶
func GetInstalledServerPlugins() ([]cli.PluginInfo, error)
GetInstalledServerPlugins returns the installed server plugins.
func GetInstalledStandalonePlugins ¶
func GetInstalledStandalonePlugins() ([]cli.PluginInfo, error)
GetInstalledStandalonePlugins returns the installed standalone plugins.
func IsStandalonePluginInstalled ¶ added in v1.1.0
func IsStandalonePluginInstalled(name string, target configtypes.Target, version string) bool
IsStandalonePluginInstalled returns true if standalone plugin is already installed
Types ¶
This section is empty.