Documentation ¶
Index ¶
- Variables
- type CWCli
- func (cli *CWCli) CmdAppClone(args ...string) error
- func (cli *CWCli) CmdAppCreate(args ...string) error
- func (cli *CWCli) CmdAppDeploy(args ...string) error
- func (cli *CWCli) CmdAppDump(args ...string) (err error)
- func (cli *CWCli) CmdAppEnv(args ...string) error
- func (cli *CWCli) CmdAppInfo(args ...string) error
- func (cli *CWCli) CmdAppOpen(args ...string) error
- func (cli *CWCli) CmdAppRemove(args ...string) error
- func (cli *CWCli) CmdAppRestart(args ...string) error
- func (cli *CWCli) CmdAppRestore(args ...string) (err error)
- func (cli *CWCli) CmdAppSSH(args ...string) error
- func (cli *CWCli) CmdAppScale(args ...string) error
- func (cli *CWCli) CmdAppServiceAdd(args ...string) error
- func (cli *CWCli) CmdAppServiceRemove(args ...string) error
- func (cli *CWCli) CmdAppStart(args ...string) error
- func (cli *CWCli) CmdAppStop(args ...string) error
- func (cli *CWCli) CmdAppUpload(args ...string) error
- func (cli *CWCli) CmdApps(args ...string) error
- func (cli *CWCli) CmdLogin(args ...string) error
- func (cli *CWCli) CmdLogout(args ...string) error
- func (cli *CWCli) CmdNamespace(args ...string) error
- func (cli *CWCli) CmdNamespaceRm(args ...string) error
- func (cli *CWCli) CmdPlugin(args ...string) (err error)
- func (cli *CWCli) CmdPluginInstall(args ...string) (err error)
- func (cli *CWCli) CmdPluginRemove(args ...string) (err error)
- func (cli *CWCli) CmdVersion(args ...string) error
- func (c *CWCli) Command(name string) func(...string) error
- func (c *CWCli) Connect() (err error)
- func (c *CWCli) ConnectAndLogin() (err error)
- func (c *CWCli) Subcmd(name string, synopses ...string) *flag.FlagSet
- type Command
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 ¶
func (*CWCli) CmdAppClone ¶
func (*CWCli) CmdAppCreate ¶
func (*CWCli) CmdAppDeploy ¶
func (*CWCli) CmdAppDump ¶
func (*CWCli) CmdAppInfo ¶
func (*CWCli) CmdAppOpen ¶
func (*CWCli) CmdAppRemove ¶
func (*CWCli) CmdAppRestart ¶
func (*CWCli) CmdAppRestore ¶
func (*CWCli) CmdAppScale ¶
func (*CWCli) CmdAppServiceAdd ¶
func (*CWCli) CmdAppServiceRemove ¶
func (*CWCli) CmdAppStart ¶
func (*CWCli) CmdAppStop ¶
func (*CWCli) CmdAppUpload ¶
func (*CWCli) CmdNamespace ¶
func (*CWCli) CmdNamespaceRm ¶
func (*CWCli) CmdPluginInstall ¶
func (*CWCli) CmdPluginRemove ¶
func (*CWCli) CmdVersion ¶
func (*CWCli) ConnectAndLogin ¶
Click to show internal directories.
Click to hide internal directories.