command

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2015 License: MPL-2.0 Imports: 18 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) GetStatus added in v0.4.0

func (c *Client) GetStatus() (*StatusData, error)

func (*Client) Lap added in v0.3.1

func (c *Client) Lap() (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 Pull

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

func NewPull

func NewPull() *Pull

func (*Pull) Action

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

func (*Pull) Description

func (c *Pull) Description() string

func (*Pull) Flags

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

func (*Pull) Name

func (c *Pull) Name() string

func (*Pull) Run

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

func (*Pull) Usage

func (c *Pull) Usage() string

type Punch

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

func NewPunch

func NewPunch() *Punch

func (*Punch) Action

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

func (*Punch) Description

func (c *Punch) Description() string

func (*Punch) Flags

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

func (*Punch) Name

func (c *Punch) Name() string

func (*Punch) Run

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

func (*Punch) Usage

func (c *Punch) Usage() string

type Push

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

func NewPush

func NewPush() *Push

func (*Push) Action

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

func (*Push) Description

func (c *Push) Description() string

func (*Push) Flags

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

func (*Push) Name

func (c *Push) Name() string

func (*Push) Run

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

func (*Push) Usage

func (c *Push) 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 StatusData added in v0.4.0

type StatusData struct {
	Time              string
	MostRecentVersion string
	CurrentVersion    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

type Sum

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

func NewSum

func NewSum() *Sum

func (*Sum) Action

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

func (*Sum) Description

func (c *Sum) Description() string

func (*Sum) Flags

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

func (*Sum) Name

func (c *Sum) Name() string

func (*Sum) Run

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

func (*Sum) Usage

func (c *Sum) Usage() string

Jump to

Keyboard shortcuts

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