Documentation ¶
Index ¶
- func GetPluginBinPath(installed types.InstalledPlugin) string
- func GetPluginMetadataFromGithub(name string) (types.PluginMetadata, error)
- func GetPluginMetadataFromLocalCache(name string) (types.PluginMetadata, error)
- func GetPluginsList(nameOnly bool) ([]string, error)
- func GetPluginsListFromLocalCache(nameOnly bool) ([]string, error)
- func GetPluginsListFromPath(nameOnly bool) ([]string, error)
- func InstallPlugin(plugin types.PluginMetadata) error
- func InstallPluginFromGithub(name string) error
- func SelectProperVersionAndPlatform(plugin types.PluginMetadata) (types.PluginVersionMetadata, types.PluginVersionForPlatform, error)
- func UninstallBrokenPlugins() error
- func UninstallPlugin(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPluginBinPath ¶
func GetPluginBinPath(installed types.InstalledPlugin) string
GetPluginBinPath returns the path to the plugin's entrypoint.
func GetPluginMetadataFromGithub ¶
func GetPluginMetadataFromGithub(name string) (types.PluginMetadata, error)
GetPluginMetadataFromGithub returns the plugin metadata from the Github repo.
func GetPluginMetadataFromLocalCache ¶
func GetPluginMetadataFromLocalCache(name string) (types.PluginMetadata, error)
GetPluginMetadataFromLocalCache returns the plugin metadata from the storage directory.
func GetPluginsList ¶
GetPluginsList looks for plugins in the given paths.
func GetPluginsListFromLocalCache ¶
GetPluginsListFromLocalCache gets all the plugins in the storage directory.
func GetPluginsListFromPath ¶
GetPluginsListFromPath get all the plugins with a valid prefix that are on the PATH.
func InstallPlugin ¶
func InstallPlugin(plugin types.PluginMetadata) error
InstallPlugin installs a plugin given the the plugin metadata.
func InstallPluginFromGithub ¶
InstallPluginFromGithub downloads and installs a plugin from the Github repo.
func SelectProperVersionAndPlatform ¶
func SelectProperVersionAndPlatform(plugin types.PluginMetadata) (types.PluginVersionMetadata, types.PluginVersionForPlatform, error)
SelectProperVersionAndPlatform selects an appropriate version and platform for the plugin.
func UninstallBrokenPlugins ¶
func UninstallBrokenPlugins() error
UninstallBrokenPlugins uninstalls any broken plugins not mentioned in the cache.
func UninstallPlugin ¶
UninstallPlugin uninstalls an installed plugin.
Types ¶
This section is empty.