@daocloud-proto/skoala 0.38.2-2 → 0.38.2-22

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.
@@ -116,6 +116,7 @@ export type Nacos = {
116
116
  clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
117
117
  workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
118
118
  failedReason?: string[]
119
+ ldap?: LDAP
119
120
  }
120
121
 
121
122
  export type NacosDatabase = {
@@ -176,6 +177,29 @@ export type DeleteNacosReq = {
176
177
  deleteConfigs?: boolean
177
178
  }
178
179
 
180
+ export type NacosStatusReq = {
181
+ workspaceId?: string
182
+ clusterName?: string
183
+ nacosName?: string
184
+ namespaceName?: string
185
+ }
186
+
187
+ export type NacosPluginStatus = {
188
+ enabled?: boolean
189
+ }
190
+
191
+ export type NacosServiceStatus = {
192
+ binding?: boolean
193
+ }
194
+
195
+ export type NacosStatusRes = {
196
+ canDelete?: boolean
197
+ sentinel?: NacosPluginStatus
198
+ seata?: NacosPluginStatus
199
+ mesh?: NacosPluginStatus
200
+ service?: NacosServiceStatus
201
+ }
202
+
179
203
  export type RestartNacosReq = {
180
204
  workspaceId?: string
181
205
  clusterName?: string
@@ -183,6 +207,12 @@ export type RestartNacosReq = {
183
207
  namespaceName?: string
184
208
  }
185
209
 
210
+ export type LDAP = {
211
+ url?: string
212
+ basedc?: string
213
+ password?: string
214
+ }
215
+
186
216
  export type NacosConfig = {
187
217
  type?: NacosConfigType
188
218
  component?: SkoalaApiGeneralV1alpha1Common.Component
@@ -197,6 +227,7 @@ export type NacosConfig = {
197
227
  insightEnabled?: boolean
198
228
  certificationEnabled?: boolean
199
229
  jvmPercentage?: number
230
+ ldap?: LDAP
200
231
  }
201
232
 
202
233
  export type Volume = {
@@ -17,6 +17,16 @@ type OneOf<T> =
17
17
  : never)
18
18
  : never);
19
19
 
20
+ export enum VirtualhostPolicy {
21
+ VirtualhostPolicyCors = "VirtualhostPolicyCors",
22
+ VirtualhostPolicyLocalRateLimit = "VirtualhostPolicyLocalRateLimit",
23
+ VirtualhostPolicyGlobalRateLimit = "VirtualhostPolicyGlobalRateLimit",
24
+ VirtualhostPolicyIPPolicy = "VirtualhostPolicyIPPolicy",
25
+ VirtualhostPolicyExtProc = "VirtualhostPolicyExtProc",
26
+ VirtualhostPolicyAuth = "VirtualhostPolicyAuth",
27
+ VirtualhostPolicyJWT = "VirtualhostPolicyJWT",
28
+ }
29
+
20
30
  export enum RemoteJWKSDnsLookupFamily {
21
31
  auto = "auto",
22
32
  v4 = "v4",
@@ -132,9 +142,11 @@ export type VirtualhostInfo = {
132
142
  healthCheckUrl?: string
133
143
  enableJWT?: boolean
134
144
  enableAuth?: boolean
145
+ enableExtProc?: boolean
135
146
  namespaceName?: string
136
147
  apiCount?: number
137
148
  updatedAt?: string
149
+ policies?: VirtualhostPolicy[]
138
150
  }
139
151
 
140
152
  export type ListVirtualhostRes = {
@@ -188,6 +188,9 @@ export class Nacos {
188
188
  static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
189
189
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
190
190
  }
191
+ static NacosStatus(req: SkoalaApiHostedV1alpha1Nacos.NacosStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.NacosStatusRes> {
192
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.NacosStatusReq, SkoalaApiHostedV1alpha1Nacos.NacosStatusRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
193
+ }
191
194
  static Restart(req: SkoalaApiHostedV1alpha1Nacos.RestartNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
192
195
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.RestartNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/restart?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
193
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.38.2-2",
3
+ "version": "0.38.2-22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {