allocate

package
v0.0.0-...-fb4d9db Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *allocateAction

Types

type InputT

type InputT struct {
	RackCap              []int  `json:"rack_cap"`
	NumLargeMachineRacks int    `json:"numLargeMachineRacks"`
	Queue                []JobT `json:"queue"`
	Machines             []int  `json:"machines"`
}

type JobT

type JobT struct {
	JobID        int    `json:"jobID"`
	JobType      string `json:"jobType"`
	K            int    `json:"k"`
	Duration     int    `json:"duration"`
	SlowDuration int    `json:"slowDuration"`
}

type Message

type Message struct {
	Input  InputT      `json:"input"`
	Output interface{} `json:"output"`
}

type OutputT

type OutputT struct {
	JobID    int   `json:"jobID"`
	Machines []int `json:"machines"`
}

Jump to

Keyboard shortcuts

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