Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine struct { // MAC is Media Access Control address of this host MAC string `json:"mac"` // Name is a friendly name. Name string `json:"name"` // IPv4Addr is a IPv4 address of this host. IPv4Addr string `json:"ipv4_addr"` // DeployedDate is a UNIX time of the date when this host is deployed. DeployedDate int64 `json:"deployed_date"` // Spec indicates the machine spec of the host. Spec MachineSpec `json:"spec"` }
Machine is a information of phisical host
type MachineSpec ¶
type MachineSpec struct { // Core is a number of CPU core. Core int `json:"core"` // Memory is an amount of DRAM (MB). Memory int `json:"memory"` // Disk is an amount of local disk (GB). Disk int `json:"disk"` }
MachineSpec is a spec of the host.
Click to show internal directories.
Click to hide internal directories.