@daocloud-proto/kairship 0.6.0-269 → 0.6.0-271
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,194 @@
|
|
|
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 KairshipIoApiClusterV1alpha1Cluster from "../../cluster/v1alpha1/cluster.pb"
|
|
8
|
+
import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
9
|
+
import * as KairshipIoApiTypesPage from "../../types/page.pb"
|
|
10
|
+
|
|
11
|
+
export enum Protocol {
|
|
12
|
+
PROTOCOL_UNSPECIFIED = "PROTOCOL_UNSPECIFIED",
|
|
13
|
+
TCP = "TCP",
|
|
14
|
+
UDP = "UDP",
|
|
15
|
+
SCTP = "SCTP",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type Ingress = {
|
|
19
|
+
metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
|
|
20
|
+
spec?: IngressSpec
|
|
21
|
+
status?: IngressStatus
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type IngressSpec = {
|
|
25
|
+
ingressClassName?: string
|
|
26
|
+
tls?: IngressTLS[]
|
|
27
|
+
rules?: IngressRule[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type IngressStatus = {
|
|
31
|
+
loadBalancer?: LoadBalancerStatus
|
|
32
|
+
clusters?: KairshipIoApiClusterV1alpha1Cluster.ClusterProviderSummary[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type LoadBalancerStatus = {
|
|
36
|
+
ingress?: LoadBalancerIngress[]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type LoadBalancerIngress = {
|
|
40
|
+
ip?: string
|
|
41
|
+
hostname?: string
|
|
42
|
+
ports?: PortStatus[]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type PortStatus = {
|
|
46
|
+
port?: number
|
|
47
|
+
error?: string
|
|
48
|
+
protocol?: Protocol
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type IngressBackend = {
|
|
52
|
+
service?: IngressServiceBackend
|
|
53
|
+
resource?: TypedLocalObjectReference
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type IngressTLS = {
|
|
57
|
+
hosts?: string[]
|
|
58
|
+
secretName?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type IngressRule = {
|
|
62
|
+
host?: string
|
|
63
|
+
http?: HTTPIngressRuleValue
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type HTTPIngressRuleValue = {
|
|
67
|
+
paths?: HTTPIngressPath[]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type HTTPIngressPath = {
|
|
71
|
+
path?: string
|
|
72
|
+
pathType?: string
|
|
73
|
+
backend?: IngressBackend
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type IngressServiceBackend = {
|
|
77
|
+
name?: string
|
|
78
|
+
port?: IngressServiceBackendPort
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type IngressServiceBackendPort = {
|
|
82
|
+
name?: string
|
|
83
|
+
number?: number
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type TypedLocalObjectReference = {
|
|
87
|
+
name?: string
|
|
88
|
+
kind?: string
|
|
89
|
+
apiGroup?: string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type ListInstanceIngressesRequest = {
|
|
93
|
+
instance?: string
|
|
94
|
+
page?: number
|
|
95
|
+
pageSize?: number
|
|
96
|
+
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
97
|
+
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
98
|
+
name?: string
|
|
99
|
+
labelSelector?: string
|
|
100
|
+
fieldSelector?: string
|
|
101
|
+
fuzzyName?: string
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type ListInstanceIngressesResponse = {
|
|
105
|
+
items?: Ingress[]
|
|
106
|
+
pagination?: KairshipIoApiTypesPage.Pagination
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type ListIngressesRequest = {
|
|
110
|
+
instance?: string
|
|
111
|
+
namespace?: string
|
|
112
|
+
page?: number
|
|
113
|
+
pageSize?: number
|
|
114
|
+
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
115
|
+
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
116
|
+
name?: string
|
|
117
|
+
labelSelector?: string
|
|
118
|
+
fieldSelector?: string
|
|
119
|
+
fuzzyName?: string
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type ListIngressesResponse = {
|
|
123
|
+
items?: Ingress[]
|
|
124
|
+
pagination?: KairshipIoApiTypesPage.Pagination
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetIngressRequest = {
|
|
128
|
+
instance?: string
|
|
129
|
+
namespace?: string
|
|
130
|
+
name?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type GetIngressJSONRequest = {
|
|
134
|
+
instance?: string
|
|
135
|
+
namespace?: string
|
|
136
|
+
name?: string
|
|
137
|
+
stable?: boolean
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type GetIngressJSONResponse = {
|
|
141
|
+
data?: string
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type CreateIngressRequest = {
|
|
145
|
+
instance?: string
|
|
146
|
+
namespace?: string
|
|
147
|
+
data?: string
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type CreateIngressResponse = {
|
|
151
|
+
data?: string
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type UpdateIngressRequest = {
|
|
155
|
+
instance?: string
|
|
156
|
+
namespace?: string
|
|
157
|
+
name?: string
|
|
158
|
+
data?: string
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type UpdateIngressResponse = {
|
|
162
|
+
data?: string
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type PatchIngressRequest = {
|
|
166
|
+
instance?: string
|
|
167
|
+
namespace?: string
|
|
168
|
+
name?: string
|
|
169
|
+
data?: {[key: string]: string}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type PatchIngressResponse = {
|
|
173
|
+
data?: string
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export type DeleteIngressRequest = {
|
|
177
|
+
instance?: string
|
|
178
|
+
namespace?: string
|
|
179
|
+
name?: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type ListIngressClassSummaryRequest = {
|
|
183
|
+
instance?: string
|
|
184
|
+
cluster?: string
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type ListIngressClassSummaryResponse = {
|
|
188
|
+
items?: IngressClassSummary[]
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type IngressClassSummary = {
|
|
192
|
+
name?: string
|
|
193
|
+
isDefaultClass?: boolean
|
|
194
|
+
}
|
|
@@ -20,6 +20,7 @@ import * as KairshipIoApiCoreV1alpha1Secret from "../core/v1alpha1/secret.pb"
|
|
|
20
20
|
import * as KairshipIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
|
|
21
21
|
import * as KairshipIoApiInsightV1alpha1Prometheus from "../insight/v1alpha1/prometheus.pb"
|
|
22
22
|
import * as KairshipIoApiInstanceV1alpha1Instance from "../instance/v1alpha1/instance.pb"
|
|
23
|
+
import * as KairshipIoApiNetworkingV1alpha1Ingress from "../networking/v1alpha1/ingress.pb"
|
|
23
24
|
import * as KairshipIoApiPolicyV1alpha1Overridepolicy from "../policy/v1alpha1/overridepolicy.pb"
|
|
24
25
|
import * as KairshipIoApiPolicyV1alpha1Popagrationpolicy from "../policy/v1alpha1/popagrationpolicy.pb"
|
|
25
26
|
import * as KairshipIoApiWorkspaceV1alpha1Workspace from "../workspace/v1alpha1/workspace.pb"
|
|
@@ -378,4 +379,33 @@ export class Batch {
|
|
|
378
379
|
static RestartJob(req: KairshipIoApiBatchV1alpha1Job.RestartJobRequest, initReq?: fm.InitReq): Promise<KairshipIoApiBatchV1alpha1Job.RestartJobResponse> {
|
|
379
380
|
return fm.fetchReq<KairshipIoApiBatchV1alpha1Job.RestartJobRequest, KairshipIoApiBatchV1alpha1Job.RestartJobResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}:restart`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
380
381
|
}
|
|
382
|
+
}
|
|
383
|
+
export class Networking {
|
|
384
|
+
static ListInstanceIngresses(req: KairshipIoApiNetworkingV1alpha1Ingress.ListInstanceIngressesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.ListInstanceIngressesResponse> {
|
|
385
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.ListInstanceIngressesRequest, KairshipIoApiNetworkingV1alpha1Ingress.ListInstanceIngressesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/ingresses?${fm.renderURLSearchParams(req, ["instance"])}`, {...initReq, method: "GET"})
|
|
386
|
+
}
|
|
387
|
+
static ListIngresses(req: KairshipIoApiNetworkingV1alpha1Ingress.ListIngressesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.ListIngressesResponse> {
|
|
388
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.ListIngressesRequest, KairshipIoApiNetworkingV1alpha1Ingress.ListIngressesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
|
|
389
|
+
}
|
|
390
|
+
static GetIngress(req: KairshipIoApiNetworkingV1alpha1Ingress.GetIngressRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.Ingress> {
|
|
391
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.GetIngressRequest, KairshipIoApiNetworkingV1alpha1Ingress.Ingress>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
392
|
+
}
|
|
393
|
+
static GetIngressJSON(req: KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONResponse> {
|
|
394
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONRequest, KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
395
|
+
}
|
|
396
|
+
static CreateIngress(req: KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressResponse> {
|
|
397
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressRequest, KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
398
|
+
}
|
|
399
|
+
static UpdateIngress(req: KairshipIoApiNetworkingV1alpha1Ingress.UpdateIngressRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.UpdateIngressResponse> {
|
|
400
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.UpdateIngressRequest, KairshipIoApiNetworkingV1alpha1Ingress.UpdateIngressResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
401
|
+
}
|
|
402
|
+
static PatchIngress(req: KairshipIoApiNetworkingV1alpha1Ingress.PatchIngressRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.PatchIngressResponse> {
|
|
403
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.PatchIngressRequest, KairshipIoApiNetworkingV1alpha1Ingress.PatchIngressResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
|
|
404
|
+
}
|
|
405
|
+
static DeleteIngress(req: KairshipIoApiNetworkingV1alpha1Ingress.DeleteIngressRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
406
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.DeleteIngressRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
407
|
+
}
|
|
408
|
+
static ListIngressClassForMemberCluster(req: KairshipIoApiNetworkingV1alpha1Ingress.ListIngressClassSummaryRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.ListIngressClassSummaryResponse> {
|
|
409
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.ListIngressClassSummaryRequest, KairshipIoApiNetworkingV1alpha1Ingress.ListIngressClassSummaryResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["cluster"]}/ingressclasssummary?${fm.renderURLSearchParams(req, ["instance", "cluster"])}`, {...initReq, method: "GET"})
|
|
410
|
+
}
|
|
381
411
|
}
|