@daocloud-proto/kairship 0.1.6-2 → 0.1.6-20
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,6 +34,11 @@ export enum ContainerStatusPhase {
|
|
|
34
34
|
export enum ListPodsForMemberClusterRequestKind {
|
|
35
35
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
36
36
|
Deployment = "Deployment",
|
|
37
|
+
StatefulSet = "StatefulSet",
|
|
38
|
+
DaemonSet = "DaemonSet",
|
|
39
|
+
Service = "Service",
|
|
40
|
+
Job = "Job",
|
|
41
|
+
CronJob = "CronJob",
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
export type PodTemplateSpec = {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as KairshipIoApiClusterV1alpha1Cluster from "../../cluster/v1alpha1/cluster.pb"
|
|
7
8
|
import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
9
|
import * as KairshipIoApiTypesPage from "../../types/page.pb"
|
|
9
10
|
|
|
@@ -22,6 +23,11 @@ export enum ListServicesRequestKind {
|
|
|
22
23
|
DaemonSet = "DaemonSet",
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
export enum CreateWorkloadServiceRequestKind {
|
|
27
|
+
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
28
|
+
Deployment = "Deployment",
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
export enum ListServicesForMemberClusterRequestKind {
|
|
26
32
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
27
33
|
Deployment = "Deployment",
|
|
@@ -32,6 +38,7 @@ export enum ListServicesForMemberClusterRequestKind {
|
|
|
32
38
|
export type Service = {
|
|
33
39
|
metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
|
|
34
40
|
spec?: ServiceSpec
|
|
41
|
+
status?: ServiceStatus
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
export type ServiceSpec = {
|
|
@@ -46,6 +53,10 @@ export type ServiceSpec = {
|
|
|
46
53
|
iPFamilies?: string[]
|
|
47
54
|
}
|
|
48
55
|
|
|
56
|
+
export type ServiceStatus = {
|
|
57
|
+
clusters?: KairshipIoApiClusterV1alpha1Cluster.ClusterProviderSummary[]
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
export type ServicePort = {
|
|
50
61
|
name?: string
|
|
51
62
|
protocol?: string
|
|
@@ -61,6 +72,23 @@ export type SessionAffinityConfig = {
|
|
|
61
72
|
export type LoadBalancerStatus = {
|
|
62
73
|
}
|
|
63
74
|
|
|
75
|
+
export type ListInstanceServicesRequest = {
|
|
76
|
+
instance?: string
|
|
77
|
+
name?: string
|
|
78
|
+
page?: number
|
|
79
|
+
pageSize?: number
|
|
80
|
+
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
81
|
+
orderBy?: KairshipIoApiTypesPage.SortDir
|
|
82
|
+
type?: ServiceType[]
|
|
83
|
+
labelSelector?: string
|
|
84
|
+
fieldSelector?: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type ListInstanceServicesResponse = {
|
|
88
|
+
items?: Service[]
|
|
89
|
+
pagination?: KairshipIoApiTypesPage.Pagination
|
|
90
|
+
}
|
|
91
|
+
|
|
64
92
|
export type ListServicesRequest = {
|
|
65
93
|
instance?: string
|
|
66
94
|
namespace?: string
|
|
@@ -97,6 +125,14 @@ export type GetServiceJSONResponse = {
|
|
|
97
125
|
data?: string
|
|
98
126
|
}
|
|
99
127
|
|
|
128
|
+
export type CreateWorkloadServiceRequest = {
|
|
129
|
+
instance?: string
|
|
130
|
+
namespace?: string
|
|
131
|
+
kind?: CreateWorkloadServiceRequestKind
|
|
132
|
+
kindName?: string
|
|
133
|
+
data?: string
|
|
134
|
+
}
|
|
135
|
+
|
|
100
136
|
export type CreateServiceRequest = {
|
|
101
137
|
instance?: string
|
|
102
138
|
namespace?: string
|
|
@@ -104,6 +104,9 @@ export class Core {
|
|
|
104
104
|
static PatchNamespace(req: KairshipIoApiCoreV1alpha1Namespace.PatchNamespaceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Namespace.PatchNamespaceResponse> {
|
|
105
105
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Namespace.PatchNamespaceRequest, KairshipIoApiCoreV1alpha1Namespace.PatchNamespaceResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
|
|
106
106
|
}
|
|
107
|
+
static ListInstanceServices(req: KairshipIoApiCoreV1alpha1Service.ListInstanceServicesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.ListInstanceServicesResponse> {
|
|
108
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.ListInstanceServicesRequest, KairshipIoApiCoreV1alpha1Service.ListInstanceServicesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/services?${fm.renderURLSearchParams(req, ["instance"])}`, {...initReq, method: "GET"})
|
|
109
|
+
}
|
|
107
110
|
static ListServices(req: KairshipIoApiCoreV1alpha1Service.ListServicesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.ListServicesResponse> {
|
|
108
111
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.ListServicesRequest, KairshipIoApiCoreV1alpha1Service.ListServicesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/services?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
|
|
109
112
|
}
|
|
@@ -113,6 +116,9 @@ export class Core {
|
|
|
113
116
|
static GetServiceJSON(req: KairshipIoApiCoreV1alpha1Service.GetServiceJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.GetServiceJSONResponse> {
|
|
114
117
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.GetServiceJSONRequest, KairshipIoApiCoreV1alpha1Service.GetServiceJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/services/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
115
118
|
}
|
|
119
|
+
static CreateWorkloadService(req: KairshipIoApiCoreV1alpha1Service.CreateWorkloadServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
120
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.CreateWorkloadServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/workloadservices`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
121
|
+
}
|
|
116
122
|
static CreateService(req: KairshipIoApiCoreV1alpha1Service.CreateServiceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.CreateServiceResponse> {
|
|
117
123
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.CreateServiceRequest, KairshipIoApiCoreV1alpha1Service.CreateServiceResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
118
124
|
}
|