command

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

Daemon contains the options for running the Quilt daemon.

func NewDaemonCommand

func NewDaemonCommand() *Daemon

NewDaemonCommand creates a new Daemon command instance.

func (*Daemon) InstallFlags

func (dCmd *Daemon) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags

func (*Daemon) Parse

func (dCmd *Daemon) Parse(args []string) error

Parse parses the command line arguments for the daemon command.

func (*Daemon) Run

func (dCmd *Daemon) Run() int

Run starts the daemon.

type Debug

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

Debug contains the options for downloading debug logs from machines and containers.

func NewDebugCommand

func NewDebugCommand() *Debug

NewDebugCommand creates a new Debug command instance.

func (*Debug) InstallFlags

func (dCmd *Debug) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*Debug) Parse

func (dCmd *Debug) Parse(args []string) error

Parse parses the command line arguments for the debug command.

func (Debug) Run

func (dCmd Debug) Run() int

Run downloads debug logs from the relevant machines and containers.

type Get

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

Get contains the options for downloading imports.

func (*Get) InstallFlags

func (gCmd *Get) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

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.

type Inspect

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

Inspect contains the options for inspecting Stitches.

func (*Inspect) InstallFlags

func (iCmd *Inspect) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

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.

type Log

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

Log is the structure for the `quilt logs` command.

func NewLogCommand

func NewLogCommand() *Log

NewLogCommand creates a new Log command instance.

func (*Log) InstallFlags

func (lCmd *Log) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*Log) Parse

func (lCmd *Log) Parse(args []string) error

Parse parses the command line arguments for the `logs` command.

func (*Log) Run

func (lCmd *Log) Run() int

Run finds the target container or machine minion and outputs logs.

type Minion

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

Minion contains the options for running the Quilt minion.

func NewMinionCommand

func NewMinionCommand() *Minion

NewMinionCommand creates a new Minion command instance.

func (*Minion) InstallFlags

func (mCmd *Minion) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*Minion) Parse

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

Parse parses the command line arguments for the minion command.

func (*Minion) Run

func (mCmd *Minion) Run() int

Run starts the minion.

type Ps

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

Ps contains the options for querying machines and containers.

func NewPsCommand

func NewPsCommand() *Ps

NewPsCommand creates a new Ps command instance.

func (*Ps) InstallFlags

func (pCmd *Ps) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags

func (*Ps) Parse

func (pCmd *Ps) Parse(args []string) error

Parse parses the command line arguments for the ps command.

func (*Ps) Run

func (pCmd *Ps) Run() int

Run retrieves and prints all machines and containers.

type Run

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

Run contains the options for running Stitches.

func NewRunCommand

func NewRunCommand() *Run

NewRunCommand creates a new Run command instance.

func (*Run) InstallFlags

func (rCmd *Run) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

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.

type SSH

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

SSH contains the options for SSHing into machines.

func NewSSHCommand

func NewSSHCommand() *SSH

NewSSHCommand creates a new SSH command instance.

func (*SSH) InstallFlags

func (sCmd *SSH) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*SSH) Parse

func (sCmd *SSH) Parse(args []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.

type Stop

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

Stop contains the options for stopping namespaces.

func NewStopCommand

func NewStopCommand() *Stop

NewStopCommand creates a new Stop command instance.

func (*Stop) InstallFlags

func (sCmd *Stop) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

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.

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 non-flag command line arguments to the subcommand so that it can
	// parse it for later execution.
	Parse(args []string) error
	// contains filtered or unexported methods
}

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

type Version

type Version struct{}

Version prints the Quilt version information.

func (*Version) InstallFlags

func (vCmd *Version) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*Version) Parse

func (vCmd *Version) Parse(args []string) error

Parse parses the command line arguments for the version command.

func (*Version) Run

func (vCmd *Version) Run() int

Run prints the version information.

Jump to

Keyboard shortcuts

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