command

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

type TestContext

type TestContext struct {
	BaseDir string
	Server  *httptest.Server
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL