@daocloud-proto/kangaroo 0.19.0 → 0.20.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.
@@ -5,10 +5,8 @@
5
5
  */
6
6
 
7
7
  export enum PermissionsType {
8
- ScanImage = "ScanImage",
9
8
  DeleteImage = "DeleteImage",
10
9
  GetImage = "GetImage",
11
- CreateImageKey = "CreateImageKey",
12
10
  CreateConnectedRegistry = "CreateConnectedRegistry",
13
11
  DeleteConnectedRegistry = "DeleteConnectedRegistry",
14
12
  UpdateConnectedRegistry = "UpdateConnectedRegistry",
@@ -21,11 +21,18 @@ export enum VerifyHarborOperatorResponseHarborOperatorStatus {
21
21
  STATUS_READY = "STATUS_READY",
22
22
  }
23
23
 
24
+ export enum VerifyPreEnvironmentResponsePreEnvironmentStatus {
25
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
26
+ STATUS_PRE_ENVIRONMENT_IS_NOT_READY = "STATUS_PRE_ENVIRONMENT_IS_NOT_READY",
27
+ STATUS_PRE_ENVIRONMENT_READY = "STATUS_PRE_ENVIRONMENT_READY",
28
+ }
29
+
24
30
  export enum DatabaseSpecDatabaseType {
25
31
  DATABASE_UNSPECIFIED = "DATABASE_UNSPECIFIED",
26
32
  BUILT_IN_MODE = "BUILT_IN_MODE",
27
33
  MCAMEL_MODE = "MCAMEL_MODE",
28
34
  EXTERNAL_MODE = "EXTERNAL_MODE",
35
+ BUILT_IN_MODE_WITH_MCAMEL = "BUILT_IN_MODE_WITH_MCAMEL",
29
36
  }
30
37
 
31
38
  export enum CacheSpecCacheType {
@@ -33,6 +40,7 @@ export enum CacheSpecCacheType {
33
40
  BUILT_IN_MODE = "BUILT_IN_MODE",
34
41
  MCAMEL_MODE = "MCAMEL_MODE",
35
42
  EXTERNAL_MODE = "EXTERNAL_MODE",
43
+ BUILT_IN_MODE_WITH_MCAMEL = "BUILT_IN_MODE_WITH_MCAMEL",
36
44
  }
37
45
 
38
46
  export enum OCIStorageSpecStorageType {
@@ -40,6 +48,7 @@ export enum OCIStorageSpecStorageType {
40
48
  S3 = "S3",
41
49
  STORAGE_CLASS = "STORAGE_CLASS",
42
50
  MCAMEL_MINIO = "MCAMEL_MINIO",
51
+ BUILT_IN_MINIO_MODE_WITH_MCAMEL = "BUILT_IN_MINIO_MODE_WITH_MCAMEL",
43
52
  }
44
53
 
45
54
  export enum ExposeSpecExposeType {
@@ -90,6 +99,18 @@ export type VerifyHarborOperatorResponse = {
90
99
  status?: VerifyHarborOperatorResponseHarborOperatorStatus
91
100
  }
92
101
 
102
+ export type VerifyPreEnvironmentRequest = {
103
+ cluster?: string
104
+ }
105
+
106
+ export type VerifyPreEnvironmentResponse = {
107
+ certManagerStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
108
+ harborOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
109
+ pgOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
110
+ redisOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
111
+ minioOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
112
+ }
113
+
93
114
  export type VerifyNamespaceQuotaRequest = {
94
115
  cluster?: string
95
116
  namespace?: string
@@ -139,6 +160,13 @@ export type DatabaseSpec = {
139
160
  inSpec?: DBBuiltInModeSpec
140
161
  mcamelSpec?: DBMcamelModeSpec
141
162
  externalSpec?: DBExternalModeSpec
163
+ buildInMcamelSpec?: DBBuildInWithMcamelModeSpec
164
+ }
165
+
166
+ export type DBBuildInWithMcamelModeSpec = {
167
+ cluster?: string
168
+ namespace?: string
169
+ name?: string
142
170
  }
143
171
 
144
172
  export type DBBuiltInModeSpec = {
@@ -162,6 +190,14 @@ export type CacheSpec = {
162
190
  inSpec?: CacheBuiltInModeSpec
163
191
  mcamelSpec?: CacheMcamelModeSpec
164
192
  externalSpec?: CacheExternalModeSpec
193
+ buildInMecamelSpec?: CacheBuildInWithMcamelModeSpec
194
+ }
195
+
196
+ export type CacheBuildInWithMcamelModeSpec = {
197
+ cluster?: string
198
+ namespace?: string
199
+ name?: string
200
+ type?: KangarooIoApiHarborV1alpha1Redis.RedisInstanceType
165
201
  }
166
202
 
167
203
  export type CacheBuiltInModeSpec = {
@@ -186,6 +222,14 @@ export type OCIStorageSpec = {
186
222
  s3Spec?: S3Spec
187
223
  mcamelMinioSpec?: McamelMinioSpec
188
224
  scSpec?: StorageClassSpec
225
+ builtInMinioMcamelSpec?: MinioBuiltInWithMcamelModeSpec
226
+ }
227
+
228
+ export type MinioBuiltInWithMcamelModeSpec = {
229
+ cluster?: string
230
+ namespace?: string
231
+ name?: string
232
+ bucket?: string
189
233
  }
190
234
 
191
235
  export type McamelMinioSpec = {
@@ -265,10 +309,19 @@ export type GetHarborClusterRequest = {
265
309
  name?: string
266
310
  }
267
311
 
312
+ export type DeleteHarborClusterharborMiddlewareMetadata = {
313
+ cluster?: string
314
+ namespace?: string
315
+ name?: string
316
+ }
317
+
268
318
  export type DeleteHarborCluster = {
269
319
  cluster?: string
270
320
  namespace?: string
271
321
  name?: string
322
+ harborMiddlewareRedis?: DeleteHarborClusterharborMiddlewareMetadata
323
+ harborMiddlewarePostgres?: DeleteHarborClusterharborMiddlewareMetadata
324
+ harborMiddlewareMinio?: DeleteHarborClusterharborMiddlewareMetadata
272
325
  }
273
326
 
274
327
  export type ListHarborClusterRequest = {
@@ -0,0 +1,39 @@
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 KangarooIoApiHarborV1alpha1Harbor from "./harbor.pb"
8
+ export type CreateHarborMiddlewareRequest = {
9
+ cluster?: string
10
+ namespace?: string
11
+ redis?: HarborMiddlewareRedis
12
+ postgres?: HarborMiddlewarePostgres
13
+ minio?: HarborMiddlewareMinio
14
+ }
15
+
16
+ export type HarborMiddlewareRedis = {
17
+ name?: string
18
+ replicas?: number
19
+ resources?: KangarooIoApiHarborV1alpha1Harbor.Resources
20
+ storageClassName?: string
21
+ storageSize?: string
22
+ }
23
+
24
+ export type HarborMiddlewarePostgres = {
25
+ name?: string
26
+ replicas?: number
27
+ resources?: KangarooIoApiHarborV1alpha1Harbor.Resources
28
+ storageClassName?: string
29
+ storageSize?: string
30
+ }
31
+
32
+ export type HarborMiddlewareMinio = {
33
+ name?: string
34
+ replicas?: number
35
+ resources?: KangarooIoApiHarborV1alpha1Harbor.Resources
36
+ storageClassName?: string
37
+ storageSize?: string
38
+ volumesPreServer?: number
39
+ }
@@ -20,6 +20,7 @@ export type MinioSummary = {
20
20
  buckets?: string[]
21
21
  address?: string[]
22
22
  status?: MinioStatus
23
+ replica?: number
23
24
  }
24
25
 
25
26
  export type ListMinioRequest = {
@@ -31,4 +32,15 @@ export type ListMinioRequest = {
31
32
  export type ListMinioResponse = {
32
33
  items?: MinioSummary[]
33
34
  pagination?: KangarooIoApiTypesPage.Page
35
+ }
36
+
37
+ export type ListMinioInstanceRequest = {
38
+ fuzzyName?: string
39
+ page?: number
40
+ pageSize?: number
41
+ }
42
+
43
+ export type ListMinioInstanceResponse = {
44
+ items?: MinioSummary[]
45
+ pagination?: KangarooIoApiTypesPage.Page
34
46
  }
@@ -30,4 +30,15 @@ export type ListPostgresqlRequest = {
30
30
  export type ListPostgresqlResponse = {
31
31
  items?: PostgresqlSummary[]
32
32
  pagination?: KangarooIoApiTypesPage.Page
33
+ }
34
+
35
+ export type ListPostgresqlInstanceRequest = {
36
+ fuzzyName?: string
37
+ page?: number
38
+ pageSize?: number
39
+ }
40
+
41
+ export type ListPostgresqlInstanceResponse = {
42
+ items?: PostgresqlSummary[]
43
+ pagination?: KangarooIoApiTypesPage.Page
33
44
  }
@@ -36,4 +36,15 @@ export type ListRedisRequest = {
36
36
  export type ListRedisResponse = {
37
37
  items?: RedisSummary[]
38
38
  pagination?: KangarooIoApiTypesPage.Page
39
+ }
40
+
41
+ export type ListRedisInstanceRequest = {
42
+ fuzzyName?: string
43
+ page?: number
44
+ pageSize?: number
45
+ }
46
+
47
+ export type ListRedisInstanceResponse = {
48
+ items?: RedisSummary[]
49
+ pagination?: KangarooIoApiTypesPage.Page
39
50
  }
@@ -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 KangarooIoApiHarborV1alpha1Middleware from "./middleware.pb"
11
12
  import * as KangarooIoApiHarborV1alpha1Minio from "./minio.pb"
12
13
  import * as KangarooIoApiHarborV1alpha1Postgresql from "./postgresql.pb"
13
14
  import * as KangarooIoApiHarborV1alpha1Redis from "./redis.pb"
@@ -18,6 +19,9 @@ export class Harbor {
18
19
  static VerifyHarborOperator(req: KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorResponse> {
19
20
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/check?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
20
21
  }
22
+ static VerifyPreEnvironment(req: KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentResponse> {
23
+ return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/check-pre-environment?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
24
+ }
21
25
  static VerifyNamespaceQuota(req: KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaResponse> {
22
26
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespace/${req["namespace"]}/check?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
23
27
  }
@@ -37,23 +41,35 @@ export class Harbor {
37
41
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.UpdateHarborClusterRequest, KangarooIoApiHarborV1alpha1Harbor.HarborCluster>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
38
42
  }
39
43
  static DeleteHarborCluster(req: KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
40
- return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "DELETE"})
44
+ return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
41
45
  }
42
46
  static ListRedis(req: KangarooIoApiHarborV1alpha1Redis.ListRedisRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Redis.ListRedisResponse> {
43
47
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Redis.ListRedisRequest, KangarooIoApiHarborV1alpha1Redis.ListRedisResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/redis?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
44
48
  }
49
+ static ListRedisInstance(req: KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceResponse> {
50
+ return fm.fetchReq<KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceRequest, KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceResponse>(`/apis/kangaroo.io/v1alpha1/redis-instance?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
51
+ }
45
52
  static ListPostgresql(req: KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlResponse> {
46
53
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlRequest, KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/postgresql?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
47
54
  }
55
+ static ListPostgresqlInstance(req: KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceResponse> {
56
+ return fm.fetchReq<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceRequest, KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceResponse>(`/apis/kangaroo.io/v1alpha1/postgresql-instance?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
57
+ }
48
58
  static ListMinio(req: KangarooIoApiHarborV1alpha1Minio.ListMinioRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Minio.ListMinioResponse> {
49
59
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Minio.ListMinioRequest, KangarooIoApiHarborV1alpha1Minio.ListMinioResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/minio?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
50
60
  }
61
+ static ListMinioInstance(req: KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceResponse> {
62
+ return fm.fetchReq<KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceRequest, KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceResponse>(`/apis/kangaroo.io/v1alpha1/minio-instance?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
63
+ }
51
64
  static ListTLSSecret(req: KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse> {
52
65
  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"})
53
66
  }
54
67
  static CreateVerifyDependService(req: KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
55
68
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/harbors/${req["name"]}/verify`, {...initReq, method: "POST", body: JSON.stringify(req)})
56
69
  }
70
+ static CreateHarborMiddleware(req: KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
71
+ return fm.fetchReq<KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/middleware`, {...initReq, method: "POST", body: JSON.stringify(req)})
72
+ }
57
73
  static GetVerifyDependService(req: KangarooIoApiTypesObjectmeta.ObjectMeta, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceResponse> {
58
74
  return fm.fetchReq<KangarooIoApiTypesObjectmeta.ObjectMeta, KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/harbors/${req["name"]}/verify?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
59
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.19.0",
3
+ "version":"0.20.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {