open-nomad/api/resources.go
2015-09-09 13:05:27 -07:00

21 lines
412 B
Go

package api
// Resources encapsulates the required resources of
// a given task or task group.
type Resources struct {
CPU float64
MemoryMB int
DiskMB int
IOPS int
Networks []*NetworkResource
}
// NetworkResource is used to describe required network
// resources of a given task.
type NetworkResource struct {
Public bool
CIDR string
ReservedPorts []int
MBits int
}