commands

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = []Command{
	&Agents{},
	&List{},
	&local.Local{},
	&Read{},
	&Run{},
	&Task{},
	&Tasks{},
	&Top{},
}

Functions

func Scalar

func Scalar(name string, resources mesos.Resources) (v float64)

Types

type Agents

type Agents struct{}

func (Agents) Desc

func (_ Agents) Desc() string

func (Agents) Init

func (_ Agents) Init(profile config.ProfileFn) func(*cli.Cmd)

func (Agents) Name

func (_ Agents) Name() string

type Command

type Command interface {
	Name() string
	Desc() string
	Init(config.ProfileFn) func(*cli.Cmd)
}

type List

type List struct{}

func (List) Desc

func (_ List) Desc() string

func (List) Init

func (_ List) Init(profile config.ProfileFn) func(*cli.Cmd)

TODO: The HTTP operator API does not provide a way to pull down the sandbox paths of tasks that are not currently running. Once I work around this I will implement a way to search across all agents from a root path like /<agentid>/<framework>/<executor>/<containerid>/...

func (List) Name

func (_ List) Name() string

type Read

type Read struct{}

func (Read) Desc

func (_ Read) Desc() string

func (Read) Init

func (_ Read) Init(profile config.ProfileFn) func(*cli.Cmd)

func (Read) Name

func (_ Read) Name() string

type Run

type Run struct{}

func (Run) Desc

func (_ Run) Desc() string

func (Run) Init

func (_ Run) Init(profile config.ProfileFn) func(*cli.Cmd)

func (Run) Name

func (_ Run) Name() string

type Task added in v0.0.6

type Task struct{}

func (Task) Desc added in v0.0.6

func (_ Task) Desc() string

func (Task) Init added in v0.0.6

func (_ Task) Init(_ config.ProfileFn) func(*cli.Cmd)

func (Task) Name added in v0.0.6

func (_ Task) Name() string

type Tasks

type Tasks struct{}

func (Tasks) Desc

func (_ Tasks) Desc() string

func (Tasks) Init

func (_ Tasks) Init(profile config.ProfileFn) func(*cli.Cmd)

func (Tasks) Name

func (_ Tasks) Name() string

type Top

type Top struct{}

func (Top) Desc

func (_ Top) Desc() string

func (Top) Init

func (_ Top) Init(profile config.ProfileFn) func(*cli.Cmd)

func (Top) Name

func (_ Top) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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