github.com/jmitchell/nomad@v0.1.3-0.20151007230021-7ab84c2862d8/api/resources.go (about) 1 package api 2 3 // Resources encapsulates the required resources of 4 // a given task or task group. 5 type Resources struct { 6 CPU int 7 MemoryMB int 8 DiskMB int 9 IOPS int 10 Networks []*NetworkResource 11 } 12 13 // NetworkResource is used to describe required network 14 // resources of a given task. 15 type NetworkResource struct { 16 Public bool 17 CIDR string 18 ReservedPorts []int 19 DynamicPorts []string 20 MBits int 21 }