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