cmds

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: GPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandUsage = []Command{
	{"login", "Login to a Cloudway server"},
	{"logout", "Log out from a Cloudway server"},
	{"namespace", "Get or set application namespace"},
	{"namespace:set", "Set to a new namespace"},
	{"namespace:rm", "Remove the namespace"},
	{"app", "Manage applications"},
	{"app:create", "Create application"},
	{"app:remove", "Permanently remove an application"},
	{"app:start", "Start an application"},
	{"app:stop", "Stop an application"},
	{"app:restart", "Restart an application"},
	{"app:clone", "Clone application source code"},
	{"app:deploy", "Deploy an application"},
	{"app:upload", "Upload an application repository"},
	{"app:dump", "Dump application data"},
	{"app:restore", "Restore application data"},
	{"app:scale", "Scale an application"},
	{"app:info", "Show application information"},
	{"app:env", "Get or set application environment variables"},
	{"app:open", "Open the application in a web brower"},
	{"app:ssh", "Log into application console via SSH"},
	{"app:service:add", "Add new service to the application"},
	{"app:service:rm", "Remove service from the application"},
	{"plugin", "Show plugin information"},
	{"plugin:install", "Install a user defined plugin"},
	{"plugin:remove", "Remove a user defined plugin"},
	{"version", "Show the version information"},
}

Commands lists the top level commands and their short usage

View Source
var Commands = make(map[string]Command)

Functions

This section is empty.

Types

type CWCli

type CWCli struct {
	*cli.Cli

	*client.APIClient
	// contains filtered or unexported fields
}

func Init

func Init(host string, stdout, stderr io.Writer) *CWCli

func (*CWCli) CmdAppClone

func (cli *CWCli) CmdAppClone(args ...string) error

func (*CWCli) CmdAppCreate

func (cli *CWCli) CmdAppCreate(args ...string) error

func (*CWCli) CmdAppDeploy

func (cli *CWCli) CmdAppDeploy(args ...string) error

func (*CWCli) CmdAppDump

func (cli *CWCli) CmdAppDump(args ...string) (err error)

func (*CWCli) CmdAppEnv

func (cli *CWCli) CmdAppEnv(args ...string) error

func (*CWCli) CmdAppInfo

func (cli *CWCli) CmdAppInfo(args ...string) error

func (*CWCli) CmdAppOpen

func (cli *CWCli) CmdAppOpen(args ...string) error

func (*CWCli) CmdAppRemove

func (cli *CWCli) CmdAppRemove(args ...string) error

func (*CWCli) CmdAppRestart

func (cli *CWCli) CmdAppRestart(args ...string) error

func (*CWCli) CmdAppRestore

func (cli *CWCli) CmdAppRestore(args ...string) (err error)

func (*CWCli) CmdAppSSH

func (cli *CWCli) CmdAppSSH(args ...string) error

func (*CWCli) CmdAppScale

func (cli *CWCli) CmdAppScale(args ...string) error

func (*CWCli) CmdAppServiceAdd

func (cli *CWCli) CmdAppServiceAdd(args ...string) error

func (*CWCli) CmdAppServiceRemove

func (cli *CWCli) CmdAppServiceRemove(args ...string) error

func (*CWCli) CmdAppStart

func (cli *CWCli) CmdAppStart(args ...string) error

func (*CWCli) CmdAppStop

func (cli *CWCli) CmdAppStop(args ...string) error

func (*CWCli) CmdAppUpload

func (cli *CWCli) CmdAppUpload(args ...string) error

func (*CWCli) CmdApps

func (cli *CWCli) CmdApps(args ...string) error

func (*CWCli) CmdLogin

func (cli *CWCli) CmdLogin(args ...string) error

func (*CWCli) CmdLogout

func (cli *CWCli) CmdLogout(args ...string) error

func (*CWCli) CmdNamespace

func (cli *CWCli) CmdNamespace(args ...string) error

func (*CWCli) CmdNamespaceRm

func (cli *CWCli) CmdNamespaceRm(args ...string) error

func (*CWCli) CmdPlugin

func (cli *CWCli) CmdPlugin(args ...string) (err error)

func (*CWCli) CmdPluginInstall

func (cli *CWCli) CmdPluginInstall(args ...string) (err error)

func (*CWCli) CmdPluginRemove

func (cli *CWCli) CmdPluginRemove(args ...string) (err error)

func (*CWCli) CmdVersion

func (cli *CWCli) CmdVersion(args ...string) error

func (*CWCli) Command

func (c *CWCli) Command(name string) func(...string) error

func (*CWCli) Connect

func (c *CWCli) Connect() (err error)

func (*CWCli) ConnectAndLogin

func (c *CWCli) ConnectAndLogin() (err error)

func (*CWCli) Subcmd

func (c *CWCli) Subcmd(name string, synopses ...string) *flag.FlagSet

type Command

type Command struct {
	Name        string
	Description string
}

Command is the struct containing the command name and description

Jump to

Keyboard shortcuts

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