@daocloud-proto/kangaroo 0.20.0 → 0.21.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.
@@ -6,6 +6,12 @@
6
6
 
7
7
  import * as KangarooIoApiTypesPage from "../../types/page.pb"
8
8
 
9
+ export enum clusterStatus {
10
+ clusterStatus_UNSPECIFIED = "clusterStatus_UNSPECIFIED",
11
+ clusterStatus_READY = "clusterStatus_READY",
12
+ clusterStatus_NOT_READY = "clusterStatus_NOT_READY",
13
+ }
14
+
9
15
  export enum ListClusterRequestSortBy {
10
16
  SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
11
17
  field_name = "field_name",
@@ -20,6 +26,11 @@ export type ListClusterRequest = {
20
26
  }
21
27
 
22
28
  export type ListClusterResponse = {
23
- items?: string[]
29
+ items?: clusterSummary[]
24
30
  pagination?: KangarooIoApiTypesPage.Page
31
+ }
32
+
33
+ export type clusterSummary = {
34
+ name?: string
35
+ status?: clusterStatus
25
36
  }
@@ -190,7 +190,7 @@ export type CacheSpec = {
190
190
  inSpec?: CacheBuiltInModeSpec
191
191
  mcamelSpec?: CacheMcamelModeSpec
192
192
  externalSpec?: CacheExternalModeSpec
193
- buildInMecamelSpec?: CacheBuildInWithMcamelModeSpec
193
+ buildInMcamelSpec?: CacheBuildInWithMcamelModeSpec
194
194
  }
195
195
 
196
196
  export type CacheBuildInWithMcamelModeSpec = {
@@ -5,6 +5,14 @@
5
5
  */
6
6
 
7
7
  import * as KangarooIoApiHarborV1alpha1Harbor from "./harbor.pb"
8
+
9
+ export enum CreateHarborMiddlewareStatus {
10
+ CREATE_HARBOR_MIDDLEWARE_STATUS_UNSPECIFIED = "CREATE_HARBOR_MIDDLEWARE_STATUS_UNSPECIFIED",
11
+ CREATE_HARBOR_MIDDLEWARE_STATUS_SUCCESS = "CREATE_HARBOR_MIDDLEWARE_STATUS_SUCCESS",
12
+ CREATE_HARBOR_MIDDLEWARE_STATUS_INTERNAL_SERVER_ERROR = "CREATE_HARBOR_MIDDLEWARE_STATUS_INTERNAL_SERVER_ERROR",
13
+ CREATE_HARBOR_MIDDLEWARE_STATUS_ALREADY_EXISTS = "CREATE_HARBOR_MIDDLEWARE_STATUS_ALREADY_EXISTS",
14
+ }
15
+
8
16
  export type CreateHarborMiddlewareRequest = {
9
17
  cluster?: string
10
18
  namespace?: string
@@ -36,4 +44,15 @@ export type HarborMiddlewareMinio = {
36
44
  storageClassName?: string
37
45
  storageSize?: string
38
46
  volumesPreServer?: number
47
+ }
48
+
49
+ export type CreateHarborMiddlewareResponse = {
50
+ redis?: CreateHarborMiddlewareResult
51
+ postgres?: CreateHarborMiddlewareResult
52
+ minio?: CreateHarborMiddlewareResult
53
+ }
54
+
55
+ export type CreateHarborMiddlewareResult = {
56
+ status?: CreateHarborMiddlewareStatus
57
+ message?: string
39
58
  }
@@ -10,7 +10,6 @@ export enum MinioStatus {
10
10
  MINIO_STATUS_UNSPECIFIED = "MINIO_STATUS_UNSPECIFIED",
11
11
  MINIO_STATUS_FAILED = "MINIO_STATUS_FAILED",
12
12
  MINIO_STATUS_RUNNING = "MINIO_STATUS_RUNNING",
13
- MINIO_STATUS_CREATING = "MINIO_STATUS_CREATING",
14
13
  }
15
14
 
16
15
  export type MinioSummary = {
@@ -21,6 +20,7 @@ export type MinioSummary = {
21
20
  address?: string[]
22
21
  status?: MinioStatus
23
22
  replica?: number
23
+ useBy?: string
24
24
  }
25
25
 
26
26
  export type ListMinioRequest = {
@@ -9,7 +9,6 @@ import * as KangarooIoApiTypesPage from "../../types/page.pb"
9
9
  export enum PostgresqlStatus {
10
10
  PG_STATUS_UNSPECIFIED = "PG_STATUS_UNSPECIFIED",
11
11
  PG_STATUS_RUNNING = "PG_STATUS_RUNNING",
12
- PG_STATUS_CREATING = "PG_STATUS_CREATING",
13
12
  PG_STATUS_FAILED = "PG_STATUS_FAILED",
14
13
  }
15
14
 
@@ -19,6 +18,7 @@ export type PostgresqlSummary = {
19
18
  namespace?: string
20
19
  status?: PostgresqlStatus
21
20
  numberOfInstances?: number
21
+ useBy?: string
22
22
  }
23
23
 
24
24
  export type ListPostgresqlRequest = {
@@ -8,7 +8,6 @@ import * as KangarooIoApiTypesPage from "../../types/page.pb"
8
8
 
9
9
  export enum RedisStatus {
10
10
  RUNNING = "RUNNING",
11
- CREATING = "CREATING",
12
11
  FAILED = "FAILED",
13
12
  }
14
13
 
@@ -25,6 +24,7 @@ export type RedisSummary = {
25
24
  namespace?: string
26
25
  status?: RedisStatus
27
26
  instanceType?: RedisInstanceType
27
+ useBy?: string
28
28
  }
29
29
 
30
30
  export type ListRedisRequest = {
@@ -67,8 +67,8 @@ export class Harbor {
67
67
  static CreateVerifyDependService(req: KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
68
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)})
69
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)})
70
+ static CreateHarborMiddleware(req: KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareResponse> {
71
+ return fm.fetchReq<KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareRequest, KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespace/${req["namespace"]}/middleware`, {...initReq, method: "POST", body: JSON.stringify(req)})
72
72
  }
73
73
  static GetVerifyDependService(req: KangarooIoApiTypesObjectmeta.ObjectMeta, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceResponse> {
74
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"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.20.0",
3
+ "version":"0.21.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {