command

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2015 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDaemonDown = errors.New("Daemon doesn't appears to be running.")

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(info *model.Daemon) *Client

func (*Client) Call

func (c *Client) Call(method string) error

func (*Client) Lap added in v0.3.1

func (c *Client) Lap() (time.Duration, error)

func (*Client) Split added in v0.3.1

func (c *Client) Split() (time.Duration, error)

type Init

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

func NewInit

func NewInit() *Init

func (*Init) Action

func (c *Init) Action() func(ctx *cli.Context)

func (*Init) Description

func (c *Init) Description() string

func (*Init) Flags

func (c *Init) Flags() []cli.Flag

func (*Init) Name

func (c *Init) Name() string

func (*Init) Run

func (c *Init) Run(ctx *cli.Context) error

func (*Init) Usage

func (c *Init) Usage() string

type Lap added in v0.3.1

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

func NewLap added in v0.3.1

func NewLap() *Lap

func (*Lap) Action added in v0.3.1

func (c *Lap) Action() func(ctx *cli.Context)

func (*Lap) Description added in v0.3.1

func (c *Lap) Description() string

func (*Lap) Flags added in v0.3.1

func (c *Lap) Flags() []cli.Flag

func (*Lap) Name added in v0.3.1

func (c *Lap) Name() string

func (*Lap) Run added in v0.3.1

func (c *Lap) Run(ctx *cli.Context) error

func (*Lap) Usage added in v0.3.1

func (c *Lap) Usage() string

type Pause

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

func NewPause

func NewPause() *Pause

func (*Pause) Action

func (c *Pause) Action() func(ctx *cli.Context)

func (*Pause) Description

func (c *Pause) Description() string

func (*Pause) Flags

func (c *Pause) Flags() []cli.Flag

func (*Pause) Name

func (c *Pause) Name() string

func (*Pause) Run

func (c *Pause) Run(ctx *cli.Context) error

func (*Pause) Usage

func (c *Pause) Usage() string

type Start

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

func NewStart

func NewStart() *Start

func (*Start) Action

func (c *Start) Action() func(ctx *cli.Context)

func (*Start) Description

func (c *Start) Description() string

func (*Start) Flags

func (c *Start) Flags() []cli.Flag

func (*Start) Name

func (c *Start) Name() string

func (*Start) Run

func (c *Start) Run(ctx *cli.Context) error

func (*Start) Usage

func (c *Start) Usage() string

type Status

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

func NewStatus

func NewStatus() *Status

func (*Status) Action

func (c *Status) Action() func(ctx *cli.Context)

func (*Status) Description

func (c *Status) Description() string

func (*Status) Flags

func (c *Status) Flags() []cli.Flag

func (*Status) Name

func (c *Status) Name() string

func (*Status) Run

func (c *Status) Run(ctx *cli.Context) error

func (*Status) Usage

func (c *Status) Usage() string

type Stop

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

func NewStop

func NewStop() *Stop

func (*Stop) Action

func (c *Stop) Action() func(ctx *cli.Context)

func (*Stop) Description

func (c *Stop) Description() string

func (*Stop) Flags

func (c *Stop) Flags() []cli.Flag

func (*Stop) Name

func (c *Stop) Name() string

func (*Stop) Run

func (c *Stop) Run(ctx *cli.Context) error

func (*Stop) Usage

func (c *Stop) Usage() string

Jump to

Keyboard shortcuts

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