mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-14 19:48:12 +08:00
18 lines
500 B
Go
18 lines
500 B
Go
package dto
|
|
|
|
type DaemonJsonUpdateByFile struct {
|
|
Path string `json:"path" validate:"required"`
|
|
File string `json:"file"`
|
|
}
|
|
|
|
type DaemonJsonConf struct {
|
|
Status string `json:"status"`
|
|
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"`
|
|
}
|