@daocloud-proto/skoala 0.18.0-53 → 0.18.0-59
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.
|
@@ -40,6 +40,20 @@ export enum OutputFormat {
|
|
|
40
40
|
SPEC = "SPEC",
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
export enum ServiceStatus {
|
|
44
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
45
|
+
ERROR = "ERROR",
|
|
46
|
+
RUNNING = "RUNNING",
|
|
47
|
+
WARNING = "WARNING",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum ServiceType {
|
|
51
|
+
GOVERN_TYPE_UNSPECIFIED = "GOVERN_TYPE_UNSPECIFIED",
|
|
52
|
+
NORMAL = "NORMAL",
|
|
53
|
+
SPRING_CLOUD = "SPRING_CLOUD",
|
|
54
|
+
DUBBO = "DUBBO",
|
|
55
|
+
}
|
|
56
|
+
|
|
43
57
|
|
|
44
58
|
type BaseIstioResource = {
|
|
45
59
|
type?: ResourceType
|
|
@@ -109,4 +123,72 @@ export type DeleteMeshResourceReq = {
|
|
|
109
123
|
|
|
110
124
|
export type GetAnyType = {
|
|
111
125
|
type?: ResourceType
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type ListService = {
|
|
129
|
+
name?: string
|
|
130
|
+
status?: ServiceStatus
|
|
131
|
+
type?: ServiceType
|
|
132
|
+
port?: string
|
|
133
|
+
namespace?: string
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type ListExportService = {
|
|
137
|
+
name?: string
|
|
138
|
+
namespace?: string
|
|
139
|
+
status?: ServiceStatus
|
|
140
|
+
des?: string
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type ListServiceReq = {
|
|
144
|
+
workspaceId?: string
|
|
145
|
+
meshId?: string
|
|
146
|
+
namespaceName?: string
|
|
147
|
+
serviceType?: ServiceType
|
|
148
|
+
serviceName?: string
|
|
149
|
+
page?: number
|
|
150
|
+
pageSize?: number
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type ListServiceRes = {
|
|
154
|
+
items?: ListService[]
|
|
155
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type RemoveServiceReq = {
|
|
159
|
+
workspaceId?: string
|
|
160
|
+
meshId?: string
|
|
161
|
+
namespaceName?: string
|
|
162
|
+
serviceName?: string
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type RemoveServiceRes = {
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type ListExportServiceReq = {
|
|
169
|
+
workspaceId?: string
|
|
170
|
+
meshId?: string
|
|
171
|
+
namespaceName?: string
|
|
172
|
+
serviceName?: string
|
|
173
|
+
page?: number
|
|
174
|
+
pageSize?: number
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type ListExportServiceRes = {
|
|
178
|
+
items?: ListExportService[]
|
|
179
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type NsSvc = {
|
|
183
|
+
namespaceName?: string
|
|
184
|
+
serviceName?: string
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type ExportServiceReq = {
|
|
188
|
+
workspaceId?: string
|
|
189
|
+
meshId?: string
|
|
190
|
+
namespaceServices?: NsSvc[]
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type ExportServiceRes = {
|
|
112
194
|
}
|
|
@@ -423,6 +423,18 @@ export class Mesh {
|
|
|
423
423
|
static GetAnyTypeNameByResourceType(req: SkoalaApiHostedV1alpha1Mesh.GetAnyType, initReq?: fm.InitReq): Promise<GoogleProtobufAny.Any> {
|
|
424
424
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetAnyType, GoogleProtobufAny.Any>(`/apis/hive.skoala.io/v1alpha1/istio-resources/${req["type"]}/type-value?${fm.renderURLSearchParams(req, ["type"])}`, {...initReq, method: "GET"})
|
|
425
425
|
}
|
|
426
|
+
static ListService(req: SkoalaApiHostedV1alpha1Mesh.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceRes> {
|
|
427
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceReq, SkoalaApiHostedV1alpha1Mesh.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
|
|
428
|
+
}
|
|
429
|
+
static RemoveService(req: SkoalaApiHostedV1alpha1Mesh.RemoveServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.RemoveServiceRes> {
|
|
430
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.RemoveServiceReq, SkoalaApiHostedV1alpha1Mesh.RemoveServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}`, {...initReq, method: "DELETE"})
|
|
431
|
+
}
|
|
432
|
+
static ListExportService(req: SkoalaApiHostedV1alpha1Mesh.ListExportServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListExportServiceRes> {
|
|
433
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListExportServiceReq, SkoalaApiHostedV1alpha1Mesh.ListExportServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/export-services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
|
|
434
|
+
}
|
|
435
|
+
static ExportService(req: SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ExportServiceRes> {
|
|
436
|
+
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)})
|
|
437
|
+
}
|
|
426
438
|
}
|
|
427
439
|
export class Plugin {
|
|
428
440
|
static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
|