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 {
|
|
|
|
Path string `josn:"path" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-10-11 06:20:51 +00:00
|
|
|
type ImageBuild struct {
|
2022-10-12 05:42:58 +00:00
|
|
|
From string `josn:"from" validate:"required"`
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
Dockerfile string `josn:"dockerfile" validate:"required"`
|
|
|
|
Tags []string `josn:"tags"`
|
2022-10-11 06:20:51 +00:00
|
|
|
}
|
|
|
|
|
2022-10-10 07:14:49 +00:00
|
|
|
type ImagePull struct {
|
2022-10-10 08:47:05 +00:00
|
|
|
RepoID uint `josn:"repoID"`
|
2022-10-10 07:14:49 +00:00
|
|
|
ImageName string `josn:"imageName" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-10-11 09:46:52 +00:00
|
|
|
type ImageTag struct {
|
|
|
|
RepoID uint `josn:"repoID"`
|
|
|
|
SourceID string `json:"sourceID" validate:"required"`
|
|
|
|
TargetName string `josn:"targetName" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-10-10 07:14:49 +00:00
|
|
|
type ImagePush struct {
|
2022-10-11 09:46:52 +00:00
|
|
|
RepoID uint `josn:"repoID" validate:"required"`
|
|
|
|
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"`
|
|
|
|
Path string `josn:"path" validate:"required"`
|
|
|
|
Name string `json:"name" validate:"required"`
|
2022-10-10 07:14:49 +00:00
|
|
|
}
|