github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/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 }