@daocloud-proto/skoala 0.6.1-48 → 0.6.1-56
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.
- package/api/hosted/v1alpha1/apilog.pb.ts +1 -1
- package/api/hosted/v1alpha1/gatewaysecret.pb.ts +74 -0
- package/api/hosted/v1alpha1/gatewayservice.pb.ts +1 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +12 -0
- package/api/hosted/v1alpha1/virtualhost.pb.ts +15 -3
- package/api/skoala/v1alpha1/skoala.pb.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
|
|
9
|
+
export enum SignatureAlgorithm {
|
|
10
|
+
MD2WithRSA = "MD2WithRSA",
|
|
11
|
+
MD5WithRSA = "MD5WithRSA",
|
|
12
|
+
SHA1WithRSA = "SHA1WithRSA",
|
|
13
|
+
SHA256WithRSA = "SHA256WithRSA",
|
|
14
|
+
SHA384WithRSA = "SHA384WithRSA",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type CreateSecretReq = {
|
|
18
|
+
workspaceId?: string
|
|
19
|
+
gatewayName?: string
|
|
20
|
+
clusterName?: string
|
|
21
|
+
namespaceName?: string
|
|
22
|
+
secretConfig?: SecretConfig
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ListSecretReq = {
|
|
26
|
+
workspaceId?: string
|
|
27
|
+
clusterName?: string
|
|
28
|
+
gatewayName?: string
|
|
29
|
+
namespaceName?: string
|
|
30
|
+
secretNamespaceName?: string
|
|
31
|
+
secretName?: string
|
|
32
|
+
page?: number
|
|
33
|
+
pageSize?: number
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type ListSecretRes = {
|
|
37
|
+
items?: SecretInfo[]
|
|
38
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type CertInfo = {
|
|
42
|
+
errInfo?: string
|
|
43
|
+
sha1Fingerprint?: string
|
|
44
|
+
sha256Fingerprint?: string
|
|
45
|
+
signatureAlgorithm?: string
|
|
46
|
+
beginTime?: string
|
|
47
|
+
endTime?: string
|
|
48
|
+
domain?: string
|
|
49
|
+
encryptAlgorithm?: string
|
|
50
|
+
keyLength?: number
|
|
51
|
+
issuer?: string
|
|
52
|
+
subjectAltName?: string[]
|
|
53
|
+
cA?: boolean
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type SecretInfo = {
|
|
57
|
+
secretName?: string
|
|
58
|
+
secretNamespaceName?: string
|
|
59
|
+
tlsCertificate?: CertInfo[]
|
|
60
|
+
caCertificate?: CertInfo[]
|
|
61
|
+
errMsg?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type SecretConfig = {
|
|
65
|
+
name?: string
|
|
66
|
+
namespaceName?: string
|
|
67
|
+
caCrt?: string
|
|
68
|
+
tlsCrt?: string
|
|
69
|
+
tlsKey?: string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type CreateSecretRes = {
|
|
73
|
+
secretName?: string
|
|
74
|
+
}
|
|
@@ -717,6 +717,18 @@ export type UpdateNacosConfigReq = {
|
|
|
717
717
|
schema?: string
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
+
export type RollbackNacosConfigReq = {
|
|
721
|
+
workspaceId?: string
|
|
722
|
+
clusterName?: string
|
|
723
|
+
namespaceName?: string
|
|
724
|
+
nacosName?: string
|
|
725
|
+
nacosNamespace?: string
|
|
726
|
+
dataId?: string
|
|
727
|
+
group?: string
|
|
728
|
+
content?: string
|
|
729
|
+
appName?: string
|
|
730
|
+
}
|
|
731
|
+
|
|
720
732
|
export type DeleteNacosConfigReq = {
|
|
721
733
|
workspaceId?: string
|
|
722
734
|
clusterName?: string
|
|
@@ -28,6 +28,21 @@ export type VirtualhostConfig = {
|
|
|
28
28
|
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
29
29
|
rateLimitPolicy?: RateLimitPolicy
|
|
30
30
|
corsPolicy?: CorsPolicy
|
|
31
|
+
tlsPolicy?: Tls
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type Tls = {
|
|
35
|
+
enableFallbackCertificate?: boolean
|
|
36
|
+
minimumProtocolVersion?: string
|
|
37
|
+
secretName?: string
|
|
38
|
+
secretNamespaceName?: string
|
|
39
|
+
clientValidation?: ClientValidation
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type ClientValidation = {
|
|
43
|
+
caSecretName?: string
|
|
44
|
+
caSecretNamespaceName?: string
|
|
45
|
+
skipClientCertValidation?: boolean
|
|
31
46
|
}
|
|
32
47
|
|
|
33
48
|
export type ListVirtualhostReq = {
|
|
@@ -142,9 +157,6 @@ export type LocalRateLimitPolicy = {
|
|
|
142
157
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
143
158
|
}
|
|
144
159
|
|
|
145
|
-
export type Tls = {
|
|
146
|
-
}
|
|
147
|
-
|
|
148
160
|
export type Authorization = {
|
|
149
161
|
}
|
|
150
162
|
|
|
@@ -13,6 +13,7 @@ import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
|
13
13
|
import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
|
|
14
14
|
import * as SkoalaApiHostedV1alpha1Extension from "../../hosted/v1alpha1/extension.pb"
|
|
15
15
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
16
|
+
import * as SkoalaApiHostedV1alpha1Gatewaysecret from "../../hosted/v1alpha1/gatewaysecret.pb"
|
|
16
17
|
import * as SkoalaApiHostedV1alpha1Gatewayservice from "../../hosted/v1alpha1/gatewayservice.pb"
|
|
17
18
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
18
19
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
@@ -213,6 +214,9 @@ export class Nacos {
|
|
|
213
214
|
static UpdateConfig(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
214
215
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigReq, 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"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
215
216
|
}
|
|
217
|
+
static RollbackConfig(req: SkoalaApiHostedV1alpha1Nacos.RollbackNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
218
|
+
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
|
+
}
|
|
216
220
|
static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
217
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/${req["dataId"]}`, {...initReq, method: "DELETE"})
|
|
218
222
|
}
|
|
@@ -366,6 +370,12 @@ export class Gateway {
|
|
|
366
370
|
static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
367
371
|
return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
|
|
368
372
|
}
|
|
373
|
+
static CreateSecret(req: SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretRes> {
|
|
374
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretReq, SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
375
|
+
}
|
|
376
|
+
static ListSecret(req: SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretRes> {
|
|
377
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretReq, SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
378
|
+
}
|
|
369
379
|
static CreateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
370
380
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
371
381
|
}
|