Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownShell = errors.New("Error: Unknown shell") ErrNoMachineSpecified = errors.New("Error: Expected to get one or more machine names as arguments.") ErrExpectedOneMachine = errors.New("Error: Expected one machine name as an argument.") )
View Source
var Commands = []cli.Command{ { Name: "active", Usage: "Print which machine is active", Action: cmdActive, }, { Name: "config", Usage: "Print the connection config for machine", Description: "Argument is a machine name.", Action: cmdConfig, Flags: []cli.Flag{ cli.BoolFlag{ Name: "swarm", Usage: "Display the Swarm config instead of the Docker daemon", }, }, }, { Flags: append( drivers.GetCreateFlags(), sharedCreateFlags..., ), Name: "create", Usage: "Create a machine", Action: cmdCreate, }, { Name: "env", Usage: "Display the commands to set up the environment for the Docker client", Description: "Argument is a machine name.", Action: cmdEnv, Flags: []cli.Flag{ cli.BoolFlag{ Name: "swarm", Usage: "Display the Swarm config instead of the Docker daemon", }, cli.StringFlag{ Name: "shell", Usage: "Force environment to be configured for specified shell", }, cli.BoolFlag{ Name: "unset, u", Usage: "Unset variables instead of setting them", }, }, }, { Name: "inspect", Usage: "Inspect information about a machine", Description: "Argument is a machine name.", Action: cmdInspect, Flags: []cli.Flag{ cli.StringFlag{ Name: "format, f", Usage: "Format the output using the given go template.", Value: "", }, }, }, { Name: "ip", Usage: "Get the IP address of a machine", Description: "Argument(s) are one or more machine names.", Action: cmdIp, }, { Name: "kill", Usage: "Kill a machine", Description: "Argument(s) are one or more machine names.", Action: cmdKill, }, { Flags: []cli.Flag{ cli.BoolFlag{ Name: "quiet, q", Usage: "Enable quiet mode", }, cli.StringSliceFlag{ Name: "filter", Usage: "Filter output based on conditions provided", Value: &cli.StringSlice{}, }, }, Name: "ls", Usage: "List machines", Action: cmdLs, }, { Name: "regenerate-certs", Usage: "Regenerate TLS Certificates for a machine", Description: "Argument(s) are one or more machine names.", Action: cmdRegenerateCerts, Flags: []cli.Flag{ cli.BoolFlag{ Name: "force, f", Usage: "Force rebuild and do not prompt", }, }, }, { Name: "restart", Usage: "Restart a machine", Description: "Argument(s) are one or more machine names.", Action: cmdRestart, }, { Flags: []cli.Flag{ cli.BoolFlag{ Name: "force, f", Usage: "Remove local configuration even if machine cannot be removed", }, }, Name: "rm", Usage: "Remove a machine", Description: "Argument(s) are one or more machine names.", Action: cmdRm, }, { Name: "ssh", Usage: "Log into or run a command on a machine with SSH.", Description: "Arguments are [machine-name] [command]", Action: cmdSsh, }, { Name: "scp", Usage: "Copy files between machines", Description: "Arguments are [machine:][path] [machine:][path].", Action: cmdScp, Flags: []cli.Flag{ cli.BoolFlag{ Name: "recursive, r", Usage: "Copy files recursively (required to copy directories)", }, }, }, { Name: "start", Usage: "Start a machine", Description: "Argument(s) are one or more machine names.", Action: cmdStart, }, { Name: "status", Usage: "Get the status of a machine", Description: "Argument is a machine name.", Action: cmdStatus, }, { Name: "stop", Usage: "Stop a machine", Description: "Argument(s) are one or more machine names.", Action: cmdStop, }, { Name: "upgrade", Usage: "Upgrade a machine to the latest version of Docker", Description: "Argument(s) are one or more machine names.", Action: cmdUpgrade, }, { Name: "url", Usage: "Get the URL of a machine", Description: "Argument is a machine name.", Action: cmdUrl, }, }
View Source
var (
ErrMalformedInput = fmt.Errorf("The input was malformed")
)
Functions ¶
This section is empty.
Types ¶
type FilterOptions ¶
FilterOptions -
Click to show internal directories.
Click to hide internal directories.