mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
914 B
37 lines
914 B
2 years ago
|
package dto
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type ImageInfo struct {
|
||
|
ID string `json:"id"`
|
||
|
CreatedAt time.Time `json:"createdAt"`
|
||
|
Name string `json:"name"`
|
||
|
Version string `json:"version"`
|
||
|
Size string `json:"size"`
|
||
|
}
|
||
|
|
||
|
type ImageLoad struct {
|
||
|
Path string `josn:"path" validate:"required"`
|
||
|
}
|
||
|
|
||
|
type ImageRemove struct {
|
||
|
ImageName string `josn:"imageName" validate:"required"`
|
||
|
}
|
||
|
|
||
|
type ImagePull struct {
|
||
|
RepoID uint `josn:"repoID" validate:"required"`
|
||
|
ImageName string `josn:"imageName" validate:"required"`
|
||
|
}
|
||
|
|
||
|
type ImagePush struct {
|
||
|
RepoID uint `josn:"repoID" validate:"required"`
|
||
|
ImageName string `josn:"imageName" validate:"required"`
|
||
|
TagName string `json:"tagName" validate:"required"`
|
||
|
}
|
||
|
|
||
|
type ImageSave struct {
|
||
|
ImageName string `josn:"imageName" validate:"required"`
|
||
|
Path string `josn:"path" validate:"required"`
|
||
|
Name string `json:"name" validate:"required"`
|
||
|
}
|