lx_core_helpers

package
v0.0.0-...-c76ca94 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignTasks

func AssignTasks(state *lxstate.State, assignTasksMessage layerx_brain_client.BrainAssignTasksMessage) error

func DeregisterTaskProvider

func DeregisterTaskProvider(state *lxstate.State, tpId string) error

func GetNodes

func GetNodes(state *lxstate.State) ([]*lxtypes.Node, error)

func GetPendingTasks

func GetPendingTasks(state *lxstate.State) ([]*lxtypes.Task, error)

func GetStagingTasks

func GetStagingTasks(state *lxstate.State) ([]*lxtypes.Task, error)

func GetStatusUpdate

func GetStatusUpdate(state *lxstate.State, taskId string) (*mesosproto.TaskStatus, error)

func GetStatusUpdates

func GetStatusUpdates(state *lxstate.State, tpId string) ([]*mesosproto.TaskStatus, error)

func GetTaskProviders

func GetTaskProviders(state *lxstate.State) ([]*lxtypes.TaskProvider, error)

func KillTask

func KillTask(state *lxstate.State, tpiUrl, taskProviderId, taskId string) error

func MigrateTasks

func MigrateTasks(state *lxstate.State, migrateTasksMessage layerx_brain_client.MigrateTaskMessage) error

func ProcessStatusUpdate

func ProcessStatusUpdate(state *lxstate.State, tpiUrl string, status *mesosproto.TaskStatus) error

func PurgeTask

func PurgeTask(state *lxstate.State, taskId string) error

func RegisterRpi

func RegisterRpi(state *lxstate.State, rpiRegister layerx_rpi_client.RpiInfo) error

func RegisterTaskProvider

func RegisterTaskProvider(state *lxstate.State, taskProvider *lxtypes.TaskProvider) error

func RegisterTpi

func RegisterTpi(state *lxstate.State, tpiUrl string) error

func RescindResource

func RescindResource(state *lxstate.State, resourceID string) error

func SubmitResource

func SubmitResource(state *lxstate.State, resource *lxtypes.Resource) error

func SubmitTask

func SubmitTask(state *lxstate.State, tpId string, task *lxtypes.Task) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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