@daocloud-proto/skoala 0.6.1-10 → 0.6.1-18
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.
|
@@ -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",
|
|
@@ -222,26 +213,6 @@ type BaseGetAPIRes = {
|
|
|
222
213
|
export type GetAPIRes = BaseGetAPIRes
|
|
223
214
|
& OneOf<{ route: RouteAction; redirect: RedirectAction; directResponse: DirectResponse }>
|
|
224
215
|
|
|
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
216
|
|
|
246
217
|
type BaseAPIConfig = {
|
|
247
218
|
apiName?: string
|
|
@@ -253,15 +224,6 @@ type BaseAPIConfig = {
|
|
|
253
224
|
export type APIConfig = BaseAPIConfig
|
|
254
225
|
& OneOf<{ route: RouteAction; redirect: RedirectAction; directResponse: DirectResponse }>
|
|
255
226
|
|
|
256
|
-
export type Virtualhost = {
|
|
257
|
-
fqdn?: string
|
|
258
|
-
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export type Certificate = {
|
|
262
|
-
namespace?: string
|
|
263
|
-
}
|
|
264
|
-
|
|
265
227
|
|
|
266
228
|
type BaseMatchRule = {
|
|
267
229
|
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
@@ -34,6 +34,7 @@ export type CreateExternalServiceReq = {
|
|
|
34
34
|
clusterName?: string
|
|
35
35
|
namespaceName?: string
|
|
36
36
|
externalServiceConf?: ExternalServiceConf
|
|
37
|
+
circuitBreakerPolicy?: CircuitBreakerPolicy
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export type CreateExternalServiceRes = {
|
|
@@ -66,6 +67,7 @@ export type UpdateGatewayServiceReq = {
|
|
|
66
67
|
namespaceName?: string
|
|
67
68
|
sesameId?: string
|
|
68
69
|
externalServiceConf?: ExternalServiceConf
|
|
70
|
+
circuitBreakerPolicy?: CircuitBreakerPolicy
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
export type UpdateGatewayServiceRes = {
|
|
@@ -86,6 +88,7 @@ export type DeleteGatewayServiceRes = {
|
|
|
86
88
|
|
|
87
89
|
export type GetGatewayServiceRes = {
|
|
88
90
|
externalServiceConf?: ExternalServiceConf
|
|
91
|
+
circuitBreakerPolicy?: CircuitBreakerPolicy
|
|
89
92
|
manageServiceConf?: ServiceInfo
|
|
90
93
|
serviceType?: SesameServiceType
|
|
91
94
|
api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
|
|
@@ -141,6 +144,13 @@ type BaseExternalServiceConf = {
|
|
|
141
144
|
export type ExternalServiceConf = BaseExternalServiceConf
|
|
142
145
|
& OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService; meshService: MeshService }>
|
|
143
146
|
|
|
147
|
+
export type CircuitBreakerPolicy = {
|
|
148
|
+
maxConnections?: number
|
|
149
|
+
maxPendingRequests?: number
|
|
150
|
+
maxRequests?: number
|
|
151
|
+
maxRetries?: number
|
|
152
|
+
}
|
|
153
|
+
|
|
144
154
|
export type MeshService = {
|
|
145
155
|
meshId?: string
|
|
146
156
|
meshName?: string
|