1Panel/backend/app/dto/docker.go
2023-01-05 17:29:27 +08:00

20 lines
540 B
Go

package dto
type DaemonJsonUpdateByFile struct {
Path string `json:"path" validate:"required"`
File string `json:"file"`
}
type DaemonJsonConf struct {
Status string `json:"status"`
Version string `json:"version"`
Mirrors []string `json:"registryMirrors"`
Registries []string `json:"insecureRegistries"`
LiveRestore bool `json:"liveRestore"`
CgroupDriver string `json:"cgroupDriver"`
}
type DockerOperation struct {
Operation string `json:"operation" validate:"required,oneof=start restart stop"`
}