32 lines
521 B
Go
32 lines
521 B
Go
package hypervisors
|
|
|
|
// Main information about hypervisor
|
|
type RecordHypervisor struct {
|
|
// Created at
|
|
CreatedAt string `json:"created_at"`
|
|
|
|
// Display name
|
|
DisplayName string `json:"display_name"`
|
|
|
|
// Hostname
|
|
Hostname string `json:"hostname"`
|
|
|
|
// IP
|
|
IP string `json:"ip"`
|
|
|
|
// Synced at
|
|
SyncedAt string `json:"synced_at"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// Ports
|
|
Ports []string `json:"ports"`
|
|
|
|
// Status
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
// List of hypervisors
|
|
type HypervisorsList []RecordHypervisor
|