@daocloud-proto/skoala 0.19.2 → 0.19.4-14
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.
|
@@ -49,7 +49,6 @@ export enum ServiceStatus {
|
|
|
49
49
|
|
|
50
50
|
export enum ServiceType {
|
|
51
51
|
GOVERN_TYPE_UNSPECIFIED = "GOVERN_TYPE_UNSPECIFIED",
|
|
52
|
-
NORMAL = "NORMAL",
|
|
53
52
|
SPRING_CLOUD = "SPRING_CLOUD",
|
|
54
53
|
DUBBO = "DUBBO",
|
|
55
54
|
}
|
|
@@ -131,13 +130,20 @@ export type ListService = {
|
|
|
131
130
|
type?: ServiceType
|
|
132
131
|
port?: string
|
|
133
132
|
namespace?: string
|
|
133
|
+
versions?: string[]
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export type ListExportService = {
|
|
137
137
|
name?: string
|
|
138
138
|
namespace?: string
|
|
139
139
|
status?: ServiceStatus
|
|
140
|
-
des?:
|
|
140
|
+
des?: FailedReason
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type FailedReason = {
|
|
144
|
+
serviceInfo?: string[]
|
|
145
|
+
instancesInfo?: string[]
|
|
146
|
+
workloadsInfo?: string[]
|
|
141
147
|
}
|
|
142
148
|
|
|
143
149
|
export type ListServiceReq = {
|
|
@@ -191,4 +197,34 @@ export type ExportServiceReq = {
|
|
|
191
197
|
}
|
|
192
198
|
|
|
193
199
|
export type ExportServiceRes = {
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type ListServiceGovernReq = {
|
|
203
|
+
workspaceId?: string
|
|
204
|
+
meshId?: string
|
|
205
|
+
namespaceName?: string
|
|
206
|
+
serviceName?: string
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export type ListServiceGovernRes = {
|
|
210
|
+
items?: ListServiceGovern[]
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type ListServiceGovern = {
|
|
214
|
+
port?: string
|
|
215
|
+
lb?: string
|
|
216
|
+
updateTime?: number
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type UpdateServiceGovernReq = {
|
|
220
|
+
workspaceId?: string
|
|
221
|
+
meshId?: string
|
|
222
|
+
namespaceName?: string
|
|
223
|
+
serviceName?: string
|
|
224
|
+
lb?: string
|
|
225
|
+
liqun?: string
|
|
226
|
+
rongduan?: string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type UpdateServiceGovernRes = {
|
|
194
230
|
}
|
|
@@ -49,6 +49,12 @@ export type CreateSkoalaPluginReq = BaseCreateSkoalaPluginReq
|
|
|
49
49
|
export type UpdateUsage = {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export type UpdateSkoalaPluginStatusReq = {
|
|
53
|
+
workspaceId?: string
|
|
54
|
+
status?: boolean
|
|
55
|
+
pluginName?: string
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
|
|
53
59
|
type BaseUpdateSkoalaPluginReq = {
|
|
54
60
|
workspaceId?: string
|
|
@@ -80,7 +86,8 @@ type BaseGetSkoalaPluginRes = {
|
|
|
80
86
|
describe?: string
|
|
81
87
|
usage?: PluginUsage[]
|
|
82
88
|
inCluster?: boolean
|
|
83
|
-
address?: string
|
|
89
|
+
address?: string[]
|
|
90
|
+
version?: number
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
export type GetSkoalaPluginRes = BaseGetSkoalaPluginRes
|
|
@@ -122,8 +129,10 @@ export type SkoalaPluginInfo = {
|
|
|
122
129
|
createdAt?: string
|
|
123
130
|
updatedAt?: string
|
|
124
131
|
inCluster?: boolean
|
|
125
|
-
address?: string
|
|
132
|
+
address?: string[]
|
|
126
133
|
version?: number
|
|
134
|
+
disabled?: boolean
|
|
135
|
+
usage?: PluginUsage[]
|
|
127
136
|
}
|
|
128
137
|
|
|
129
138
|
export type WasmPluginConfig = {
|
|
@@ -436,6 +436,12 @@ export class Mesh {
|
|
|
436
436
|
static ExportService(req: SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ExportServiceRes> {
|
|
437
437
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, SkoalaApiHostedV1alpha1Mesh.ExportServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
438
438
|
}
|
|
439
|
+
static ListServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes> {
|
|
440
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
441
|
+
}
|
|
442
|
+
static UpdateServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes> {
|
|
443
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
444
|
+
}
|
|
439
445
|
}
|
|
440
446
|
export class Plugin {
|
|
441
447
|
static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
|
|
@@ -657,6 +663,9 @@ export class SkoalaPlugin {
|
|
|
657
663
|
static UpdatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
658
664
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
659
665
|
}
|
|
666
|
+
static UpdatePluginStatus(req: SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginStatusReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
667
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginStatusReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}/status/${req["status"]}`, {...initReq, method: "PUT"})
|
|
668
|
+
}
|
|
660
669
|
static ListPlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginRes> {
|
|
661
670
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginReq, SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
662
671
|
}
|