@daocloud-proto/kangaroo 0.3.1-15 → 0.3.1-19
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.
|
@@ -28,6 +28,7 @@ export enum ScanOverviewSeverity {
|
|
|
28
28
|
medium = "medium",
|
|
29
29
|
high = "high",
|
|
30
30
|
critical = "critical",
|
|
31
|
+
none = "none",
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export enum ListArtifactsRequestSortBy {
|
|
@@ -320,4 +321,12 @@ export type GetScanReportRequest = {
|
|
|
320
321
|
|
|
321
322
|
export type GetScanReportResponse = {
|
|
322
323
|
report?: string
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type StopScanArtifactRequest = {
|
|
327
|
+
workspace?: string
|
|
328
|
+
registry?: string
|
|
329
|
+
project?: string
|
|
330
|
+
repository?: string
|
|
331
|
+
digest?: string
|
|
323
332
|
}
|
|
@@ -32,6 +32,9 @@ export class Image {
|
|
|
32
32
|
static ScanArtifact(req: KangarooIoApiImageV1alpha1Image.ScanArtifactRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
33
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
34
|
}
|
|
35
|
+
static StopScanArtifact(req: KangarooIoApiImageV1alpha1Image.StopScanArtifactRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
36
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.StopScanArtifactRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/${req["digest"]}/scan`, {...initReq, method: "PUT"})
|
|
37
|
+
}
|
|
35
38
|
static GetScanReport(req: KangarooIoApiImageV1alpha1Image.GetScanReportRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetScanReportResponse> {
|
|
36
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"})
|
|
37
40
|
}
|