@daocloud-proto/skoala 0.3.3-60 → 0.3.3-62
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.
|
@@ -186,4 +186,20 @@ export type Resource = {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export type RollingUpdate = {
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type GetImagesRes = {
|
|
192
|
+
contour?: string
|
|
193
|
+
envoy?: string
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type GetGatewayStatusReq = {
|
|
197
|
+
workspaceId?: number
|
|
198
|
+
clusterName?: string
|
|
199
|
+
namespaceName?: string
|
|
200
|
+
gatewayName?: string
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type GetGatewayStatusRes = {
|
|
204
|
+
ready?: boolean
|
|
189
205
|
}
|
|
@@ -130,4 +130,10 @@ export class Gateway {
|
|
|
130
130
|
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
131
131
|
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"})
|
|
132
132
|
}
|
|
133
|
+
static GetImages(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
|
|
134
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
135
|
+
}
|
|
136
|
+
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
137
|
+
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"})
|
|
138
|
+
}
|
|
133
139
|
}
|