mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
999 B
42 lines
999 B
package dto
|
|
|
|
type DeviceBaseInfo struct {
|
|
DNS []string `json:"dns"`
|
|
Hosts []HostHelper `json:"hosts"`
|
|
Hostname string `json:"hostname"`
|
|
TimeZone string `json:"timeZone"`
|
|
LocalTime string `json:"localTime"`
|
|
Ntp string `json:"ntp"`
|
|
User string `json:"user"`
|
|
|
|
SwapMemoryTotal uint64 `json:"swapMemoryTotal"`
|
|
SwapMemoryAvailable uint64 `json:"swapMemoryAvailable"`
|
|
SwapMemoryUsed uint64 `json:"swapMemoryUsed"`
|
|
MaxSize uint64 `json:"maxSize"`
|
|
|
|
SwapDetails []SwapHelper `json:"swapDetails"`
|
|
}
|
|
|
|
type HostHelper struct {
|
|
IP string `json:"ip"`
|
|
Host string `json:"host"`
|
|
}
|
|
|
|
type SwapHelper struct {
|
|
Path string `json:"path" validate:"required"`
|
|
Size uint64 `json:"size"`
|
|
Used string `json:"used"`
|
|
|
|
IsNew bool `json:"isNew"`
|
|
}
|
|
|
|
type TimeZoneOptions struct {
|
|
From string `json:"from"`
|
|
Zones []string `json:"zones"`
|
|
}
|
|
|
|
type ChangePasswd struct {
|
|
User string `json:"user"`
|
|
Passwd string `json:"passwd"`
|
|
}
|