Documentation ¶
Index ¶
- Variables
- func GetMatchingPlatform(p index.Plugin) (index.Platform, bool, error)
- func Install(p environment.Paths, plugin index.Plugin, forceHEAD bool, ...) error
- func ListInstalledPlugins(installDir, binDir string) (map[string]string, error)
- func Remove(p environment.Paths, name string) error
- func Upgrade(p environment.Paths, plugin index.Plugin) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIsAlreadyInstalled = errors.New("can't install, the newest version is already installed") ErrIsNotInstalled = errors.New("plugin is not installed") ErrIsAlreadyUpgraded = errors.New("can't upgrade, the newest version is already installed") )
Plugin Lifecycle Errors
Functions ¶
func GetMatchingPlatform ¶
GetMatchingPlatform finds the platform spec in the specified plugin that matches the OS/arch of the current machine (can be overridden via KREW_OS and/or KREW_ARCH).
func Install ¶
func Install(p environment.Paths, plugin index.Plugin, forceHEAD bool, forceDownloadFile string) error
Install will download and install a plugin. The operation tries to not get the plugin dir in a bad state if it fails during the process.
func ListInstalledPlugins ¶
ListInstalledPlugins returns a list of all name:version for all plugins.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.