1Panel/backend/app/dto/docker.go

21 lines
576 B
Go
Raw Normal View History

2022-11-14 11:19:42 +00:00
package dto
type DaemonJsonUpdateByFile struct {
File string `json:"file"`
}
type DaemonJsonConf struct {
Status string `json:"status"`
2023-01-05 09:29:27 +00:00
Version string `json:"version"`
2022-11-14 11:19:42 +00:00
Mirrors []string `json:"registryMirrors"`
Registries []string `json:"insecureRegistries"`
LiveRestore bool `json:"liveRestore"`
CgroupDriver string `json:"cgroupDriver"`
}
2022-12-07 09:28:14 +00:00
type DockerOperation struct {
StopSocket bool `json:"stopSocket"`
StopService bool `json:"stopService"`
Operation string `json:"operation" validate:"required,oneof=start restart stop"`
2022-12-07 09:28:14 +00:00
}