@daocloud-proto/kangaroo 0.4.3-30 → 0.4.3-34
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.
|
@@ -384,4 +384,17 @@ export type ScannerRegistration = {
|
|
|
384
384
|
|
|
385
385
|
export type GetScannerOfProjectResponse = {
|
|
386
386
|
scanner?: ScannerRegistration
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export type GetPushCommandRequest = {
|
|
390
|
+
workspace?: string
|
|
391
|
+
registry?: string
|
|
392
|
+
project?: string
|
|
393
|
+
expired?: number
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export type GetPushCommandResponse = {
|
|
397
|
+
cmd?: string
|
|
398
|
+
expired?: number
|
|
399
|
+
expiredAt?: string
|
|
387
400
|
}
|
|
@@ -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 GetPushCommand(req: KangarooIoApiImageV1alpha1Image.GetPushCommandRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetPushCommandResponse> {
|
|
42
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetPushCommandRequest, KangarooIoApiImageV1alpha1Image.GetPushCommandResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/project/${req["project"]}/push?${fm.renderURLSearchParams(req, ["workspace", "registry", "project"])}`, {...initReq, method: "GET"})
|
|
43
|
+
}
|
|
41
44
|
static GetScannerOfProject(req: KangarooIoApiImageV1alpha1Image.GetScannerOfProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetScannerOfProjectResponse> {
|
|
42
45
|
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
46
|
}
|