2020-09-27 16:27:46 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
// AppPort -
|
|
|
|
type AppPort struct {
|
|
|
|
ServiceID string `json:"service_id" validate:"required"`
|
|
|
|
ContainerPort int `json:"container_port" validate:"required"`
|
|
|
|
PortAlias string `json:"port_alias" validate:"required"`
|
|
|
|
K8sServiceName string `json:"k8s_service_name" validate:"required"`
|
|
|
|
}
|
2020-09-28 16:43:27 +08:00
|
|
|
|
|
|
|
// AppStatus -
|
|
|
|
type AppStatus struct {
|
2021-04-16 18:40:49 +08:00
|
|
|
Status string `json:"status"`
|
|
|
|
Cpu int64 `json:"cpu"`
|
|
|
|
Memory int64 `json:"memory"`
|
|
|
|
Disk int64 `json:"disk"`
|
|
|
|
Phase string `json:"phase"`
|
|
|
|
ValuesTemplate string `json:"valuesTemplate"`
|
2020-09-28 16:43:27 +08:00
|
|
|
}
|
2021-04-16 16:27:21 +08:00
|
|
|
|
|
|
|
// AppDetectProcess -
|
|
|
|
type AppDetectProcess struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Ready bool `json:"ready"`
|
|
|
|
Error string `json:"error"`
|
|
|
|
}
|