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: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandUsage = []Command{
	{"api-server", "Start the API server"},
	{"config", "Get or set a configuration value"},
	{"install", "Install one or more plugins"},
	{"upgrade", "Upgrade application containers"},
	{"useradd", "Add a user"},
	{"userdel", "Remove a user"},
}

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 CWMan

type CWMan struct {
	*Cli.Cli
	container.DockerClient
	// contains filtered or unexported fields
}

func Init

func Init(docker container.DockerClient) *CWMan

func (*CWMan) CmdAPIServer

func (cli *CWMan) CmdAPIServer(args ...string) (err error)

func (*CWMan) CmdConfig

func (cli *CWMan) CmdConfig(args ...string) error

func (*CWMan) CmdDeploy

func (cli *CWMan) CmdDeploy(args ...string) (err error)

func (*CWMan) CmdGitSSH

func (cli *CWMan) CmdGitSSH(args ...string) (err error)

func (*CWMan) CmdInstallPlugin

func (cli *CWMan) CmdInstallPlugin(args ...string) error

func (*CWMan) CmdSshd

func (cli *CWMan) CmdSshd(args ...string) error

func (*CWMan) CmdUpdateProxy

func (cli *CWMan) CmdUpdateProxy(args ...string) (err error)

func (*CWMan) CmdUpgrade

func (cli *CWMan) CmdUpgrade(args ...string) error

func (*CWMan) CmdUserAdd

func (cli *CWMan) CmdUserAdd(args ...string) (err error)

func (*CWMan) CmdUserDel

func (cli *CWMan) CmdUserDel(args ...string) error

func (*CWMan) Command

func (cli *CWMan) Command(name string) func(...string) error

func (*CWMan) Subcmd

func (cli *CWMan) 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

type CustomUser

type CustomUser struct {
	userdb.BasicUser `bson:",inline"`
	Email            string
}

Jump to

Keyboard shortcuts

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