@daocloud-proto/skoala 0.6.1-6 → 0.6.1-60

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.
@@ -4,6 +4,12 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum APIDataType {
8
+ DATA_TYPE_UNSPECIFIED = "DATA_TYPE_UNSPECIFIED",
9
+ JSON = "JSON",
10
+ YAML = "YAML",
11
+ }
12
+
7
13
  export enum OrderBy {
8
14
  desc = "desc",
9
15
  asc = "asc",
@@ -73,4 +79,15 @@ export type Pagination = {
73
79
  page?: number
74
80
  pageSize?: number
75
81
  pages?: number
82
+ }
83
+
84
+ export type API = {
85
+ apiId?: number
86
+ isHosted?: boolean
87
+ registry?: string
88
+ serviceName?: string
89
+ nacosNamespace?: string
90
+ nacosGroupName?: string
91
+ dataType?: APIDataType
92
+ detail?: string
76
93
  }
@@ -0,0 +1,57 @@
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 InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
8
+ export type InsightBrief = {
9
+ enabled?: boolean
10
+ brief?: InsightTracingBrief
11
+ }
12
+
13
+ export type ServiceInsightDetail = {
14
+ enabled?: boolean
15
+ brief?: InsightTracingBrief
16
+ tracingMetrics?: InsightTracingMetrics
17
+ monitorMetrics?: InsightMonitorMetrics
18
+ }
19
+
20
+ export type InstanceInsightDetail = {
21
+ enabled?: boolean
22
+ brief?: InsightTracingBrief
23
+ tracingMetrics?: InsightTracingMetrics
24
+ monitorMetrics?: InsightMonitorMetrics
25
+ }
26
+
27
+ export type InsightTracingBrief = {
28
+ call?: string
29
+ successRates?: string
30
+ latencies?: string
31
+ }
32
+
33
+ export type InsightTracingMetrics = {
34
+ p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
35
+ p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
36
+ p90Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
37
+ p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
38
+ p99Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
39
+ reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
40
+ repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
41
+ errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
42
+ successTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
43
+ errorTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
44
+ }
45
+
46
+ export type InsightMonitorMetrics = {
47
+ cpuRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
48
+ cpuLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
49
+ cpuUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
50
+ memoryRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
51
+ memoryLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
52
+ memoryUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
53
+ diskRead?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
54
+ diskWrite?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
55
+ netBytesReceived?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
56
+ netBytesTransmitted?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
57
+ }
@@ -17,6 +17,6 @@ export type ServicePort = {
17
17
  protocol?: string
18
18
  appProtocol?: string
19
19
  port?: number
20
- targetPort?: string
20
+ targetPort?: number
21
21
  nodePort?: number
22
22
  }
@@ -121,15 +121,15 @@ export type ListMeshReq = {
121
121
  }
122
122
 
123
123
  export type ListMeshRes = {
124
- meshes?: SkoalaApiGeneralV1alpha1Common.Mesh[]
124
+ items?: SkoalaApiGeneralV1alpha1Common.Mesh[]
125
125
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
126
126
  }
127
127
 
128
- export type ListClaimReq = {
128
+ export type ListStorageClassesReq = {
129
129
  workspaceId?: string
130
130
  clusterName?: string
131
131
  }
132
132
 
133
- export type ListClaimRes = {
133
+ export type ListStorageClassesRes = {
134
134
  items?: string[]
135
135
  }
@@ -36,15 +36,6 @@ export enum GrpcRetryOnEnum {
36
36
  unavailable = "unavailable",
37
37
  }
38
38
 
39
- export enum ValueMatchType {
40
- CONTAIN = "CONTAIN",
41
- EXACT = "EXACT",
42
- NOT_CONTAIN = "NOT_CONTAIN",
43
- NOT_EXACT = "NOT_EXACT",
44
- PRESENT = "PRESENT",
45
- NOT_PRESENT = "NOT_PRESENT",
46
- }
47
-
48
39
  export enum RedirectResponseCode {
49
40
  MOVED_PERMANENTLY = "MOVED_PERMANENTLY",
50
41
  FOUND = "FOUND",
@@ -79,10 +70,6 @@ export type AdvancedAPIReq = {
79
70
  advancedApiConfig?: AdvancedAPIConfig
80
71
  }
81
72
 
82
- export type AdvancedAPIRes = {
83
- apiName?: string
84
- }
85
-
86
73
  export type TimeoutPolicy = {
87
74
  response?: string
88
75
  }
@@ -177,23 +164,6 @@ export type UpdateAPIStatusReq = {
177
164
  enabled?: boolean
178
165
  }
179
166
 
180
- export type UpdateAPIStatusRes = {
181
- apiName?: string
182
- enabled?: boolean
183
- }
184
-
185
- export type CreateAPIRes = {
186
- apiName?: string
187
- }
188
-
189
- export type UpdateAPIRes = {
190
- apiName?: string
191
- }
192
-
193
- export type DeleteAPIRes = {
194
- apiName?: string
195
- }
196
-
197
167
  export type GetAPIReq = {
198
168
  workspaceId?: string
199
169
  clusterName?: string
@@ -222,26 +192,6 @@ type BaseGetAPIRes = {
222
192
  export type GetAPIRes = BaseGetAPIRes
223
193
  & OneOf<{ route: RouteAction; redirect: RedirectAction; directResponse: DirectResponse }>
224
194
 
225
- export type TargetService = {
226
- serviceList?: ServiceDetail[]
227
- }
228
-
229
- export type ServiceDetail = {
230
- clusterName?: string
231
- k8SNamespaceName?: string
232
- serviceName?: string
233
- registryId?: string
234
- address?: string
235
- protocol?: SkoalaApiHostedV1alpha1Http.Protocol
236
- port?: number
237
- weight?: string
238
- nacosNamespaceId?: string
239
- groupName?: string
240
- routeType?: SkoalaApiHostedV1alpha1Http.RouteType
241
- path?: string
242
- statusCode?: number
243
- }
244
-
245
195
 
246
196
  type BaseAPIConfig = {
247
197
  apiName?: string
@@ -253,15 +203,6 @@ type BaseAPIConfig = {
253
203
  export type APIConfig = BaseAPIConfig
254
204
  & OneOf<{ route: RouteAction; redirect: RedirectAction; directResponse: DirectResponse }>
255
205
 
256
- export type Virtualhost = {
257
- fqdn?: string
258
- protocol?: SkoalaApiHostedV1alpha1Http.Protocol
259
- }
260
-
261
- export type Certificate = {
262
- namespace?: string
263
- }
264
-
265
206
 
266
207
  type BaseMatchRule = {
267
208
  httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
@@ -282,6 +223,7 @@ export type RouteService = {
282
223
  sesameId?: string
283
224
  port?: number
284
225
  weight?: number
226
+ mirror?: boolean
285
227
  }
286
228
 
287
229
  export type RedirectAction = {
@@ -26,7 +26,7 @@ type BaseSearchLogReq = {
26
26
  requestMethod?: string[]
27
27
  startTime?: string
28
28
  endTime?: string
29
- sortOrder?: SortOrder[]
29
+ sortOrder?: SortOrder
30
30
  page?: number
31
31
  pageSize?: number
32
32
  }
@@ -18,9 +18,6 @@ export type CreateGatewayRLSReq = {
18
18
  config?: GatewayRLSConfig
19
19
  }
20
20
 
21
- export type CreateGatewayRLSRes = {
22
- }
23
-
24
21
  export type GetGatewayRLSReq = {
25
22
  workspaceId?: string
26
23
  clusterName?: string
@@ -39,9 +36,6 @@ export type DeleteGatewayRLSReq = {
39
36
  gatewayName?: string
40
37
  }
41
38
 
42
- export type DeleteGatewayRLSRes = {
43
- }
44
-
45
39
  export type UpdateGatewayRLSReq = {
46
40
  workspaceId?: string
47
41
  clusterName?: string
@@ -50,9 +44,6 @@ export type UpdateGatewayRLSReq = {
50
44
  config?: GatewayRLSConfig
51
45
  }
52
46
 
53
- export type UpdateGatewayRLSRes = {
54
- }
55
-
56
47
  export type GatewayAuthzConfig = {
57
48
  }
58
49
 
@@ -63,9 +54,6 @@ export type CreateGatewayAuthzReq = {
63
54
  gatewayName?: string
64
55
  }
65
56
 
66
- export type CreateGatewayAuthzRes = {
67
- }
68
-
69
57
  export type GetGatewayAuthzReq = {
70
58
  workspaceId?: string
71
59
  clusterName?: string
@@ -83,15 +71,9 @@ export type DeleteGatewayAuthzReq = {
83
71
  gatewayName?: string
84
72
  }
85
73
 
86
- export type DeleteGatewayAuthzRes = {
87
- }
88
-
89
74
  export type UpdateGatewayAuthzReq = {
90
75
  workspaceId?: string
91
76
  clusterName?: string
92
77
  namespaceName?: string
93
78
  gatewayName?: string
94
- }
95
-
96
- export type UpdateGatewayAuthzRes = {
97
79
  }
@@ -207,10 +207,6 @@ export type CreateGatewayReq = {
207
207
  config?: GatewayConfig
208
208
  }
209
209
 
210
- export type CreateGatewayRes = {
211
- status?: SkoalaApiGeneralV1alpha1Common.Status
212
- }
213
-
214
210
  export type CreateGatewayProReq = {
215
211
  workspaceId?: string
216
212
  gatewayName?: string
@@ -228,10 +224,6 @@ export type UpdateGatewayReq = {
228
224
  config?: GatewayConfig
229
225
  }
230
226
 
231
- export type UpdateGatewayRes = {
232
- status?: SkoalaApiGeneralV1alpha1Common.Status
233
- }
234
-
235
227
  export type UpdateGatewayProReq = {
236
228
  workspaceId?: string
237
229
  gatewayName?: string
@@ -247,10 +239,6 @@ export type DeleteGatewayReq = {
247
239
  gatewayName?: string
248
240
  }
249
241
 
250
- export type DeleteGatewayRes = {
251
- status?: SkoalaApiGeneralV1alpha1Common.Status
252
- }
253
-
254
242
  export type NormalConfig = {
255
243
  contour?: ContourNormalConfig
256
244
  envoy?: EnvoyNormalConfig
@@ -384,10 +372,6 @@ export type GatewayDiagnosticReq = {
384
372
  diagnostic?: GatewayDiagnostic
385
373
  }
386
374
 
387
- export type GatewayDiagnosticRes = {
388
- tips?: string
389
- }
390
-
391
375
  export type PodSummary = {
392
376
  podName?: string
393
377
  namespaceName?: string
@@ -0,0 +1,74 @@
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+
9
+ export enum SignatureAlgorithm {
10
+ MD2WithRSA = "MD2WithRSA",
11
+ MD5WithRSA = "MD5WithRSA",
12
+ SHA1WithRSA = "SHA1WithRSA",
13
+ SHA256WithRSA = "SHA256WithRSA",
14
+ SHA384WithRSA = "SHA384WithRSA",
15
+ }
16
+
17
+ export type CreateSecretReq = {
18
+ workspaceId?: string
19
+ gatewayName?: string
20
+ clusterName?: string
21
+ namespaceName?: string
22
+ secretConfig?: SecretConfig
23
+ }
24
+
25
+ export type ListSecretReq = {
26
+ workspaceId?: string
27
+ clusterName?: string
28
+ gatewayName?: string
29
+ namespaceName?: string
30
+ secretNamespaceName?: string
31
+ secretName?: string
32
+ page?: number
33
+ pageSize?: number
34
+ }
35
+
36
+ export type ListSecretRes = {
37
+ items?: SecretInfo[]
38
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
39
+ }
40
+
41
+ export type CertInfo = {
42
+ errInfo?: string
43
+ sha1Fingerprint?: string
44
+ sha256Fingerprint?: string
45
+ signatureAlgorithm?: string
46
+ beginTime?: string
47
+ endTime?: string
48
+ domain?: string
49
+ encryptAlgorithm?: string
50
+ keyLength?: number
51
+ issuer?: string
52
+ subjectAltName?: string[]
53
+ cA?: boolean
54
+ }
55
+
56
+ export type SecretInfo = {
57
+ secretName?: string
58
+ secretNamespaceName?: string
59
+ tlsCertificate?: CertInfo[]
60
+ caCertificate?: CertInfo[]
61
+ errMsg?: string
62
+ }
63
+
64
+ export type SecretConfig = {
65
+ name?: string
66
+ namespaceName?: string
67
+ caCrt?: string
68
+ tlsCrt?: string
69
+ tlsKey?: string
70
+ }
71
+
72
+ export type CreateSecretRes = {
73
+ secretName?: string
74
+ }
@@ -34,10 +34,7 @@ export type CreateExternalServiceReq = {
34
34
  clusterName?: string
35
35
  namespaceName?: string
36
36
  externalServiceConf?: ExternalServiceConf
37
- }
38
-
39
- export type CreateExternalServiceRes = {
40
- sesameId?: string
37
+ circuitBreakerPolicy?: CircuitBreakerPolicy
41
38
  }
42
39
 
43
40
  export type GetGatewayServiceReq = {
@@ -66,10 +63,7 @@ export type UpdateGatewayServiceReq = {
66
63
  namespaceName?: string
67
64
  sesameId?: string
68
65
  externalServiceConf?: ExternalServiceConf
69
- }
70
-
71
- export type UpdateGatewayServiceRes = {
72
- sesameId?: string
66
+ circuitBreakerPolicy?: CircuitBreakerPolicy
73
67
  }
74
68
 
75
69
  export type DeleteGatewayServiceReq = {
@@ -80,12 +74,9 @@ export type DeleteGatewayServiceReq = {
80
74
  sesameId?: string
81
75
  }
82
76
 
83
- export type DeleteGatewayServiceRes = {
84
- sesameId?: string
85
- }
86
-
87
77
  export type GetGatewayServiceRes = {
88
78
  externalServiceConf?: ExternalServiceConf
79
+ circuitBreakerPolicy?: CircuitBreakerPolicy
89
80
  manageServiceConf?: ServiceInfo
90
81
  serviceType?: SesameServiceType
91
82
  api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
@@ -98,6 +89,7 @@ export type ListGatewayServiceReq = {
98
89
  clusterName?: string
99
90
  gatewayName?: string
100
91
  namespaceName?: string
92
+ serviceNamespaceName?: string
101
93
  serviceName?: string
102
94
  serviceType?: SesameServiceType
103
95
  page?: number
@@ -141,6 +133,13 @@ type BaseExternalServiceConf = {
141
133
  export type ExternalServiceConf = BaseExternalServiceConf
142
134
  & OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService; meshService: MeshService }>
143
135
 
136
+ export type CircuitBreakerPolicy = {
137
+ maxConnections?: number
138
+ maxPendingRequests?: number
139
+ maxRequests?: number
140
+ maxRetries?: number
141
+ }
142
+
144
143
  export type MeshService = {
145
144
  meshId?: string
146
145
  meshName?: string