2022-10-10 15:14:49 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type ImageInfo struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
2023-09-20 22:14:25 +08:00
|
|
|
IsUsed bool `json:"isUsed"`
|
2022-10-11 17:46:52 +08:00
|
|
|
Tags []string `json:"tags"`
|
2022-10-10 15:14:49 +08:00
|
|
|
Size string `json:"size"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ImageLoad struct {
|
2023-06-16 17:54:11 +08:00
|
|
|
Path string `json:"path" validate:"required"`
|
2022-10-10 15:14:49 +08:00
|
|
|
}
|
|
|
|
|
2022-10-11 14:20:51 +08:00
|
|
|
type ImageBuild struct {
|
2023-06-16 17:54:11 +08:00
|
|
|
From string `json:"from" validate:"required"`
|
2022-10-12 13:42:58 +08:00
|
|
|
Name string `json:"name" validate:"required"`
|
2023-06-16 17:54:11 +08:00
|
|
|
Dockerfile string `json:"dockerfile" validate:"required"`
|
|
|
|
Tags []string `json:"tags"`
|
2022-10-11 14:20:51 +08:00
|
|
|
}
|
|
|
|
|
2022-10-10 15:14:49 +08:00
|
|
|
type ImagePull struct {
|
2023-06-16 17:54:11 +08:00
|
|
|
RepoID uint `json:"repoID"`
|
|
|
|
ImageName string `json:"imageName" validate:"required"`
|
2022-10-10 15:14:49 +08:00
|
|
|
}
|
|
|
|
|
2022-10-11 17:46:52 +08:00
|
|
|
type ImageTag struct {
|
|
|
|
SourceID string `json:"sourceID" validate:"required"`
|
2023-06-16 17:54:11 +08:00
|
|
|
TargetName string `json:"targetName" validate:"required"`
|
2022-10-11 17:46:52 +08:00
|
|
|
}
|
|
|
|
|
2022-10-10 15:14:49 +08:00
|
|
|
type ImagePush struct {
|
2023-06-16 17:54:11 +08:00
|
|
|
RepoID uint `json:"repoID" validate:"required"`
|
2022-10-11 17:46:52 +08:00
|
|
|
TagName string `json:"tagName" validate:"required"`
|
|
|
|
Name string `json:"name" validate:"required"`
|
2022-10-10 15:14:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type ImageSave struct {
|
2022-10-11 17:46:52 +08:00
|
|
|
TagName string `json:"tagName" validate:"required"`
|
2023-06-16 17:54:11 +08:00
|
|
|
Path string `json:"path" validate:"required"`
|
2022-10-11 17:46:52 +08:00
|
|
|
Name string `json:"name" validate:"required"`
|
2022-10-10 15:14:49 +08:00
|
|
|
}
|