cmd

package
v0.8.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cmd provides all the commands that spinc can run: start, status, etc.

Index

Constants

View Source
const (
	JOB_COL_LEN = 100
)
View Source
const (
	RECORD_SEPARATOR = "--\n"
)

Variables

View Source
var (
	ErrNotExist = errors.New("command does not exist")
)

Functions

This section is empty.

Types

type DefaultFactory

type DefaultFactory struct {
}

func (*DefaultFactory) Make

func (f *DefaultFactory) Make(name string, ctx app.Context) (app.Command, error)

type Log

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

func NewLog

func NewLog(ctx app.Context) *Log

func (*Log) Prepare

func (c *Log) Prepare() error

func (*Log) Run

func (c *Log) Run() error

type Ps

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

func NewPs

func NewPs(ctx app.Context) *Ps

func (*Ps) Prepare

func (c *Ps) Prepare() error

func (*Ps) Run

func (c *Ps) Run() error

type Running

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

func NewRunning

func NewRunning(ctx app.Context) *Running

func (*Running) Prepare

func (c *Running) Prepare() error

func (*Running) Run

func (c *Running) Run() error

type Start

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

func NewStart

func NewStart(ctx app.Context) *Start

func (*Start) Prepare

func (c *Start) Prepare() error

func (*Start) Run

func (c *Start) Run() error

type Status

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

func NewStatus

func NewStatus(ctx app.Context) *Status

func (*Status) Prepare

func (c *Status) Prepare() error

func (*Status) Run

func (c *Status) Run() error

type Stop

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

func NewStop

func NewStop(ctx app.Context) *Stop

func (*Stop) Prepare

func (c *Stop) Prepare() error

func (*Stop) Run

func (c *Stop) Run() error

Jump to

Keyboard shortcuts

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