instance

package
v0.0.0-...-1b79cdd Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Id              string            `json:"id"`
	Name            string            `json:"name"`
	Type            string            `json:"type" M-S,CODIS,C`
	TaskMap         map[string]Task   `json:"taskMap,omitempty"`
	PossibleNewTask []*mesos.TaskInfo `json:"possibleNewTask",omitempty`
	Lanuched        int               `json:"lanuched"`
}

func NewInstance

func NewInstance(id string, name string, typeIns string, taskMap map[string]Task) *Instance

func (*Instance) AddPossibleTask

func (i *Instance) AddPossibleTask(tasks []*mesos.TaskInfo)

func (*Instance) GetPossibleTask

func (i *Instance) GetPossibleTask() []*mesos.TaskInfo

func (*Instance) GetTasks

func (i *Instance) GetTasks() []Task

func (*Instance) IsLanuched

func (i *Instance) IsLanuched() bool

func (*Instance) IsRuning

func (i *Instance) IsRuning() bool

Jump to

Keyboard shortcuts

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