@daocloud-proto/kairship 0.1.5-8 → 0.1.5
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/kairship.io/api/apps/v1alpha1/deployment.pb.ts +1 -2
- package/kairship.io/api/cluster/v1alpha1/cluster.pb.ts +0 -5
- package/kairship.io/api/core/v1alpha1/configmap.pb.ts +2 -4
- package/kairship.io/api/core/v1alpha1/secret.pb.ts +1 -21
- package/kairship.io/api/v1alpha1/kairship.pb.ts +0 -47
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@
|
|
|
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"
|
|
8
7
|
import * as KairshipIoApiCoreV1alpha1Pod from "../../core/v1alpha1/pod.pb"
|
|
9
8
|
import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
10
9
|
import * as KairshipIoApiTypesPage from "../../types/page.pb"
|
|
@@ -27,7 +26,7 @@ export type DeploymentStatus = {
|
|
|
27
26
|
replicas?: number
|
|
28
27
|
state?: KairshipIoApiTypesObjectmeta.WorkloadState
|
|
29
28
|
conditions?: KairshipIoApiTypesObjectmeta.Condition[]
|
|
30
|
-
clusters?:
|
|
29
|
+
clusters?: string[]
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
export type CreateDeploymentRequest = {
|
|
@@ -19,10 +19,8 @@ export type ListConfigMapsRequest = {
|
|
|
19
19
|
page?: number
|
|
20
20
|
pageSize?: number
|
|
21
21
|
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
22
|
-
|
|
22
|
+
orderBy?: KairshipIoApiTypesPage.SortDir
|
|
23
23
|
name?: string[]
|
|
24
|
-
labelSelector?: string
|
|
25
|
-
fieldSelector?: string
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
export type ListConfigMapsResponse = {
|
|
@@ -31,7 +29,7 @@ export type ListConfigMapsResponse = {
|
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
export type GetConfigMapRequest = {
|
|
34
|
-
|
|
32
|
+
ins?: string
|
|
35
33
|
namespace?: string
|
|
36
34
|
name?: string
|
|
37
35
|
}
|
|
@@ -21,9 +21,7 @@ export type ListSecretsRequest = {
|
|
|
21
21
|
namespace?: string
|
|
22
22
|
name?: string[]
|
|
23
23
|
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
24
|
-
|
|
25
|
-
labelSelector?: string
|
|
26
|
-
fieldSelector?: string
|
|
24
|
+
orderBy?: KairshipIoApiTypesPage.SortDir
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
export type ListSecretsResponse = {
|
|
@@ -31,24 +29,6 @@ export type ListSecretsResponse = {
|
|
|
31
29
|
pagination?: KairshipIoApiTypesPage.Pagination
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
export type ListSecretsForMemberClusterRequest = {
|
|
35
|
-
instance?: string
|
|
36
|
-
cluster?: string
|
|
37
|
-
page?: number
|
|
38
|
-
pageSize?: number
|
|
39
|
-
namespace?: string
|
|
40
|
-
name?: string[]
|
|
41
|
-
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
42
|
-
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
43
|
-
labelSelector?: string
|
|
44
|
-
fieldSelector?: string
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type ListSecretsForMemberClusterResponse = {
|
|
48
|
-
items?: Secret[]
|
|
49
|
-
pagination?: KairshipIoApiTypesPage.Pagination
|
|
50
|
-
}
|
|
51
|
-
|
|
52
32
|
export type GetSecretRequest = {
|
|
53
33
|
instance?: string
|
|
54
34
|
namespace?: string
|
|
@@ -9,10 +9,8 @@ import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
|
|
|
9
9
|
import * as KairshipIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.pb"
|
|
10
10
|
import * as KairshipIoApiCloudshellV1alpha1Cloudshell from "../cloudshell/v1alpha1/cloudshell.pb"
|
|
11
11
|
import * as KairshipIoApiClusterV1alpha1Cluster from "../cluster/v1alpha1/cluster.pb"
|
|
12
|
-
import * as KairshipIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
|
|
13
12
|
import * as KairshipIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
|
|
14
13
|
import * as KairshipIoApiCoreV1alpha1Pod from "../core/v1alpha1/pod.pb"
|
|
15
|
-
import * as KairshipIoApiCoreV1alpha1Secret from "../core/v1alpha1/secret.pb"
|
|
16
14
|
import * as KairshipIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
|
|
17
15
|
import * as KairshipIoApiInstanceV1alpha1Instance from "../instance/v1alpha1/instance.pb"
|
|
18
16
|
import * as KairshipIoApiPolicyV1alpha1Overridepolicy from "../policy/v1alpha1/overridepolicy.pb"
|
|
@@ -130,51 +128,6 @@ export class Core {
|
|
|
130
128
|
static ListServicesForMemberCluster(req: KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterResponse> {
|
|
131
129
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterRequest, KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services?${fm.renderURLSearchParams(req, ["instance", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
132
130
|
}
|
|
133
|
-
static ListConfigMaps(req: KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsResponse> {
|
|
134
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsRequest, KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
|
|
135
|
-
}
|
|
136
|
-
static GetConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.GetConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.ConfigMap> {
|
|
137
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.GetConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.ConfigMap>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
138
|
-
}
|
|
139
|
-
static GetConfigMapJSON(req: KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONResponse> {
|
|
140
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONRequest, KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
141
|
-
}
|
|
142
|
-
static CreateConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapResponse> {
|
|
143
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
144
|
-
}
|
|
145
|
-
static UpdateConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapResponse> {
|
|
146
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
147
|
-
}
|
|
148
|
-
static PatchConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapResponse> {
|
|
149
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}/json`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
|
|
150
|
-
}
|
|
151
|
-
static DeleteConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.DeleteConfigMapRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
152
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.DeleteConfigMapRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
153
|
-
}
|
|
154
|
-
static ListSecrets(req: KairshipIoApiCoreV1alpha1Secret.ListSecretsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.ListSecretsResponse> {
|
|
155
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.ListSecretsRequest, KairshipIoApiCoreV1alpha1Secret.ListSecretsResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
|
|
156
|
-
}
|
|
157
|
-
static GetSecret(req: KairshipIoApiCoreV1alpha1Secret.GetSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.Secret> {
|
|
158
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.GetSecretRequest, KairshipIoApiCoreV1alpha1Secret.Secret>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
159
|
-
}
|
|
160
|
-
static GetSecretJSON(req: KairshipIoApiCoreV1alpha1Secret.GetSecretJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.GetSecretJSONResponse> {
|
|
161
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.GetSecretJSONRequest, KairshipIoApiCoreV1alpha1Secret.GetSecretJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
162
|
-
}
|
|
163
|
-
static CreateSecret(req: KairshipIoApiCoreV1alpha1Secret.CreateSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.CreateSecretResponse> {
|
|
164
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.CreateSecretRequest, KairshipIoApiCoreV1alpha1Secret.CreateSecretResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
165
|
-
}
|
|
166
|
-
static PatchSecret(req: KairshipIoApiCoreV1alpha1Secret.PatchSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.PatchSecretResponse> {
|
|
167
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.PatchSecretRequest, KairshipIoApiCoreV1alpha1Secret.PatchSecretResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
|
|
168
|
-
}
|
|
169
|
-
static UpdateSecret(req: KairshipIoApiCoreV1alpha1Secret.UpdateSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.UpdateSecretResponse> {
|
|
170
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.UpdateSecretRequest, KairshipIoApiCoreV1alpha1Secret.UpdateSecretResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
171
|
-
}
|
|
172
|
-
static DeleteSecret(req: KairshipIoApiCoreV1alpha1Secret.DeleteSecretRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
173
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.DeleteSecretRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
174
|
-
}
|
|
175
|
-
static ListSecretsForMemberCluster(req: KairshipIoApiCoreV1alpha1Secret.ListSecretsForMemberClusterRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.ListSecretsForMemberClusterResponse> {
|
|
176
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.ListSecretsForMemberClusterRequest, KairshipIoApiCoreV1alpha1Secret.ListSecretsForMemberClusterResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["instance", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
177
|
-
}
|
|
178
131
|
}
|
|
179
132
|
export class Apps {
|
|
180
133
|
static ListInstanceDeployments(req: KairshipIoApiAppsV1alpha1Deployment.ListInstanceDeploymentsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.ListInstanceDeploymentsResponse> {
|