commands

package
v0.0.0-...-012c905 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALL    = "-all"
	RELOAD = "-reload"
)

Variables

View Source
var AtLeastOneArgumentErr = errors.New("at least one argument should be specified")

Functions

func CompleteNames

func CompleteNames(beforeStrs []string) []string

Types

type CfgCommand

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

func (*CfgCommand) Exec

func (c *CfgCommand) Exec() error

func (*CfgCommand) Validate

func (c *CfgCommand) Validate(args ...string) error

type Command

type Command interface {
	Exec() error
	// always should run before call Exec
	Validate(args ...string) error
}

type EmptyCommand

type EmptyCommand struct {
}

func (*EmptyCommand) Exec

func (c *EmptyCommand) Exec() error

func (*EmptyCommand) Validate

func (c *EmptyCommand) Validate(args ...string) error

type EnvCommand

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

func (*EnvCommand) Exec

func (c *EnvCommand) Exec() error

func (*EnvCommand) Validate

func (c *EnvCommand) Validate(args ...string) error

type ExitCommand

type ExitCommand struct {
}

func (*ExitCommand) Exec

func (c *ExitCommand) Exec() error

func (*ExitCommand) Validate

func (c *ExitCommand) Validate(args ...string) error

type KillCommand

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

func (*KillCommand) Exec

func (c *KillCommand) Exec() error

func (*KillCommand) Validate

func (c *KillCommand) Validate(args ...string) error

type LogsCommand

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

func (*LogsCommand) Exec

func (c *LogsCommand) Exec() error

func (*LogsCommand) Validate

func (c *LogsCommand) Validate(args ...string) error

type PSCommand

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

func (*PSCommand) Exec

func (c *PSCommand) Exec() error

func (*PSCommand) Validate

func (c *PSCommand) Validate(args ...string) error

type RestartCommand

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

func (*RestartCommand) Exec

func (c *RestartCommand) Exec() error

func (*RestartCommand) Validate

func (c *RestartCommand) Validate(args ...string) error

type StartCommand

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

func (*StartCommand) Exec

func (c *StartCommand) Exec() error

func (*StartCommand) Validate

func (c *StartCommand) Validate(args ...string) error

type StopCommand

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

func (*StopCommand) Exec

func (c *StopCommand) Exec() error

func (*StopCommand) Validate

func (c *StopCommand) Validate(args ...string) error

type VersionCommand

type VersionCommand struct {
	Version string
}

func (*VersionCommand) Exec

func (c *VersionCommand) Exec() error

func (*VersionCommand) Validate

func (c *VersionCommand) Validate(args ...string) error

Jump to

Keyboard shortcuts

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