@daocloud-proto/skoala 0.6.1 → 0.7.0-2

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.
@@ -34,10 +34,45 @@ export type CreateExternalServiceReq = {
34
34
  clusterName?: string
35
35
  namespaceName?: string
36
36
  externalServiceConf?: ExternalServiceConf
37
+ advancedServiceConfig?: AdvancedServiceConfig
37
38
  }
38
39
 
39
- export type CreateExternalServiceRes = {
40
+ export type ListServiceSecretReq = {
41
+ workspaceId?: string
42
+ gatewayName?: string
43
+ clusterName?: string
44
+ namespaceName?: string
45
+ }
46
+
47
+ export type ListServiceSecretRes = {
48
+ items?: SecretSubjectAltName[]
49
+ }
50
+
51
+ export type SecretSubjectAltName = {
52
+ secretName?: string
53
+ secretNamespaceName?: string
54
+ subjectAltName?: string[]
55
+ }
56
+
57
+ export type AdvancedServiceConfig = {
58
+ circuitBreakerPolicy?: CircuitBreakerPolicy
59
+ tlsPolicy?: TLSPolicy
60
+ }
61
+
62
+ export type TLSPolicy = {
63
+ port?: number
64
+ secretName?: string
65
+ secretNamespaceName?: string
66
+ subjectAltName?: string
67
+ }
68
+
69
+ export type UpdateGatewayServicePolicyReq = {
70
+ workspaceId?: string
71
+ gatewayName?: string
72
+ clusterName?: string
73
+ namespaceName?: string
40
74
  sesameId?: string
75
+ advancedServiceConfig?: AdvancedServiceConfig
41
76
  }
42
77
 
43
78
  export type GetGatewayServiceReq = {
@@ -68,10 +103,6 @@ export type UpdateGatewayServiceReq = {
68
103
  externalServiceConf?: ExternalServiceConf
69
104
  }
70
105
 
71
- export type UpdateGatewayServiceRes = {
72
- sesameId?: string
73
- }
74
-
75
106
  export type DeleteGatewayServiceReq = {
76
107
  workspaceId?: string
77
108
  clusterName?: string
@@ -80,10 +111,6 @@ export type DeleteGatewayServiceReq = {
80
111
  sesameId?: string
81
112
  }
82
113
 
83
- export type DeleteGatewayServiceRes = {
84
- sesameId?: string
85
- }
86
-
87
114
  export type GetGatewayServiceRes = {
88
115
  externalServiceConf?: ExternalServiceConf
89
116
  manageServiceConf?: ServiceInfo
@@ -91,6 +118,7 @@ export type GetGatewayServiceRes = {
91
118
  api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
92
119
  sesameId?: string
93
120
  createdAt?: string
121
+ advancedServiceConfig?: AdvancedServiceConfig
94
122
  }
95
123
 
96
124
  export type ListGatewayServiceReq = {
@@ -98,6 +126,7 @@ export type ListGatewayServiceReq = {
98
126
  clusterName?: string
99
127
  gatewayName?: string
100
128
  namespaceName?: string
129
+ serviceNamespaceName?: string
101
130
  serviceName?: string
102
131
  serviceType?: SesameServiceType
103
132
  page?: number
@@ -111,7 +140,7 @@ export type ListGatewayServiceRes = {
111
140
 
112
141
  export type ServiceInfo = {
113
142
  serviceName?: string
114
- address?: Address
143
+ address?: Address[]
115
144
  apiCount?: number
116
145
  sourceInfo?: ServiceSourceInfo
117
146
  createdAt?: string
@@ -131,6 +160,7 @@ export type ServiceSourceInfo = {
131
160
  meshId?: string
132
161
  meshName?: string
133
162
  meshNamespaceName?: string
163
+ serviceName?: string
134
164
  }
135
165
 
136
166
 
@@ -140,6 +170,13 @@ type BaseExternalServiceConf = {
140
170
  export type ExternalServiceConf = BaseExternalServiceConf
141
171
  & OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService; meshService: MeshService }>
142
172
 
173
+ export type CircuitBreakerPolicy = {
174
+ maxConnections?: number
175
+ maxPendingRequests?: number
176
+ maxRequests?: number
177
+ maxRetries?: number
178
+ }
179
+
143
180
  export type MeshService = {
144
181
  meshId?: string
145
182
  meshName?: string
@@ -20,6 +20,7 @@ export enum HttpMethod {
20
20
  PUT = "PUT",
21
21
  PATCH = "PATCH",
22
22
  OPTIONS = "OPTIONS",
23
+ HEAD = "HEAD",
23
24
  }
24
25
 
25
26
  export enum Protocol {
@@ -56,6 +57,7 @@ export type HeaderRule = BaseHeaderRule
56
57
 
57
58
  export type APIInfo = {
58
59
  apiName?: string
60
+ apiGroup?: string
59
61
  fqdn?: string
60
62
  method?: HttpMethod[]
61
63
  requestPath?: string