@daocloud-proto/skoala 0.7.2-28 → 0.7.2-34
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.
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
9
|
+
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
19
|
+
export enum ResourceType {
|
|
20
|
+
RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
|
|
21
|
+
VIRTUAL_SERVICE = "VIRTUAL_SERVICE",
|
|
22
|
+
DESTINATION_RULE = "DESTINATION_RULE",
|
|
23
|
+
GATEWAY = "GATEWAY",
|
|
24
|
+
SERVICE_ENTRY = "SERVICE_ENTRY",
|
|
25
|
+
ENVOY_FILTER = "ENVOY_FILTER",
|
|
26
|
+
PROXY_CONFIG = "PROXY_CONFIG",
|
|
27
|
+
SIDECAR = "SIDECAR",
|
|
28
|
+
WORKLOAD_GROUP = "WORKLOAD_GROUP",
|
|
29
|
+
WORKLOAD_ENTRY = "WORKLOAD_ENTRY",
|
|
30
|
+
AUTHORIZATION_POLICY = "AUTHORIZATION_POLICY",
|
|
31
|
+
PEER_AUTHENTICATION = "PEER_AUTHENTICATION",
|
|
32
|
+
REQUEST_AUTHENTICATION = "REQUEST_AUTHENTICATION",
|
|
33
|
+
WASM_PLUGIN = "WASM_PLUGIN",
|
|
34
|
+
TELEMETRY = "TELEMETRY",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum OutputFormat {
|
|
38
|
+
OUTPUT_FORMAT_UNSPECIFIED = "OUTPUT_FORMAT_UNSPECIFIED",
|
|
39
|
+
YAML = "YAML",
|
|
40
|
+
SPEC = "SPEC",
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
type BaseIstioResource = {
|
|
45
|
+
type?: ResourceType
|
|
46
|
+
meshId?: string
|
|
47
|
+
namespace?: string
|
|
48
|
+
name?: string
|
|
49
|
+
createTime?: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type IstioResource = BaseIstioResource
|
|
53
|
+
& OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
|
|
54
|
+
|
|
55
|
+
export type ListMeshResourceReq = {
|
|
56
|
+
workspaceId?: string
|
|
57
|
+
clusterName?: string
|
|
58
|
+
namespaceName?: string
|
|
59
|
+
meshId?: string
|
|
60
|
+
type?: ResourceType
|
|
61
|
+
output?: OutputFormat
|
|
62
|
+
page?: number
|
|
63
|
+
pageSize?: number
|
|
64
|
+
pageSearch?: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ListMeshResourceRes = {
|
|
68
|
+
items?: IstioResource[]
|
|
69
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type GetMeshResourceReq = {
|
|
73
|
+
workspaceId?: string
|
|
74
|
+
clusterName?: string
|
|
75
|
+
namespaceName?: string
|
|
76
|
+
meshId?: string
|
|
77
|
+
type?: ResourceType
|
|
78
|
+
output?: OutputFormat
|
|
79
|
+
name?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type GetMeshResourceRes = {
|
|
83
|
+
item?: IstioResource
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
type BaseCreateMeshResourceReq = {
|
|
88
|
+
workspaceId?: string
|
|
89
|
+
clusterName?: string
|
|
90
|
+
namespaceName?: string
|
|
91
|
+
meshId?: string
|
|
92
|
+
type?: ResourceType
|
|
93
|
+
name?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type CreateMeshResourceReq = BaseCreateMeshResourceReq
|
|
97
|
+
& OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
|
|
98
|
+
|
|
99
|
+
export type DeleteMeshResourceReq = {
|
|
100
|
+
workspaceId?: string
|
|
101
|
+
clusterName?: string
|
|
102
|
+
namespaceName?: string
|
|
103
|
+
meshId?: string
|
|
104
|
+
type?: ResourceType
|
|
105
|
+
name?: string
|
|
106
|
+
output?: OutputFormat
|
|
107
|
+
}
|
|
@@ -172,6 +172,7 @@ export type NacosConfig = {
|
|
|
172
172
|
databaseEnabled?: boolean
|
|
173
173
|
databaseParam?: DatabaseParam
|
|
174
174
|
volume?: Volume
|
|
175
|
+
insightEnabled?: boolean
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
export type Volume = {
|
|
@@ -747,16 +748,7 @@ export type DeleteNacosConfigReq = {
|
|
|
747
748
|
nacosNamespace?: string
|
|
748
749
|
dataId?: string
|
|
749
750
|
group?: string
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
export type DeleteNacosConfigBatchReq = {
|
|
753
|
-
workspaceId?: string
|
|
754
|
-
clusterName?: string
|
|
755
|
-
namespaceName?: string
|
|
756
|
-
nacosName?: string
|
|
757
|
-
nacosNamespace?: string
|
|
758
|
-
dataId?: string
|
|
759
|
-
group?: string
|
|
751
|
+
delType?: string
|
|
760
752
|
ids?: string
|
|
761
753
|
}
|
|
762
754
|
|
|
@@ -67,6 +67,7 @@ export type GetMeshPluginReq = {
|
|
|
67
67
|
|
|
68
68
|
export type GetMeshPluginRes = {
|
|
69
69
|
name?: string
|
|
70
|
+
enabled?: boolean
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
export type UpdatePluginReq = {
|
|
@@ -116,4 +117,5 @@ export type GetSentinelRes = {
|
|
|
116
117
|
|
|
117
118
|
export type GetMeshRes = {
|
|
118
119
|
name?: string
|
|
120
|
+
enabled?: boolean
|
|
119
121
|
}
|
|
@@ -15,6 +15,7 @@ import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.p
|
|
|
15
15
|
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
16
16
|
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
17
17
|
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
18
|
+
import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
|
|
18
19
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
19
20
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
20
21
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
@@ -218,10 +219,7 @@ export class Nacos {
|
|
|
218
219
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.RollbackNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/rollback`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
219
220
|
}
|
|
220
221
|
static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
221
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs
|
|
222
|
-
}
|
|
223
|
-
static DeleteConfigBatch(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
224
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE"})
|
|
222
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
|
|
225
223
|
}
|
|
226
224
|
static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
|
|
227
225
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
@@ -319,6 +317,23 @@ export class Sentinel {
|
|
|
319
317
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
320
318
|
}
|
|
321
319
|
}
|
|
320
|
+
export class Mesh {
|
|
321
|
+
static ListMeshResource(req: SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes> {
|
|
322
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "meshId", "type"])}`, {...initReq, method: "GET"})
|
|
323
|
+
}
|
|
324
|
+
static GetMeshResource(req: SkoalaApiHostedV1alpha1Mesh.GetMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetMeshResourceRes> {
|
|
325
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetMeshResourceReq, SkoalaApiHostedV1alpha1Mesh.GetMeshResourceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "meshId", "type", "name"])}`, {...initReq, method: "GET"})
|
|
326
|
+
}
|
|
327
|
+
static CreateMeshResource(req: SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
328
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
329
|
+
}
|
|
330
|
+
static UpdateMeshResource(req: SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
331
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
332
|
+
}
|
|
333
|
+
static DeleteMeshResource(req: SkoalaApiHostedV1alpha1Mesh.DeleteMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
334
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
|
|
335
|
+
}
|
|
336
|
+
}
|
|
322
337
|
export class Plugin {
|
|
323
338
|
static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
|
|
324
339
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Plugins.ListPluginReq, SkoalaApiHostedV1alpha1Plugins.ListPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/nacoses/${req["nacosName"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespace", "nacosName"])}`, {...initReq, method: "GET"})
|