@daocloud-proto/skoala 0.4.1-61 → 0.4.1-63

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.
@@ -0,0 +1,45 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum OrderBy {
8
+ desc = "desc",
9
+ asc = "asc",
10
+ }
11
+
12
+ export enum SortBy {
13
+ SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
14
+ field_name = "field_name",
15
+ state = "state",
16
+ workspace = "workspace",
17
+ cluster = "cluster",
18
+ namespace = "namespace",
19
+ created_at = "created_at",
20
+ }
21
+
22
+ export enum Status {
23
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
24
+ RUNNING = "RUNNING",
25
+ STARTING = "STARTING",
26
+ DESTROYING = "DESTROYING",
27
+ EXCEPTION = "EXCEPTION",
28
+ }
29
+
30
+ export type Cluster = {
31
+ id?: string
32
+ name?: string
33
+ }
34
+
35
+ export type Workspace = {
36
+ id?: number
37
+ name?: string
38
+ }
39
+
40
+ export type Pagination = {
41
+ total?: number
42
+ page?: number
43
+ pageSize?: number
44
+ pages?: number
45
+ }
@@ -0,0 +1,15 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type ResourceList = {
7
+ cpu?: string
8
+ memory?: string
9
+ storage?: string
10
+ }
11
+
12
+ export type ResourceRequirements = {
13
+ limits?: ResourceList
14
+ requests?: ResourceList
15
+ }
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum ServiceType {
8
+ SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
9
+ ClusterIP = "ClusterIP",
10
+ NodePort = "NodePort",
11
+ LoadBalancer = "LoadBalancer",
12
+ ExternalName = "ExternalName",
13
+ }
14
+
15
+ export type ServicePort = {
16
+ name?: string
17
+ protocol?: string
18
+ appProtocol?: string
19
+ port?: number
20
+ targetPort?: string
21
+ nodePort?: number
22
+ }
@@ -4,73 +4,23 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- export enum OrderBy {
8
- desc = "desc",
9
- asc = "asc",
10
- }
11
-
12
- export enum SortBy {
13
- SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
14
- field_name = "field_name",
15
- state = "state",
16
- workspace = "workspace",
17
- cluster = "cluster",
18
- namespace = "namespace",
19
- created_at = "created_at",
20
- }
21
-
22
- export enum Status {
23
- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
24
- RUNNING = "RUNNING",
25
- STARTING = "STARTING",
26
- DESTROYING = "DESTROYING",
27
- EXCEPTION = "EXCEPTION",
28
- }
29
-
30
- export type ResourceList = {
31
- cpu?: string
32
- memory?: string
33
- storage?: string
34
- }
35
-
36
- export type ResourceRequirements = {
37
- limits?: ResourceList
38
- requests?: ResourceList
39
- }
40
-
41
- export type Cluster = {
42
- id?: string
43
- name?: string
44
- }
45
-
46
- export type Workspace = {
47
- id?: number
48
- name?: string
49
- }
50
-
51
- export type Pagination = {
52
- total?: number
53
- page?: number
54
- pageSize?: number
55
- pages?: number
56
- }
57
-
7
+ import * as SkoalaApiGeneralV1alpha1Common from "./common.pb"
58
8
  export type ListWorkspaceReq = {
59
9
  page?: number
60
10
  pageSize?: number
61
11
  }
62
12
 
63
13
  export type ListWorkspaceRes = {
64
- items?: Workspace[]
65
- pagination?: Pagination
14
+ items?: SkoalaApiGeneralV1alpha1Common.Workspace[]
15
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
66
16
  }
67
17
 
68
18
  export type GetWorkspaceReq = {
69
- workspaceId?: number
19
+ workspaceId?: string
70
20
  }
71
21
 
72
22
  export type GetWorkspaceRes = {
73
- workspace?: Workspace
23
+ workspace?: SkoalaApiGeneralV1alpha1Common.Workspace
74
24
  }
75
25
 
