@daocloud-proto/skoala 0.10.1-4 → 0.10.1-40

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.
@@ -111,7 +111,7 @@ export type Image = {
111
111
  pullPolicy?: string
112
112
  }
113
113
 
114
- export type Chart = {
115
- version?: string
114
+ export type Component = {
115
+ name?: string
116
116
  images?: {[key: string]: Image}
117
117
  }
@@ -19,6 +19,7 @@ export enum ListServiceReqServiceType {
19
19
  }
20
20
 
21
21
  export type ListWorkspaceReq = {
22
+ name?: string
22
23
  page?: number
23
24
  pageSize?: number
24
25
  }
@@ -17,5 +17,5 @@ export type GetVersionRes = {
17
17
  }
18
18
 
19
19
  export type GetHiveChartsRes = {
20
- nacos?: SkoalaApiGeneralV1alpha1Common.Chart
20
+ nacos?: SkoalaApiGeneralV1alpha1Common.Component
21
21
  }
@@ -141,10 +141,17 @@ export type GetGatewayReq = {
141
141
  gatewayName?: string
142
142
  }
143
143
 
144
- export type GetGatewayChartsRes = {
145
- sesame?: SkoalaApiGeneralV1alpha1Common.Chart
146
- rls?: SkoalaApiGeneralV1alpha1Common.Chart
147
- authz?: SkoalaApiGeneralV1alpha1Common.Chart
144
+ export type GetGatewayComponentsReq = {
145
+ workspaceId?: string
146
+ clusterName?: string
147
+ namespaceName?: string
148
+ gatewayName?: string
149
+ }
150
+
151
+ export type GetGatewayComponentsRes = {
152
+ gatway?: SkoalaApiGeneralV1alpha1Common.Component
153
+ rls?: SkoalaApiGeneralV1alpha1Common.Component
154
+ authz?: SkoalaApiGeneralV1alpha1Common.Component
148
155
  }
149
156
 
150
157
  export type GetGatewayRes = {
@@ -235,7 +242,7 @@ export type NormalConfig = {
235
242
  }
236
243
 
237
244
  export type GatewayConfig = {
238
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
245
+ component?: SkoalaApiGeneralV1alpha1Common.Component
239
246
  normal?: NormalConfig
240
247
  advanced?: AdvancedConfig
241
248
  }
@@ -275,18 +282,6 @@ export type RollingUpdate = {
275
282
  maxUnavailable?: string
276
283
  }
277
284
 
278
- export type GetImagesRes = {
279
- contour?: string
280
- envoy?: string
281
- }
282
-
283
- export type GetImagesReq = {
284
- workspaceId?: string
285
- clusterName?: string
286
- namespaceName?: string
287
- gatewayName?: string
288
- }
289
-
290
285
  export type GetGatewayStatusReq = {
291
286
  workspaceId?: string
292
287
  clusterName?: string
@@ -6,11 +6,18 @@
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
- export type GatewayRLSRule = {
9
+ export type GatewayRLSRuleRateLimit = {
10
10
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
11
11
  requestsPerUnit?: number
12
12
  }
13
13
 
14
+ export type GatewayRLSRule = {
15
+ name?: string
16
+ key?: string
17
+ value?: string
18
+ rateLimit?: GatewayRLSRuleRateLimit
19
+ }
20
+
14
21
  export type SwitchGatewayRLSReq = {
15
22
  workspaceId?: string
16
23
  clusterName?: string
@@ -49,7 +56,7 @@ export type GetGatewayRLSConfigRes = {
49
56
  config?: GatewayPluginConfig
50
57
  }
51
58
 
52
- export type SetGatewayRLSRuleReq = {
59
+ export type CreateGatewayRLSRuleReq = {
53
60
  workspaceId?: string
54
61
  clusterName?: string
55
62
  namespaceName?: string
@@ -57,6 +64,38 @@ export type SetGatewayRLSRuleReq = {
57
64
  rule?: GatewayRLSRule
58
65
  }
59
66
 
67
+ export type UpdateGatewayRLSRuleReq = {
68
+ workspaceId?: string
69
+ clusterName?: string
70
+ namespaceName?: string
71
+ gatewayName?: string
72
+ ruleName?: string
73
+ rule?: GatewayRLSRule
74
+ }
75
+
76
+ export type ListGatewayRLSRuleReq = {
77
+ workspaceId?: string
78
+ clusterName?: string
79
+ namespaceName?: string
80
+ gatewayName?: string
81
+ ruleName?: string
82
+ page?: number
83
+ pageSize?: number
84
+ }
85
+
86
+ export type DeleteGatewayRLSRuleReq = {
87
+ workspaceId?: string
88
+ clusterName?: string
89
+ namespaceName?: string
90
+ gatewayName?: string
91
+ ruleName?: string
92
+ }
93
+
94
+ export type ListGatewayRLSRuleRes = {
95
+ items?: GatewayRLSRule[]
96
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
97
+ }
98
+
60
99
  export type GetGatewayRLSRuleReq = {
61
100
  workspaceId?: string
62
101
  clusterName?: string
@@ -69,7 +108,7 @@ export type GetGatewayRLSRuleRes = {
69
108
  }
70
109
 
71
110
  export type GatewayPluginConfig = {
72
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
111
+ component?: SkoalaApiGeneralV1alpha1Common.Component
73
112
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
74
113
  replicas?: number
75
114
  }
@@ -37,6 +37,66 @@ export enum RouteType {
37
37
  UNKNOW = "UNKNOW",
38
38
  }
39
39
 
40
+ export enum StatusCode {
41
+ Empty = "Empty",
42
+ Continue = "Continue",
43
+ OK = "OK",
44
+ Created = "Created",
45
+ Accepted = "Accepted",
46
+ NonAuthoritativeInformation = "NonAuthoritativeInformation",
47
+ NoContent = "NoContent",
48
+ ResetContent = "ResetContent",
49
+ PartialContent = "PartialContent",
50
+ MultiStatus = "MultiStatus",
51
+ AlreadyReported = "AlreadyReported",
52
+ IMUsed = "IMUsed",
53
+ MultipleChoices = "MultipleChoices",
54
+ MovedPermanently = "MovedPermanently",
55
+ Found = "Found",
56
+ SeeOther = "SeeOther",
57
+ NotModified = "NotModified",
58
+ UseProxy = "UseProxy",
59
+ TemporaryRedirect = "TemporaryRedirect",
60
+ PermanentRedirect = "PermanentRedirect",
61
+ BadRequest = "BadRequest",
62
+ Unauthorized = "Unauthorized",
63
+ PaymentRequired = "PaymentRequired",
64
+ Forbidden = "Forbidden",
65
+ NotFound = "NotFound",
66
+ MethodNotAllowed = "MethodNotAllowed",
67
+ NotAcceptable = "NotAcceptable",
68
+ ProxyAuthenticationRequired = "ProxyAuthenticationRequired",
69
+ RequestTimeout = "RequestTimeout",
70
+ Conflict = "Conflict",
71
+ Gone = "Gone",
72
+ LengthRequired = "LengthRequired",
73
+ PreconditionFailed = "PreconditionFailed",
74
+ PayloadTooLarge = "PayloadTooLarge",
75
+ URITooLong = "URITooLong",
76
+ UnsupportedMediaType = "UnsupportedMediaType",
77
+ RangeNotSatisfiable = "RangeNotSatisfiable",
78
+ ExpectationFailed = "ExpectationFailed",
79
+ MisdirectedRequest = "MisdirectedRequest",
80
+ UnprocessableEntity = "UnprocessableEntity",
81
+ Locked = "Locked",
82
+ FailedDependency = "FailedDependency",
83
+ UpgradeRequired = "UpgradeRequired",
84
+ PreconditionRequired = "PreconditionRequired",
85
+ TooManyRequests = "TooManyRequests",
86
+ RequestHeaderFieldsTooLarge = "RequestHeaderFieldsTooLarge",
87
+ InternalServerError = "InternalServerError",
88
+ NotImplemented = "NotImplemented",
89
+ BadGateway = "BadGateway",
90
+ ServiceUnavailable = "ServiceUnavailable",
91
+ GatewayTimeout = "GatewayTimeout",
92
+ HTTPVersionNotSupported = "HTTPVersionNotSupported",
93
+ VariantAlsoNegotiates = "VariantAlsoNegotiates",
94
+ InsufficientStorage = "InsufficientStorage",
95
+ LoopDetected = "LoopDetected",
96
+ NotExtended = "NotExtended",
97
+ NetworkAuthenticationRequired = "NetworkAuthenticationRequired",
98
+ }
99
+
40
100
  export type Header = {
41
101
  name?: string
42
102
  value?: string
@@ -85,4 +145,8 @@ export type APIInfo = {
85
145
  status?: string
86
146
  statusDescription?: string
87
147
  updatedAt?: string
148
+ }
149
+
150
+ export type HttpStatus = {
151
+ code?: StatusCode
88
152
  }
@@ -100,6 +100,9 @@ export type Nacos = {
100
100
  version?: string
101
101
  nodeCount?: number
102
102
  healthNodeCount?: number
103
+ serviceCount?: number
104
+ configCount?: number
105
+ insightEnabled?: boolean
103
106
  database?: NacosDatabase
104
107
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
105
108
  condition?: NacosCondition[]
@@ -143,6 +146,7 @@ export type UpdateNacosReq = {
143
146
  clusterName?: string
144
147
  nacosName?: string
145
148
  namespaceName?: string
149
+ insightEnabled?: boolean
146
150
  config?: NacosConfig
147
151
  }
148
152
 
@@ -152,6 +156,7 @@ export type CreateNacosReq = {
152
156
  nacosName?: string
153
157
  namespaceName?: string
154
158
  createNamespace?: boolean
159
+ insightEnabled?: boolean
155
160
  config?: NacosConfig
156
161
  }
157
162
 
@@ -171,7 +176,7 @@ export type RestartNacosReq = {
171
176
 
172
177
  export type NacosConfig = {
173
178
  type?: NacosConfigType
174
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
179
+ component?: SkoalaApiGeneralV1alpha1Common.Component
175
180
  replicas?: number
176
181
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
177
182
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -92,7 +92,7 @@ export type UpdatePluginReq = {
92
92
 
93
93
  export type UpdateSentinelPluginReq = {
94
94
  enabled?: boolean
95
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
95
+ chart?: SkoalaApiGeneralV1alpha1Common.Component
96
96
  replicas?: number
97
97
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
98
98
  type?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -179,7 +179,7 @@ export type LocalRateLimitPolicy = {
179
179
  burst?: number
180
180
  request?: number
181
181
  responseHeadersToAdd?: SkoalaApiHostedV1alpha1Http.Header[]
182
- responseStatusCode?: number
182
+ responseStatusCode?: SkoalaApiHostedV1alpha1Http.HttpStatus
183
183
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
184
184
  }
185
185
 
@@ -50,7 +50,7 @@ export type GetServiceInsightReq = {
50
50
  namespaceId?: string
51
51
  groupName?: string
52
52
  serviceName?: string
53
- regType?: string
53
+ registryType?: SkoalaApiIntegratedV1alpha1Registry.RegistryType
54
54
  detail?: {[key: string]: string}
55
55
  start?: string
56
56
  end?: string
@@ -386,8 +386,8 @@ export class Gateway {
386
386
  static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
387
387
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
388
388
  }
389
- static GetImages(req: SkoalaApiHostedV1alpha1Gateway.GetImagesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
390
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetImagesReq, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/images?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
389
+ static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
390
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
391
391
  }
392
392
  static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
393
393
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
@@ -395,8 +395,8 @@ export class Gateway {
395
395
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
396
396
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
397
397
  }
398
- static GetCharts(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes> {
399
- return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes>(`/apis/sesame.skoala.io/v1alpha1/charts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
398
+ static GetProvisionedComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
399
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/components?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
400
400
  }
401
401
  static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
402
402
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
@@ -512,8 +512,17 @@ export class Gateway {
512
512
  static GetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes> {
513
513
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
514
514
  }
515
- static SetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
516
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
515
+ static CreateGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
516
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
517
+ }
518
+ static ListGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleRes> {
519
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
520
+ }
521
+ static UpdateGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
522
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules/${req["ruleName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
523
+ }
524
+ static DeleteGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
525
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules/${req["ruleName"]}`, {...initReq, method: "DELETE"})
517
526
  }
518
527
  static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
519
528
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.10.1-4",
3
+ "version": "0.10.1-40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {