/
harbor_model_artifact.go
44 lines (43 loc) · 1.6 KB
/
harbor_model_artifact.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Harbor API
*
* These APIs provide services for manipulating Harbor project.
*
* API version: 2.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
import (
"time"
)
type HarborArtifact struct {
// The ID of the artifact
Id int64 `json:"id,omitempty"`
// The type of the artifact, e.g. image, chart, etc
Type_ string `json:"type,omitempty"`
// The media type of the artifact
MediaType string `json:"media_type,omitempty"`
// The manifest media type of the artifact
ManifestMediaType string `json:"manifest_media_type,omitempty"`
// The ID of the project that the artifact belongs to
ProjectId int64 `json:"project_id,omitempty"`
// The ID of the repository that the artifact belongs to
RepositoryId int64 `json:"repository_id,omitempty"`
// The digest of the artifact
Digest string `json:"digest,omitempty"`
// The size of the artifact
Size int64 `json:"size,omitempty"`
// The digest of the icon
Icon string `json:"icon,omitempty"`
// The push time of the artifact
PushTime time.Time `json:"push_time,omitempty"`
// The latest pull time of the artifact
PullTime time.Time `json:"pull_time,omitempty"`
ExtraAttrs *map[string]interface{} `json:"extra_attrs,omitempty"`
Annotations *map[string]string `json:"annotations,omitempty"`
References []HarborReference `json:"references,omitempty"`
Tags []HarborTag `json:"tags,omitempty"`
AdditionLinks *map[string]HarborAdditionLink `json:"addition_links,omitempty"`
Labels []HarborLabel `json:"labels,omitempty"`
ScanOverview *map[string]HarborNativeReportSummary `json:"scan_overview,omitempty"`
}