exec

package
v0.0.0-...-f2f6987 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2014 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKillTimeout = 5 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Supervisor

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

func NewSupervisor

func NewSupervisor(workspace string) (*Supervisor, error)

func (*Supervisor) AgentStateChangeFeed

func (sup *Supervisor) AgentStateChangeFeed() <-chan *supervisor.AgentStateChange

func (*Supervisor) CloseAgentStateChangeFeed

func (sup *Supervisor) CloseAgentStateChangeFeed()

func (*Supervisor) Install

func (sup *Supervisor) Install(alias string, repo string, ctx supervisor.ActionContext) (*data.Agent, error)

func (*Supervisor) Kill

func (sup *Supervisor) Kill(alias string, ctx supervisor.ActionContext) error

func (*Supervisor) Remove

func (sup *Supervisor) Remove(agent *data.Agent, ctx supervisor.ActionContext) error

func (*Supervisor) Restart

func (sup *Supervisor) Restart(agent *data.Agent, ctx supervisor.ActionContext) error

func (*Supervisor) Start

func (sup *Supervisor) Start(agent *data.Agent, ctx supervisor.ActionContext) error

func (*Supervisor) Status

func (sup *Supervisor) Status(alias string, ctx supervisor.ActionContext) (status string, err error)

func (*Supervisor) Statuses

func (sup *Supervisor) Statuses(ctx supervisor.ActionContext) (statuses map[string]string, err error)

func (*Supervisor) Stop

func (sup *Supervisor) Stop(alias string, ctx supervisor.ActionContext) error

func (*Supervisor) StopWithTimeout

func (sup *Supervisor) StopWithTimeout(alias string, ctx supervisor.ActionContext, timeout time.Duration) error

func (*Supervisor) Terminate

func (sup *Supervisor) Terminate(timeout time.Duration)

func (*Supervisor) Upgrade

func (sup *Supervisor) Upgrade(agent *data.Agent, ctx supervisor.ActionContext) error

Jump to

Keyboard shortcuts

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