76
26
  export type ListClusterReq = {
@@ -80,8 +30,8 @@ export type ListClusterReq = {
80
30
  }
81
31
 
82
32
  export type ListClusterRes = {
83
- clusters?: Cluster[]
84
- pagination?: Pagination
33
+ clusters?: SkoalaApiGeneralV1alpha1Common.Cluster[]
34
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
85
35
  }
86
36
 
87
37
  export type ListNamespaceReq = {
@@ -94,5 +44,5 @@ export type ListNamespaceReq = {
94
44
 
95
45
  export type ListNamespaceRes = {
96
46
  namespaceNames?: string[]
97
- pagination?: Pagination
47
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
98
48
  }
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
9
9
 
10
10
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
@@ -105,7 +105,7 @@ export type ServiceDetail = {
105
105
  clusterName?: string
106
106
  k8SNamespaceName?: string
107
107
  serviceName?: string
108
- registrationId?: string
108
+ registryId?: string
109
109
  address?: string
110
110
  protocol?: SkoalaApiHostedV1alpha1Http.Protocol
111
111
  port?: number
@@ -183,7 +183,7 @@ export type ExternalService = {
183
183
 
184
184
 
185
185
  type BaseRegistryService = {
186
- registrationId?: string
186
+ registryId?: string
187
187
  }
188
188
 
189
189
  export type RegistryService = BaseRegistryService
@@ -237,7 +237,7 @@ export type APIListReq = {
237
237
 
238
238
  export type APIListRes = {
239
239
  api?: APIInfo[]
240
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
240
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
241
241
  }
242
242
 
243
243
  export type APIInfo = {
@@ -4,7 +4,9 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
+ import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
8
10
 
9
11
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
10
12
  type OneOf<T> =
@@ -15,12 +17,6 @@ type OneOf<T> =
15
17
  : never)
16
18
  : never);
17
19
 
18
- export enum ServiceType {
19
- SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
20
- NodePort = "NodePort",
21
- LoadBalancer = "LoadBalancer",
22
- }
23
-
24
20
  export enum LogLogLevel {
25
21
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
26
22
  TRACE = "TRACE",
@@ -44,7 +40,7 @@ export type Gateway = {
44
40
  name?: string
45
41
  createdAt?: string
46
42
  updatedAt?: string
47
- status?: SkoalaApiGeneralV1alpha1Skoala.Status
43
+ status?: SkoalaApiGeneralV1alpha1Common.Status
48
44
  endpoints?: string[]
49
45
  contour?: Node
50
46
  envoy?: Node
@@ -70,7 +66,7 @@ export type ListClusterGatewayReq = {
70
66
 
71
67
  export type ListGatewayRes = {
72
68
  items?: Gateway[]
73
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
69
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
74
70
  }
75
71
 
76
72
  export type GetGatewayReq = {
@@ -109,12 +105,12 @@ export type HostIPs = {
109
105
  }
110
106
 
111
107
  export type EnvoyService = {
112
- type?: ServiceType
108
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
113
109
  enableHttps?: boolean
114
110
  }
115
111
 
116
112
  export type EnvoyServicePro = {
117
- type?: ServiceType
113
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
118
114
  ports?: EnvoyPorts
119
115
  targetPorts?: EnvoyPortsString
120
116
  nodePorts?: EnvoyPortsString
@@ -123,7 +119,7 @@ export type EnvoyServicePro = {
123
119
  }
124
120
 
125
121
  export type ContourService = {
126
- type?: ServiceType
122
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
127
123
  clusterIp?: string
128
124
  ports?: ContourPorts
129
125
  nodePorts?: ContourPortsString
@@ -229,7 +225,7 @@ export type GatewayConfigPro = {
229
225
 
230
226
 
231
227
  type BaseContourAdvancedConfig = {
232
- resources?: SkoalaApiGeneralV1alpha1Skoala.ResourceRequirements
228
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
233
229
  }
234
230
 
235
231
  export type ContourAdvancedConfig = BaseContourAdvancedConfig
@@ -237,7 +233,7 @@ export type ContourAdvancedConfig = BaseContourAdvancedConfig
237
233
 
238
234
 
239
235
  type BaseEnvoyAdvancedConfig = {
240
- resources?: SkoalaApiGeneralV1alpha1Skoala.ResourceRequirements
236
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
241
237
  }
242
238
 
243
239
  export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
@@ -4,7 +4,9 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
+ import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
8
10
 
9
11
  export enum NacosStatus {
10
12
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
@@ -20,13 +22,6 @@ export enum NacosConfigType {
20
22
  cluster = "cluster",
21
23
  }
22
24
 
23
- export enum NacosConfigServiceType {
24
- SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
25
- NodePort = "NodePort",
26
- ClusterIP = "ClusterIP",
27
- LoadBalancer = "LoadBalancer",
28
- }
29
-
30
25
  export type ListNacosReq = {
31
26
  workspaceId?: string
32
27
  clusterName?: string
@@ -37,7 +32,7 @@ export type ListNacosReq = {
37
32
 
38
33
  export type ListNacosRes = {
39
34
  items?: Nacos[]
40
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
35
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
41
36
  }
42
37
 
43
38
  export type Nacos = {
@@ -46,14 +41,14 @@ export type Nacos = {
46
41
  nacosName?: string
47
42
  namespaceName?: string
48
43
  type?: NacosConfigType
49
- serviceType?: NacosConfigServiceType
44
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
50
45
  nodePort?: number
51
46
  status?: NacosStatus
52
47
  replicas?: number
53
48
  image?: string
54
49
  version?: string
55
50
  database?: NacosDatabase
56
- resources?: SkoalaApiGeneralV1alpha1Skoala.ResourceRequirements
51
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
57
52
  condition?: NacosCondition[]
58
53
  createAt?: string
59
54
  }
@@ -127,7 +122,7 @@ export type NacosConfig = {
127
122
  replicas?: number
128
123
  cpu?: string
129
124
  memory?: string
130
- serviceType?: NacosConfigServiceType
125
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
131
126
  nodePort?: string
132
127
  databaseEnabled?: boolean
133
128
  databaseParam?: DatabaseParam
@@ -4,7 +4,8 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
8
9
  export type ListSentinelReq = {
9
10
  workspace?: string
10
11
  cluster?: string
@@ -15,7 +16,7 @@ export type ListSentinelReq = {
15
16
 
16
17
  export type ListSentinelRes = {
17
18
  items?: Sentinel[]
18
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
19
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
19
20
  }
20
21
 
21
22
  export type Sentinel = {
@@ -53,7 +54,7 @@ export type SentinelConfig = {
53
54
  type?: string
54
55
  port?: number
55
56
  nodePort?: number
56
- resources?: SkoalaApiGeneralV1alpha1Skoala.ResourceRequirements
57
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
57
58
  image?: string
58
59
  }
59
60
 
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
9
9
  export type CreateVirtualhostReq = {
10
10
  workspaceId?: string
@@ -39,7 +39,7 @@ export type VirtualhostInfo = {
39
39
 
40
40
  export type ListVirtualhostRes = {
41
41
  virtualhost?: VirtualhostInfo[]
42
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
42
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
43
43
  }
44
44
 
45
45
  export type GetVirtualhostReq = {
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
9
9
 
10
10
  export enum InstanceStatus {
@@ -40,7 +40,7 @@ export type ListInstanceReq = {
40
40
 
41
41
  export type ListInstanceRes = {
42
42
  items?: Instance[]
43
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
43
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
44
44
  }
45
45
 
46
46
  export type GetInstanceReq = {
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
 
9
9
  export enum RegistryStatus {
10
10
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
@@ -53,7 +53,7 @@ export type ListRegistryReq = {
53
53
 
54
54
  export type ListRegistryRes = {
55
55
  items?: Registry[]
56
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
56
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
57
57
  }
58
58
 
59
59
  export type GetRegistryReq = {
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
9
9
  import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
10
10
  export type Service = {
@@ -27,7 +27,7 @@ export type ListServiceReq = {
27
27
 
28
28
  export type ListServiceRes = {
29
29
  items?: Service[]
30
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
30
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
31
31
  }
32
32
 
33
33
  export type GetServiceReq = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.4.1-61",
3
+ "version": "0.4.1-63",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {