mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-05 05:07:38 +08:00
41 lines
1.3 KiB
Go
41 lines
1.3 KiB
Go
package model
|
|
|
|
// PodDetail -
|
|
type PodDetail struct {
|
|
Name string `json:"name,omitempty"`
|
|
Node string `json:"node,omitempty"`
|
|
StartTime string `json:"start_time,omitempty"`
|
|
Status *PodStatus `json:"status,omitempty"`
|
|
IP string `json:"ip,omitempty"`
|
|
InitContainers []*PodContainer `json:"init_containers,omitempty"`
|
|
Containers []*PodContainer `json:"containers,omitempty"`
|
|
Events []*PodEvent `json:"events,omitempty"`
|
|
}
|
|
|
|
// PodStatus -
|
|
type PodStatus struct {
|
|
Type int `json:"type,omitempty"`
|
|
TypeStr string `json:"type_str,omitempty"`
|
|
Reason string `json:"reason,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
Advice string `json:"advice,omitempty"`
|
|
}
|
|
|
|
// PodContainer -
|
|
type PodContainer struct {
|
|
Image string `json:"image,omitempty"`
|
|
State string `json:"state,omitempty"`
|
|
Reason string `json:"reason,omitempty"`
|
|
Started string `json:"started,omitempty"`
|
|
LimitMemory string `json:"limit_memory,omitempty"`
|
|
LimitCPU string `json:"limit_cpu,omitempty"`
|
|
}
|
|
|
|
// PodEvent -
|
|
type PodEvent struct {
|
|
Type string `json:"type,omitempty"`
|
|
Reason string `json:"reason,omitempty"`
|
|
Age string `json:"age,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
}
|