command

package
v0.0.0-...-3fa228a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

Container contains the options for querying containers.

func (*Container) Parse

func (cCmd *Container) Parse(args []string) error

Parse parses the command line arguments for the container command.

func (*Container) Run

func (cCmd *Container) Run() int

Run retrieves and prints the requested containers.

func (*Container) Usage

func (cCmd *Container) Usage()

Usage prints the usage for the container command.

type DaemonConnectError

type DaemonConnectError struct {
	// contains filtered or unexported fields
}

DaemonConnectError represents when we are unable to connect to the Quilt daemon.

func (DaemonConnectError) Error

func (err DaemonConnectError) Error() string

type Get

type Get struct {
	// contains filtered or unexported fields
}

Get contains the options for downloading imports.

func (*Get) Parse

func (gCmd *Get) Parse(args []string) error

Parse parses the command line arguments for the get command.

func (*Get) Run

func (gCmd *Get) Run() int

Run downloads the requested import.

func (*Get) Usage

func (gCmd *Get) Usage()

Usage prints the usage for the get command.

type Inspect

type Inspect struct {
	// contains filtered or unexported fields
}

Inspect contains the options for inspecting Stitches.

func (*Inspect) Parse

func (iCmd *Inspect) Parse(args []string) error

Parse parses the command line arguments for the inspect command.

func (*Inspect) Run

func (iCmd *Inspect) Run() int

Run inspects the provided Stitch.

func (*Inspect) Usage

func (iCmd *Inspect) Usage()

Usage prints the usage for the inspect command.

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

Machine contains the options for querying machines.

func (*Machine) Parse

func (mCmd *Machine) Parse(args []string) error

Parse parses the command line arguments for the machine command.

func (*Machine) Run

func (mCmd *Machine) Run() int

Run retrieves and prints the requested machines.

func (*Machine) Usage

func (mCmd *Machine) Usage()

Usage prints the usage for the machine command.

type Run

type Run struct {
	// contains filtered or unexported fields
}

Run contains the options for running Stitches.

func (*Run) Parse

func (rCmd *Run) Parse(args []string) error

Parse parses the command line arguments for the run command.

func (*Run) Run

func (rCmd *Run) Run() int

Run starts the run for the provided Stitch.

func (*Run) Usage

func (rCmd *Run) Usage()

Usage prints the usage for the run command.

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

SSH contains the options for SSHing into machines.

func (*SSH) Parse

func (sCmd *SSH) Parse(rawArgs []string) error

Parse parses the command line arguments for the ssh command.

func (*SSH) Run

func (sCmd *SSH) Run() int

Run SSHs into the given machine.

func (*SSH) Usage

func (sCmd *SSH) Usage()

Usage prints the usage for the ssh command.

type Stop

type Stop struct {
	// contains filtered or unexported fields
}

Stop contains the options for stopping namespaces.

func (*Stop) Parse

func (sCmd *Stop) Parse(args []string) error

Parse parses the command line arguments for the stop command.

func (*Stop) Run

func (sCmd *Stop) Run() int

Run stops the given namespace.

func (*Stop) Usage

func (sCmd *Stop) Usage()

Usage prints the usage for the stop command.

type SubCommand

type SubCommand interface {
	// The function to run once the flags have been parsed. The return value
	// is the exit code.
	Run() int

	// Give the command line arguments to the subcommand so that it can parse
	// it for later execution.
	Parse(args []string) error

	// Print out the usage of the SubCommand.
	Usage()
}

SubCommand defines the conversion between the user CLI flags and functionality within the code.

Jump to

Keyboard shortcuts

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