Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slave ¶
type Slave struct { ID string `json:"id"` Pid string `json:"pid"` Hostname string `json:"hostname"` RegisteredTime float64 `json:"registered_time"` ReregisteredTime float64 `json:"reregistered_time"` Resources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"resources"` UsedResources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"used_resources"` OfferedResources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Mem float64 `json:"mem"` } `json:"offered_resources"` ReservedResources struct { } `json:"reserved_resources"` UnreservedResources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"unreserved_resources"` Attributes struct { } `json:"attributes"` Active bool `json:"active"` Version string `json:"version"` ReservedResourcesFull struct { } `json:"reserved_resources_full"` UsedResourcesFull []struct { Name string `json:"name"` Type string `json:"type"` Scalar struct { Value float64 `json:"value"` } `json:"scalar,omitempty"` Role string `json:"role"` Ranges struct { Range []struct { Begin int `json:"begin"` End int `json:"end"` } `json:"range"` } `json:"ranges,omitempty"` } `json:"used_resources_full"` OfferedResourcesFull []interface{} `json:"offered_resources_full"` }
Click to show internal directories.
Click to hide internal directories.