@daocloud-proto/kangaroo 0.8.2 → 0.9.0
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.
- package/kangaroo.io/api/harbor/v1alpha1/harbor.pb.ts +29 -17
- package/kangaroo.io/api/harbor/v1alpha1/minio.pb.ts +34 -0
- package/kangaroo.io/api/harbor/v1alpha1/rpc.pb.ts +4 -0
- package/kangaroo.io/api/image/v1alpha1/image.pb.ts +8 -0
- package/kangaroo.io/api/registry/v1alpha1/registry.pb.ts +7 -0
- package/kangaroo.io/api/upload/v1alpha1/rpc.pb.ts +1 -1
- package/package.json +1 -1
|
@@ -39,6 +39,7 @@ export enum OCIStorageSpecStorageType {
|
|
|
39
39
|
STORAGE_UNSPECIFIED = "STORAGE_UNSPECIFIED",
|
|
40
40
|
S3 = "S3",
|
|
41
41
|
STORAGE_CLASS = "STORAGE_CLASS",
|
|
42
|
+
MCAMEL_MINIO = "MCAMEL_MINIO",
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export enum ExposeSpecExposeType {
|
|
@@ -55,6 +56,16 @@ export enum HarborClusterStatusClusterStatus {
|
|
|
55
56
|
UNHEALTHY = "UNHEALTHY",
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
export enum HarborClusterStatusTargetClusterStatus {
|
|
60
|
+
TARGET_CLUSTER_STATUS_UNSPECIFIED = "TARGET_CLUSTER_STATUS_UNSPECIFIED",
|
|
61
|
+
TARGET_CLUSTER_STATUS_RUNNING = "TARGET_CLUSTER_STATUS_RUNNING",
|
|
62
|
+
TARGET_CLUSTER_STATUS_FAILED = "TARGET_CLUSTER_STATUS_FAILED",
|
|
63
|
+
TARGET_CLUSTER_STATUS_UNKNOWN = "TARGET_CLUSTER_STATUS_UNKNOWN",
|
|
64
|
+
TARGET_CLUSTER_STATUS_DELETING = "TARGET_CLUSTER_STATUS_DELETING",
|
|
65
|
+
TARGET_CLUSTER_STATUS_CREATING = "TARGET_CLUSTER_STATUS_CREATING",
|
|
66
|
+
TARGET_CLUSTER_STATUS_UPDATING = "TARGET_CLUSTER_STATUS_UPDATING",
|
|
67
|
+
}
|
|
68
|
+
|
|
58
69
|
export type GetHarborParamsRequest = {
|
|
59
70
|
cluster?: string
|
|
60
71
|
}
|
|
@@ -68,7 +79,7 @@ export type GetHarborParamsResponse = {
|
|
|
68
79
|
export type ResourceNameList = {
|
|
69
80
|
name?: string
|
|
70
81
|
default?: boolean
|
|
71
|
-
hwameistorReplicas?:
|
|
82
|
+
hwameistorReplicas?: number
|
|
72
83
|
}
|
|
73
84
|
|
|
74
85
|
export type VerifyHarborOperatorRequest = {
|
|
@@ -130,6 +141,7 @@ export type DBMcamelModeSpec = {
|
|
|
130
141
|
cluster?: string
|
|
131
142
|
namespace?: string
|
|
132
143
|
name?: string
|
|
144
|
+
workspace?: string
|
|
133
145
|
}
|
|
134
146
|
|
|
135
147
|
export type DBExternalModeSpec = {
|
|
@@ -165,9 +177,18 @@ export type CacheExternalModeSpec = {
|
|
|
165
177
|
export type OCIStorageSpec = {
|
|
166
178
|
type?: OCIStorageSpecStorageType
|
|
167
179
|
s3Spec?: S3Spec
|
|
180
|
+
mcamelMinioSpec?: McamelMinioSpec
|
|
168
181
|
scSpec?: StorageClassSpec
|
|
169
182
|
}
|
|
170
183
|
|
|
184
|
+
export type McamelMinioSpec = {
|
|
185
|
+
name?: string
|
|
186
|
+
namespace?: string
|
|
187
|
+
cluster?: string
|
|
188
|
+
workspace?: string
|
|
189
|
+
bucket?: string
|
|
190
|
+
}
|
|
191
|
+
|
|
171
192
|
export type StorageClassSpec = {
|
|
172
193
|
name?: string
|
|
173
194
|
resource?: Resources
|
|
@@ -212,6 +233,7 @@ export type ExposeNodePortSpec = {
|
|
|
212
233
|
|
|
213
234
|
export type HarborClusterStatus = {
|
|
214
235
|
status?: HarborClusterStatusClusterStatus
|
|
236
|
+
targetClusterStatus?: HarborClusterStatusTargetClusterStatus
|
|
215
237
|
}
|
|
216
238
|
|
|
217
239
|
export type CreateHarborClusterRequest = {
|
|
@@ -287,24 +309,14 @@ export type CheckDependServiceRequest = {
|
|
|
287
309
|
storage?: OCIStorageSpec
|
|
288
310
|
}
|
|
289
311
|
|
|
290
|
-
export type
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export type CacheCheckResponse = {
|
|
296
|
-
status?: string
|
|
297
|
-
message?: string
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export type StorageCheckResponse = {
|
|
301
|
-
status?: string
|
|
312
|
+
export type CheckResponse = {
|
|
313
|
+
completed?: boolean
|
|
314
|
+
isPass?: boolean
|
|
302
315
|
message?: string
|
|
303
316
|
}
|
|
304
317
|
|
|
305
318
|
export type CheckDependServiceResponse = {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
storage?: StorageCheckResponse
|
|
319
|
+
db?: CheckResponse
|
|
320
|
+
cache?: CheckResponse
|
|
321
|
+
storage?: CheckResponse
|
|
310
322
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
|
+
|
|
9
|
+
export enum MinioStatus {
|
|
10
|
+
MINIO_STATUS_UNSPECIFIED = "MINIO_STATUS_UNSPECIFIED",
|
|
11
|
+
MINIO_STATUS_FAILED = "MINIO_STATUS_FAILED",
|
|
12
|
+
MINIO_STATUS_RUNNING = "MINIO_STATUS_RUNNING",
|
|
13
|
+
MINIO_STATUS_CREATING = "MINIO_STATUS_CREATING",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type MinioSummary = {
|
|
17
|
+
name?: string
|
|
18
|
+
cluster?: string
|
|
19
|
+
namespace?: string
|
|
20
|
+
buckets?: string[]
|
|
21
|
+
address?: string[]
|
|
22
|
+
status?: MinioStatus
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ListMinioRequest = {
|
|
26
|
+
workspace?: string
|
|
27
|
+
page?: number
|
|
28
|
+
pageSize?: number
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type ListMinioResponse = {
|
|
32
|
+
items?: MinioSummary[]
|
|
33
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
34
|
+
}
|
|
@@ -8,6 +8,7 @@ import * as fm from "../../../../fetch.pb"
|
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as KangarooIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
10
10
|
import * as KangarooIoApiHarborV1alpha1Harbor from "./harbor.pb"
|
|
11
|
+
import * as KangarooIoApiHarborV1alpha1Minio from "./minio.pb"
|
|
11
12
|
import * as KangarooIoApiHarborV1alpha1Postgresql from "./postgresql.pb"
|
|
12
13
|
import * as KangarooIoApiHarborV1alpha1Redis from "./redis.pb"
|
|
13
14
|
export class Harbor {
|
|
@@ -44,6 +45,9 @@ export class Harbor {
|
|
|
44
45
|
static ListPostgresql(req: KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlResponse> {
|
|
45
46
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlRequest, KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/postgresql?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
46
47
|
}
|
|
48
|
+
static ListMinio(req: KangarooIoApiHarborV1alpha1Minio.ListMinioRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Minio.ListMinioResponse> {
|
|
49
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Minio.ListMinioRequest, KangarooIoApiHarborV1alpha1Minio.ListMinioResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/minio?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
50
|
+
}
|
|
47
51
|
static ListTLSSecret(req: KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse> {
|
|
48
52
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/tls?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
49
53
|
}
|
|
@@ -12,6 +12,13 @@ export enum RegistrySecretHealth {
|
|
|
12
12
|
unhealthy = "unhealthy",
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export enum RegistrySecretType {
|
|
16
|
+
RegistryType_UNSPECIFIED = "RegistryType_UNSPECIFIED",
|
|
17
|
+
DOCKER_REGISTRY = "DOCKER_REGISTRY",
|
|
18
|
+
HARBOR = "HARBOR",
|
|
19
|
+
JFROG = "JFROG",
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
export enum ListRepositoriesRequestSortBy {
|
|
16
23
|
unspecified = "unspecified",
|
|
17
24
|
pull_count = "pull_count",
|
|
@@ -58,6 +65,7 @@ export type RegistrySecret = {
|
|
|
58
65
|
host?: string
|
|
59
66
|
name?: string
|
|
60
67
|
health?: RegistrySecretHealth
|
|
68
|
+
registryType?: RegistrySecretType
|
|
61
69
|
}
|
|
62
70
|
|
|
63
71
|
export type ListRegistryResponse = {
|
|
@@ -19,6 +19,12 @@ export enum IntegratedType {
|
|
|
19
19
|
Manual = "Manual",
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export enum RegistryTarGetClusterStatus {
|
|
23
|
+
TARGET_CLUSTER_STATUS_UNSPECIFIED = "TARGET_CLUSTER_STATUS_UNSPECIFIED",
|
|
24
|
+
TARGET_CLUSTER_STATUS_NOT_FOUND = "TARGET_CLUSTER_STATUS_NOT_FOUND",
|
|
25
|
+
TARGET_CLUSTER_STATUS_NORMAL = "TARGET_CLUSTER_STATUS_NORMAL",
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
export enum RegistryStatusClusterStatus {
|
|
23
29
|
CLUSTER_STATUS_UNSPECIFIED = "CLUSTER_STATUS_UNSPECIFIED",
|
|
24
30
|
HEALTHY = "HEALTHY",
|
|
@@ -34,6 +40,7 @@ export type Registry = {
|
|
|
34
40
|
status?: RegistryStatus
|
|
35
41
|
createAt?: string
|
|
36
42
|
isExist?: boolean
|
|
43
|
+
clusterStatus?: RegistryTarGetClusterStatus
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
export type RegistryStatus = {
|
|
@@ -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
|
}
|