mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
RepoSummary has a new attribute NewestTag of type ImageSummary
ImageListWithLatestTag currently returns a list of ImageInfo objects. It needs to return consistent results with the API used for Global search as the same information will be used by the UI in the same type or cards. So we need to update RepoSummary to include the data which right now is present in ImageInfo, but missing from RepoSummary (information on the latest tag in that specific repo). Will update return type of ImageListWithLatestTag in a later PR (issue tracked in a separate GH issue) Closes #666 Signed-off-by: Andrei Aaron <andaaron@cisco.com>
This commit is contained in:
committed by
Andrei Aaron
parent
87fc941b3c
commit
b5f27c5b50
@@ -95,12 +95,13 @@ type RepoInfo struct {
|
||||
}
|
||||
|
||||
type RepoSummary struct {
|
||||
Name *string `json:"Name"`
|
||||
LastUpdated *time.Time `json:"LastUpdated"`
|
||||
Size *string `json:"Size"`
|
||||
Platforms []*OsArch `json:"Platforms"`
|
||||
Vendors []*string `json:"Vendors"`
|
||||
Score *int `json:"Score"`
|
||||
Name *string `json:"Name"`
|
||||
LastUpdated *time.Time `json:"LastUpdated"`
|
||||
Size *string `json:"Size"`
|
||||
Platforms []*OsArch `json:"Platforms"`
|
||||
Vendors []*string `json:"Vendors"`
|
||||
Score *int `json:"Score"`
|
||||
NewestTag *ImageSummary `json:"NewestTag"`
|
||||
}
|
||||
|
||||
type TagInfo struct {
|
||||
|
||||
Reference in New Issue
Block a user