2022-10-09 08:17:15 +00:00
|
|
|
package dto
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type ImageRepoCreate struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
DownloadUrl string `json:"downloadUrl"`
|
2022-10-10 08:47:05 +00:00
|
|
|
Protocol string `json:"protocol"`
|
2023-08-10 06:06:13 +00:00
|
|
|
Username string `json:"username" validate:"max=256"`
|
|
|
|
Password string `json:"password" validate:"max=256"`
|
2022-10-09 08:17:15 +00:00
|
|
|
Auth bool `json:"auth"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ImageRepoUpdate struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
DownloadUrl string `json:"downloadUrl"`
|
2022-10-10 08:47:05 +00:00
|
|
|
Protocol string `json:"protocol"`
|
2023-08-08 14:30:16 +00:00
|
|
|
Username string `json:"username" validate:"max=256"`
|
|
|
|
Password string `json:"password" validate:"max=256"`
|
2022-10-09 08:17:15 +00:00
|
|
|
Auth bool `json:"auth"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ImageRepoInfo struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
DownloadUrl string `json:"downloadUrl"`
|
2022-10-10 08:47:05 +00:00
|
|
|
Protocol string `json:"protocol"`
|
2022-10-09 08:17:15 +00:00
|
|
|
Username string `json:"username"`
|
|
|
|
Auth bool `json:"auth"`
|
2022-12-18 15:00:24 +00:00
|
|
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
2022-10-09 08:17:15 +00:00
|
|
|
}
|
2022-10-10 07:14:49 +00:00
|
|
|
|
|
|
|
type ImageRepoOption struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
DownloadUrl string `json:"downloadUrl"`
|
|
|
|
}
|
2022-12-20 05:23:01 +00:00
|
|
|
|
|
|
|
type ImageRepoDelete struct {
|
2023-02-23 03:39:47 +00:00
|
|
|
Ids []uint `json:"ids" validate:"required"`
|
2022-12-20 05:23:01 +00:00
|
|
|
}
|