@daocloud-proto/kangaroo 0.3.1-11 → 0.3.1-15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,6 +12,24 @@ export enum ListRepositoriesRequestSortBy {
|
|
|
12
12
|
update_time = "update_time",
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export enum ScanOverviewStatus {
|
|
16
|
+
scan_status_unspecified = "scan_status_unspecified",
|
|
17
|
+
pending = "pending",
|
|
18
|
+
running = "running",
|
|
19
|
+
error = "error",
|
|
20
|
+
success = "success",
|
|
21
|
+
stopped = "stopped",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export enum ScanOverviewSeverity {
|
|
25
|
+
unspecified = "unspecified",
|
|
26
|
+
unknown = "unknown",
|
|
27
|
+
low = "low",
|
|
28
|
+
medium = "medium",
|
|
29
|
+
high = "high",
|
|
30
|
+
critical = "critical",
|
|
31
|
+
}
|
|
32
|
+
|
|
15
33
|
export enum ListArtifactsRequestSortBy {
|
|
16
34
|
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
17
35
|
}
|
|
@@ -70,8 +88,8 @@ export type ListRepositoriesResponse = {
|
|
|
70
88
|
}
|
|
71
89
|
|
|
72
90
|
export type ScanOverview = {
|
|
73
|
-
scanStatus?:
|
|
74
|
-
severity?:
|
|
91
|
+
scanStatus?: ScanOverviewStatus
|
|
92
|
+
severity?: ScanOverviewSeverity
|
|
75
93
|
duration?: string
|
|
76
94
|
endTime?: string
|
|
77
95
|
startTime?: string
|
|
@@ -97,6 +115,7 @@ export type VulnerabilitySummary = {
|
|
|
97
115
|
high?: string
|
|
98
116
|
low?: string
|
|
99
117
|
medium?: string
|
|
118
|
+
unknown?: string
|
|
100
119
|
}
|
|
101
120
|
|
|
102
121
|
export type Artifacts = {
|
|
@@ -137,6 +156,7 @@ export type TagInfoRequest = {
|
|
|
137
156
|
export type TagInfoResponse = {
|
|
138
157
|
extraAttrs?: ExtraAttrs
|
|
139
158
|
buildHistory?: BuildHistory[]
|
|
159
|
+
scanOverview?: ScanOverview
|
|
140
160
|
}
|
|
141
161
|
|
|
142
162
|
export type ExtraAttrs = {
|
|
@@ -279,4 +299,25 @@ export type APIListArtifactsRequest = {
|
|
|
279
299
|
export type APIListArtifactsResponse = {
|
|
280
300
|
items?: Artifacts[]
|
|
281
301
|
pagination?: KangarooIoApiTypesPage.Page
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type ScanArtifactRequest = {
|
|
305
|
+
workspace?: string
|
|
306
|
+
registry?: string
|
|
307
|
+
project?: string
|
|
308
|
+
repository?: string
|
|
309
|
+
digest?: string
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export type GetScanReportRequest = {
|
|
313
|
+
workspace?: string
|
|
314
|
+
registry?: string
|
|
315
|
+
project?: string
|
|
316
|
+
repository?: string
|
|
317
|
+
digest?: string
|
|
318
|
+
report?: string
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export type GetScanReportResponse = {
|
|
322
|
+
report?: string
|
|
282
323
|
}
|
|
@@ -29,6 +29,12 @@ export class Image {
|
|
|
29
29
|
static DeleteArtifacts(req: KangarooIoApiImageV1alpha1Image.DeleteArtifactsRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
30
30
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteArtifactsRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/${req["digest"]}`, {...initReq, method: "DELETE"})
|
|
31
31
|
}
|
|
32
|
+
static ScanArtifact(req: KangarooIoApiImageV1alpha1Image.ScanArtifactRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
33
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ScanArtifactRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/${req["digest"]}/scan`, {...initReq, method: "POST"})
|
|
34
|
+
}
|
|
35
|
+
static GetScanReport(req: KangarooIoApiImageV1alpha1Image.GetScanReportRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetScanReportResponse> {
|
|
36
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetScanReportRequest, KangarooIoApiImageV1alpha1Image.GetScanReportResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/${req["digest"]}/scan/${req["report"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository", "digest", "report"])}`, {...initReq, method: "GET"})
|
|
37
|
+
}
|
|
32
38
|
static ListRegistryProject(req: KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse> {
|
|
33
39
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
34
40
|
}
|