@daocloud-proto/skoala 0.6.1-85 → 0.6.1-91
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.
|
@@ -34,7 +34,45 @@ export type CreateExternalServiceReq = {
|
|
|
34
34
|
clusterName?: string
|
|
35
35
|
namespaceName?: string
|
|
36
36
|
externalServiceConf?: ExternalServiceConf
|
|
37
|
+
advancedServiceConfig?: AdvancedServiceConfig
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type ListServiceSecretReq = {
|
|
41
|
+
workspaceId?: string
|
|
42
|
+
gatewayName?: string
|
|
43
|
+
clusterName?: string
|
|
44
|
+
namespaceName?: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ListServiceSecretRes = {
|
|
48
|
+
items?: SecretSubjectAltName[]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type SecretSubjectAltName = {
|
|
52
|
+
secretName?: string
|
|
53
|
+
secretNamespaceName?: string
|
|
54
|
+
subjectAltName?: string[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type AdvancedServiceConfig = {
|
|
37
58
|
circuitBreakerPolicy?: CircuitBreakerPolicy
|
|
59
|
+
tlsPolicy?: TLSPolicy
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type TLSPolicy = {
|
|
63
|
+
port?: number
|
|
64
|
+
secretName?: string
|
|
65
|
+
secretNamespaceName?: string
|
|
66
|
+
subjectAltName?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type UpdateGatewayServicePolicyReq = {
|
|
70
|
+
workspaceId?: string
|
|
71
|
+
gatewayName?: string
|
|
72
|
+
clusterName?: string
|
|
73
|
+
namespaceName?: string
|
|
74
|
+
sesameId?: string
|
|
75
|
+
advancedServiceConfig?: AdvancedServiceConfig
|
|
38
76
|
}
|
|
39
77
|
|
|
40
78
|
export type GetGatewayServiceReq = {
|
|
@@ -63,7 +101,6 @@ export type UpdateGatewayServiceReq = {
|
|
|
63
101
|
namespaceName?: string
|
|
64
102
|
sesameId?: string
|
|
65
103
|
externalServiceConf?: ExternalServiceConf
|
|
66
|
-
circuitBreakerPolicy?: CircuitBreakerPolicy
|
|
67
104
|
}
|
|
68
105
|
|
|
69
106
|
export type DeleteGatewayServiceReq = {
|
|
@@ -76,12 +113,12 @@ export type DeleteGatewayServiceReq = {
|
|
|
76
113
|
|
|
77
114
|
export type GetGatewayServiceRes = {
|
|
78
115
|
externalServiceConf?: ExternalServiceConf
|
|
79
|
-
circuitBreakerPolicy?: CircuitBreakerPolicy
|
|
80
116
|
manageServiceConf?: ServiceInfo
|
|
81
117
|
serviceType?: SesameServiceType
|
|
82
118
|
api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
|
|
83
119
|
sesameId?: string
|
|
84
120
|
createdAt?: string
|
|
121
|
+
advancedServiceConfig?: AdvancedServiceConfig
|
|
85
122
|
}
|
|
86
123
|
|
|
87
124
|
export type ListGatewayServiceReq = {
|
|
@@ -325,6 +325,12 @@ export class Gateway {
|
|
|
325
325
|
static UpdateService(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
326
326
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
327
327
|
}
|
|
328
|
+
static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
329
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServicePolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
330
|
+
}
|
|
331
|
+
static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretRes> {
|
|
332
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretReq, SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/servicesecrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
333
|
+
}
|
|
328
334
|
static DeleteService(req: SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
329
335
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "DELETE"})
|
|
330
336
|
}
|