Documentation ¶
Index ¶
- type CmdContext
- func (p *CmdContext) Configure(pluginName string, name string, strParameters map[string]string, ...) error
- func (p *CmdContext) ConfigureHelp(pluginName string) error
- func (p *CmdContext) Info(pluginName string) error
- func (p *CmdContext) Install(pluginName, versionToInstall string) error
- func (p *CmdContext) InstallFile(pluginName string, sourcePath string) error
- func (p *CmdContext) InstallLatest(pluginName string) error
- func (p *CmdContext) List() error
- func (p *CmdContext) Remove(nodeName string, all bool, data bool, config bool, runtime bool, identity bool) error
- func (p *CmdContext) Search(query string) error
- func (p *CmdContext) ShowConfig(nodeName string) error
- func (p *CmdContext) ShowNode(nodeName string) error
- func (p *CmdContext) Start(nodeName string) error
- func (p *CmdContext) Status() error
- func (p *CmdContext) Stop(nodeName string) error
- func (p *CmdContext) Test(nodeName string) error
- func (p *CmdContext) Uninstall(pluginName string) error
- func (p *CmdContext) Upgrade(nodeName string) error
- type TestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdContext ¶
type CmdContext struct { HomeDir string Manifest config.Manifest RuntimeOS string RegistryURL string Debug bool }
CmdContext encapsulates data used by commands
func (*CmdContext) Configure ¶
func (p *CmdContext) Configure(pluginName string, name string, strParameters map[string]string, boolParameters map[string]bool, skipUpgradeCheck bool) error
Configure provides the logic for configuring a node using a particular plugin
func (*CmdContext) ConfigureHelp ¶
func (p *CmdContext) ConfigureHelp(pluginName string) error
ConfigureHelp provides the logic for the `configure` command without parameters
Since we cannot do much without a plugin as first parameter, it just prints help information
func (*CmdContext) Info ¶
func (p *CmdContext) Info(pluginName string) error
Info prints information about a particular plugin
func (*CmdContext) Install ¶
func (p *CmdContext) Install(pluginName, versionToInstall string) error
Install installs a particular version of a plugin
func (*CmdContext) InstallFile ¶
func (p *CmdContext) InstallFile(pluginName string, sourcePath string) error
InstallFile installs a plugin from a local file.
This is very useful during development to avoid having to upload a plugin to the registry every time we want to test a change.
func (*CmdContext) InstallLatest ¶
func (p *CmdContext) InstallLatest(pluginName string) error
InstallLatest installs the latest version of a plugin
func (*CmdContext) List ¶
func (p *CmdContext) List() error
List prints a list of the curreently installed plugins
func (*CmdContext) Remove ¶
func (p *CmdContext) Remove(nodeName string, all bool, data bool, config bool, runtime bool, identity bool) error
Remove removes the node or parts of it
func (*CmdContext) Search ¶
func (p *CmdContext) Search(query string) error
Search searches the registry for plugins
func (*CmdContext) ShowConfig ¶
func (p *CmdContext) ShowConfig(nodeName string) error
func (*CmdContext) ShowNode ¶
func (p *CmdContext) ShowNode(nodeName string) error
func (*CmdContext) Start ¶
func (p *CmdContext) Start(nodeName string) error
func (*CmdContext) Status ¶
func (p *CmdContext) Status() error
Status returns the status of a particular node
func (*CmdContext) Stop ¶
func (p *CmdContext) Stop(nodeName string) error
func (*CmdContext) Test ¶
func (p *CmdContext) Test(nodeName string) error
func (*CmdContext) Uninstall ¶
func (p *CmdContext) Uninstall(pluginName string) error
func (*CmdContext) Upgrade ¶
func (p *CmdContext) Upgrade(nodeName string) error