@daocloud-proto/skoala 0.26.2-22 → 0.26.2-38
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.
|
@@ -98,21 +98,6 @@ export type ListMeshServiceReq = {
|
|
|
98
98
|
pageSize?: number
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
export type ListMeshServiceVersion = {
|
|
102
|
-
versionName?: string
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export type ListMeshServiceVersionReq = {
|
|
106
|
-
workspaceId?: string
|
|
107
|
-
meshId?: string
|
|
108
|
-
namespaceName?: string
|
|
109
|
-
serviceName?: string
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export type ListMeshServiceVersionRes = {
|
|
113
|
-
items?: ListMeshServiceVersion[]
|
|
114
|
-
}
|
|
115
|
-
|
|
116
101
|
export type ListRegistryServiceReq = {
|
|
117
102
|
workspaceId?: string
|
|
118
103
|
registryId?: string
|
|
@@ -36,21 +36,21 @@ export type ListLaneRes = {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type ListLane = {
|
|
39
|
-
|
|
39
|
+
laneName?: string
|
|
40
40
|
meshId?: string
|
|
41
41
|
phase?: LaneStatusPhase
|
|
42
42
|
services?: LaneService[]
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export type LaneService = {
|
|
46
|
-
|
|
46
|
+
serviceName?: string
|
|
47
47
|
subset?: string
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export type CreateLaneReq = {
|
|
51
51
|
workspaceId?: string
|
|
52
52
|
meshId?: string
|
|
53
|
-
|
|
53
|
+
laneName?: string
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export type CreateLaneRes = {
|
|
@@ -85,13 +85,20 @@ export type GetLaneRes = {
|
|
|
85
85
|
lane?: ListLane
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
export type FailedMessage = {
|
|
89
|
+
serviceInfo?: string[]
|
|
90
|
+
instancesInfo?: string[]
|
|
91
|
+
workloadsInfo?: string[]
|
|
92
|
+
}
|
|
93
|
+
|
|
88
94
|
export type ListLaneService = {
|
|
89
95
|
namespace?: string
|
|
90
|
-
|
|
96
|
+
serviceName?: string
|
|
91
97
|
subset?: string
|
|
92
98
|
status?: SkoalaApiHostedV1alpha1Mesh.ServiceStatus
|
|
93
99
|
replicas?: number
|
|
94
100
|
availableReplicas?: number
|
|
101
|
+
failedMessage?: FailedMessage
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
export type ListLaneServiceReq = {
|
|
@@ -104,9 +111,9 @@ export type ListLaneServiceRes = {
|
|
|
104
111
|
items?: ListLaneService[]
|
|
105
112
|
}
|
|
106
113
|
|
|
107
|
-
export type
|
|
108
|
-
|
|
109
|
-
|
|
114
|
+
export type LaneServiceDetail = {
|
|
115
|
+
namespaceName?: string
|
|
116
|
+
serviceName?: string
|
|
110
117
|
subset?: string
|
|
111
118
|
}
|
|
112
119
|
|
|
@@ -114,12 +121,34 @@ export type AddLaneServiceReq = {
|
|
|
114
121
|
workspaceId?: string
|
|
115
122
|
meshId?: string
|
|
116
123
|
laneName?: string
|
|
117
|
-
service?:
|
|
124
|
+
service?: LaneServiceDetail
|
|
118
125
|
}
|
|
119
126
|
|
|
120
127
|
export type DeleteLaneServiceReq = {
|
|
121
128
|
workspaceId?: string
|
|
122
129
|
meshId?: string
|
|
123
130
|
laneName?: string
|
|
124
|
-
services?:
|
|
131
|
+
services?: LaneServiceDetail[]
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type ListMeshServiceReq = {
|
|
135
|
+
workspaceId?: string
|
|
136
|
+
meshId?: string
|
|
137
|
+
namespaceName?: string
|
|
138
|
+
laneName?: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type ListMeshServiceRes = {
|
|
142
|
+
services?: string[]
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type ListMeshServiceVersionReq = {
|
|
146
|
+
workspaceId?: string
|
|
147
|
+
meshId?: string
|
|
148
|
+
namespaceName?: string
|
|
149
|
+
serviceName?: string
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type ListMeshServiceVersionRes = {
|
|
153
|
+
subsets?: string[]
|
|
125
154
|
}
|
|
@@ -742,6 +742,7 @@ export type CreateNacosConfigReq = {
|
|
|
742
742
|
import?: boolean
|
|
743
743
|
policy?: CreateNacosConfigReqPolicy
|
|
744
744
|
file?: Uint8Array
|
|
745
|
+
betaIps?: string
|
|
745
746
|
}
|
|
746
747
|
|
|
747
748
|
export type UpdateNacosConfigReq = {
|
|
@@ -902,4 +903,36 @@ export type GetResourceInfoRes = {
|
|
|
902
903
|
namespaceName?: string
|
|
903
904
|
nacos?: GetResourceInfoResResourceInfo
|
|
904
905
|
sentinel?: GetResourceInfoResResourceInfo
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export type GetBetaConfigReq = {
|
|
909
|
+
workspaceId?: string
|
|
910
|
+
clusterName?: string
|
|
911
|
+
namespaceName?: string
|
|
912
|
+
nacosName?: string
|
|
913
|
+
nacosNamespace?: string
|
|
914
|
+
dataId?: string
|
|
915
|
+
group?: string
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export type GetBetaConfigRes = {
|
|
919
|
+
appName?: string
|
|
920
|
+
content?: string
|
|
921
|
+
dataId?: string
|
|
922
|
+
group?: string
|
|
923
|
+
id?: string
|
|
924
|
+
md5?: string
|
|
925
|
+
tenant?: string
|
|
926
|
+
type?: NacosConfigFileType
|
|
927
|
+
betaIps?: string
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
export type DeleteBetaConfigReq = {
|
|
931
|
+
workspaceId?: string
|
|
932
|
+
clusterName?: string
|
|
933
|
+
namespaceName?: string
|
|
934
|
+
nacosName?: string
|
|
935
|
+
nacosNamespace?: string
|
|
936
|
+
dataId?: string
|
|
937
|
+
group?: string
|
|
905
938
|
}
|
|
@@ -79,6 +79,7 @@ export type GetSentinelPluginRes = {
|
|
|
79
79
|
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
80
80
|
visitAddress?: string
|
|
81
81
|
workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
|
|
82
|
+
pwd?: string
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
export type GetMeshPluginReq = {
|
|
@@ -111,6 +112,7 @@ export type UpdateSentinelPluginReq = {
|
|
|
111
112
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
112
113
|
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
113
114
|
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
115
|
+
pwd?: string
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
export type UpdateMeshPluginReq = {
|
|
@@ -74,9 +74,6 @@ export class Skoala {
|
|
|
74
74
|
static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes> {
|
|
75
75
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
|
|
76
76
|
}
|
|
77
|
-
static ListMeshServiceVersion(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionRes> {
|
|
78
|
-
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/versions?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
79
|
-
}
|
|
80
77
|
static ListRegistryServices(req: SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceRes> {
|
|
81
78
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryId"]}/services/gateway?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
|
|
82
79
|
}
|
|
@@ -308,6 +305,12 @@ export class Nacos {
|
|
|
308
305
|
static GetResourceInfo(req: SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes> {
|
|
309
306
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/info?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
310
307
|
}
|
|
308
|
+
static GetBetaConfig(req: SkoalaApiHostedV1alpha1Nacos.GetBetaConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetBetaConfigRes> {
|
|
309
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetBetaConfigReq, SkoalaApiHostedV1alpha1Nacos.GetBetaConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/beta?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "dataId"])}`, {...initReq, method: "GET"})
|
|
310
|
+
}
|
|
311
|
+
static DeleteBetaConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteBetaConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
312
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteBetaConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/beta`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
313
|
+
}
|
|
311
314
|
}
|
|
312
315
|
export class Sentinel {
|
|
313
316
|
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
|
|
@@ -896,4 +899,10 @@ export class Lane {
|
|
|
896
899
|
static DeleteLaneService(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
897
900
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
898
901
|
}
|
|
902
|
+
static ListMeshService(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes> {
|
|
903
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName"])}`, {...initReq, method: "GET"})
|
|
904
|
+
}
|
|
905
|
+
static ListMeshServiceVersion(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionRes> {
|
|
906
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionReq, SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/versions?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
907
|
+
}
|
|
899
908
|
}
|