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.
28 lines
812 B
28 lines
812 B
2 years ago
|
package dto
|
||
|
|
||
|
type PageContainer struct {
|
||
|
PageInfo
|
||
|
Status string `json:"status" validate:"required,oneof=all running"`
|
||
|
}
|
||
|
|
||
|
type ContainerInfo struct {
|
||
|
ContainerID string `json:"containerID"`
|
||
|
Name string `json:"name"`
|
||
|
ImageId string `json:"imageID"`
|
||
|
ImageName string `json:"imageName"`
|
||
|
CreateTime string `json:"createTime"`
|
||
|
State string `json:"state"`
|
||
|
RunTime string `json:"runTime"`
|
||
|
}
|
||
|
|
||
|
type ContainerLog struct {
|
||
|
ContainerID string `json:"containerID" validate:"required"`
|
||
|
Mode string `json:"mode" validate:"required"`
|
||
|
}
|
||
|
|
||
|
type ContainerOperation struct {
|
||
|
ContainerID string `json:"containerID" validate:"required"`
|
||
|
Operation string `json:"operation" validate:"required,oneof=start stop reStart kill pause unPause reName remove"`
|
||
|
NewName string `json:"newName"`
|
||
|
}
|