@daocloud-proto/kangaroo 0.5.0-293 → 0.5.0-295
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.
|
@@ -288,24 +288,14 @@ export type CheckDependServiceRequest = {
|
|
|
288
288
|
storage?: OCIStorageSpec
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
export type
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export type CacheCheckResponse = {
|
|
297
|
-
status?: string
|
|
298
|
-
message?: string
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export type StorageCheckResponse = {
|
|
302
|
-
status?: string
|
|
291
|
+
export type CheckResponse = {
|
|
292
|
+
completed?: boolean
|
|
293
|
+
isPass?: boolean
|
|
303
294
|
message?: string
|
|
304
295
|
}
|
|
305
296
|
|
|
306
297
|
export type CheckDependServiceResponse = {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
storage?: StorageCheckResponse
|
|
298
|
+
db?: CheckResponse
|
|
299
|
+
cache?: CheckResponse
|
|
300
|
+
storage?: CheckResponse
|
|
311
301
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as fm from "../../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as KangarooIoApiUploadV1alpha1Upload from "./upload.pb"
|
|
10
|
-
export class
|
|
10
|
+
export class Uploader {
|
|
11
11
|
static UploadOCI(req: KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
12
12
|
return fm.fetchReq<KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, GoogleProtobufEmpty.Empty>(`/apis/upload.kangaroo.io/v1alpha1/registries/${req["registry"]}/upload`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
13
13
|
}
|