@daocloud-proto/kangaroo 0.4.2-42 → 0.4.2-52
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.
|
@@ -35,6 +35,12 @@ export enum ListArtifactsRequestSortBy {
|
|
|
35
35
|
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export enum ScannerRegistrationHealth {
|
|
39
|
+
unspecified = "unspecified",
|
|
40
|
+
healthy = "healthy",
|
|
41
|
+
unhealthy = "unhealthy",
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
export type ListRegistryRequest = {
|
|
39
45
|
workspace?: string
|
|
40
46
|
page?: number
|
|
@@ -350,4 +356,32 @@ export type StopScanArtifactRequest = {
|
|
|
350
356
|
project?: string
|
|
351
357
|
repository?: string
|
|
352
358
|
digest?: string
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export type GetScannerOfProjectRequest = {
|
|
362
|
+
registry?: string
|
|
363
|
+
project?: string
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export type ScannerRegistration = {
|
|
367
|
+
accessCredential?: string
|
|
368
|
+
adapter?: string
|
|
369
|
+
auth?: string
|
|
370
|
+
createTime?: string
|
|
371
|
+
description?: string
|
|
372
|
+
disabled?: boolean
|
|
373
|
+
health?: ScannerRegistrationHealth
|
|
374
|
+
isDefault?: boolean
|
|
375
|
+
name?: string
|
|
376
|
+
skipCertVerify?: boolean
|
|
377
|
+
updateTime?: string
|
|
378
|
+
url?: string
|
|
379
|
+
useInternalAddr?: boolean
|
|
380
|
+
uuid?: string
|
|
381
|
+
vendor?: string
|
|
382
|
+
version?: string
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export type GetScannerOfProjectResponse = {
|
|
386
|
+
scanner?: ScannerRegistration
|
|
353
387
|
}
|
|
@@ -38,6 +38,9 @@ export class Image {
|
|
|
38
38
|
static GetScanReport(req: KangarooIoApiImageV1alpha1Image.GetScanReportRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetScanReportResponse> {
|
|
39
39
|
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"})
|
|
40
40
|
}
|
|
41
|
+
static GetScannerOfProject(req: KangarooIoApiImageV1alpha1Image.GetScannerOfProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetScannerOfProjectResponse> {
|
|
42
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetScannerOfProjectRequest, KangarooIoApiImageV1alpha1Image.GetScannerOfProjectResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/project/${req["project"]}/scanner?${fm.renderURLSearchParams(req, ["registry", "project"])}`, {...initReq, method: "GET"})
|
|
43
|
+
}
|
|
41
44
|
static ListRegistryProject(req: KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse> {
|
|
42
45
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
43
46
|
}
|