mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-05 10:28:59 +08:00
12d6c2c3df
Refs #2300 ![image](https://github.com/1Panel-dev/1Panel/assets/73214554/a808d4f8-18fa-4010-8860-0a3788fa7eb0)
46 lines
1.2 KiB
Go
46 lines
1.2 KiB
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type ImageInfo struct {
|
|
ID string `json:"id"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
IsUsed bool `json:"isUsed"`
|
|
Tags []string `json:"tags"`
|
|
Size string `json:"size"`
|
|
}
|
|
|
|
type ImageLoad struct {
|
|
Path string `json:"path" validate:"required"`
|
|
}
|
|
|
|
type ImageBuild struct {
|
|
From string `json:"from" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
Dockerfile string `json:"dockerfile" validate:"required"`
|
|
Tags []string `json:"tags"`
|
|
}
|
|
|
|
type ImagePull struct {
|
|
RepoID uint `json:"repoID"`
|
|
ImageName string `json:"imageName" validate:"required"`
|
|
}
|
|
|
|
type ImageTag struct {
|
|
RepoID uint `json:"repoID"`
|
|
SourceID string `json:"sourceID" validate:"required"`
|
|
TargetName string `json:"targetName" validate:"required"`
|
|
}
|
|
|
|
type ImagePush struct {
|
|
RepoID uint `json:"repoID" validate:"required"`
|
|
TagName string `json:"tagName" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type ImageSave struct {
|
|
TagName string `json:"tagName" validate:"required"`
|
|
Path string `json:"path" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
}
|