resource

package
v0.0.0-...-e2bd792 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR_AUTH    = "Call to resource did not have the proper authentication token."
	ERROR_NO_TOOL = "Tool specified does not exit."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewResourceQueue

func NewResourceQueue() Queue

func (*Queue) AddTask

func (q *Queue) AddTask(rpc common.RPCCall, rj *common.Job) error

func (*Queue) AddTool

func (q *Queue) AddTool(tooler common.Tooler)

func (*Queue) AllTaskStatus

func (q *Queue) AllTaskStatus(rpc common.RPCCall, j *[]common.Job) error

func (*Queue) Ping

func (q *Queue) Ping(ping int, pong *int) error

Task RPC functions

func (*Queue) ResourceHardware

func (q *Queue) ResourceHardware(rpc common.RPCCall, hw *map[string]bool) error

func (*Queue) ResourceTools

func (q *Queue) ResourceTools(rpc common.RPCCall, tools *[]common.Tool) error

func (*Queue) TaskPause

func (q *Queue) TaskPause(rpc common.RPCCall, j *common.Job) error

func (*Queue) TaskQuit

func (q *Queue) TaskQuit(rpc common.RPCCall, j *common.Job) error

func (*Queue) TaskRun

func (q *Queue) TaskRun(rpc common.RPCCall, j *common.Job) error

func (*Queue) TaskStatus

func (q *Queue) TaskStatus(rpc common.RPCCall, j *common.Job) error

Jump to

Keyboard shortcuts

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