command

package
v0.0.0-...-f852ded Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInfra

type BaseInfra struct{}

BaseInfra represents a BaseInfra command.

func (*BaseInfra) AfterRun

func (biCmd *BaseInfra) AfterRun() error

AfterRun performs any necessary post-run cleanup.

func (*BaseInfra) BeforeRun

func (biCmd *BaseInfra) BeforeRun() error

BeforeRun makes any necessary post-parsing transformations.

func (*BaseInfra) InstallFlags

func (biCmd *BaseInfra) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*BaseInfra) Parse

func (biCmd *BaseInfra) Parse(args []string) error

Parse parses the command line arguments for the stop command.

func (*BaseInfra) Run

func (biCmd *BaseInfra) Run() int

Run executes the Nodejs initializer that prompts the user.

type ConfigProvider

type ConfigProvider struct{}

ConfigProvider represents a ConfigProvider command.

func (*ConfigProvider) AfterRun

func (cpCmd *ConfigProvider) AfterRun() error

AfterRun performs any necessary post-run cleanup.

func (*ConfigProvider) BeforeRun

func (cpCmd *ConfigProvider) BeforeRun() error

BeforeRun makes any necessary post-parsing transformations.

func (*ConfigProvider) InstallFlags

func (cpCmd *ConfigProvider) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*ConfigProvider) Parse

func (cpCmd *ConfigProvider) Parse(args []string) error

Parse parses the command line arguments for the stop command.

func (*ConfigProvider) Run

func (cpCmd *ConfigProvider) Run() int

Run executes the Nodejs initializer that prompts the user.

type Counters

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

Counters implements the `kelda counters` command.

func (*Counters) AfterRun

func (ch *Counters) AfterRun() error

func (*Counters) BeforeRun

func (ch *Counters) BeforeRun() (err error)

func (*Counters) InstallFlags

func (cmd *Counters) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*Counters) Parse

func (cmd *Counters) Parse(args []string) error

Parse parses the command line arguments for the counters command.

func (*Counters) Run

func (cmd *Counters) Run() int

Run fetches and prints the desired counters.

type Daemon

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

Daemon contains the options for running the Kelda daemon.

func NewDaemonCommand

func NewDaemonCommand() *Daemon

NewDaemonCommand creates a new Daemon command instance.

func (*Daemon) AfterRun

func (dCmd *Daemon) AfterRun() error

AfterRun performs any necessary post-run cleanup.

func (*Daemon) BeforeRun

func (dCmd *Daemon) BeforeRun() error

BeforeRun makes any necessary post-parsing transformations.

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) AfterRun

func (ch *Debug) AfterRun() error

func (*Debug) BeforeRun

func (ch *Debug) BeforeRun() (err error)

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 Log

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

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

func NewLogCommand

func NewLogCommand() *Log

NewLogCommand creates a new Log command instance.

func (*Log) AfterRun

func (ch *Log) AfterRun() error

func (*Log) BeforeRun

func (ch *Log) BeforeRun() (err error)

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 Kelda minion.

func NewMinionCommand

func NewMinionCommand() *Minion

NewMinionCommand creates a new Minion command instance.

func (*Minion) AfterRun

func (mCmd *Minion) AfterRun() error

AfterRun performs any necessary post-run cleanup.

func (*Minion) BeforeRun

func (mCmd *Minion) BeforeRun() error

BeforeRun makes any necessary post-parsing transformations.

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 Run

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

Run contains the options for running blueprints.

func NewRunCommand

func NewRunCommand() *Run

NewRunCommand creates a new Run command instance.

func (*Run) AfterRun

func (ch *Run) AfterRun() error

func (*Run) BeforeRun

func (ch *Run) BeforeRun() (err error)

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 Blueprint.

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) AfterRun

func (ch *SSH) AfterRun() error

func (*SSH) BeforeRun

func (ch *SSH) BeforeRun() (err error)

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 Secret

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

Secret defines the options for the Secret command.

func (*Secret) AfterRun

func (ch *Secret) AfterRun() error

func (*Secret) BeforeRun

func (ch *Secret) BeforeRun() (err error)

func (*Secret) InstallFlags

func (secretCmd *Secret) InstallFlags(flags *flag.FlagSet)

InstallFlags sets up parsing for command line flags.

func (*Secret) Parse

func (secretCmd *Secret) Parse(args []string) error

Parse parses the command line arguments for the secret command.

func (Secret) Run

func (secretCmd Secret) Run() int

Run implements the secret command.

type Show

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

Show contains the options for querying machines and containers.

func NewShowCommand

func NewShowCommand() *Show

NewShowCommand creates a new Show command instance.

func (*Show) AfterRun

func (ch *Show) AfterRun() error

func (*Show) BeforeRun

func (ch *Show) BeforeRun() (err error)

func (*Show) InstallFlags

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

InstallFlags sets up parsing for command line flags

func (*Show) Parse

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

Parse parses the command line arguments for the show command.

func (*Show) Run

func (pCmd *Show) Run() int

Run retrieves and prints all machines and containers.

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) AfterRun

func (ch *Stop) AfterRun() error

func (*Stop) BeforeRun

func (ch *Stop) BeforeRun() (err error)

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 {
	// InstallFlags sets up parsing for command line flags.
	InstallFlags(*flag.FlagSet)

	// BeforeRun is called after command line flags have been parsed, but
	// before the Run method is called. It gives commands an opportunity to
	// transform parsed flags into a more consumable form.
	BeforeRun() error

	// AfterRun is called after the Run method so that commands can perform
	// post-run cleanup.
	AfterRun() error

	// 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
}

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

type Version

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

Version prints the Kelda version information.

func NewVersionCommand

func NewVersionCommand() *Version

NewVersionCommand creates a new Version command instance.

func (*Version) AfterRun

func (vCmd *Version) AfterRun() error

AfterRun performs any necessary post-run cleanup.

func (*Version) BeforeRun

func (vCmd *Version) BeforeRun() error

BeforeRun makes any necessary post-parsing transformations.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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