@daocloud-proto/kairship 0.1.5-2 → 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.
|
@@ -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
|
|
@@ -11,7 +11,6 @@ import * as KairshipIoApiCloudshellV1alpha1Cloudshell from "../cloudshell/v1alph
|
|
|
11
11
|
import * as KairshipIoApiClusterV1alpha1Cluster from "../cluster/v1alpha1/cluster.pb"
|
|
12
12
|
import * as KairshipIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
|
|
13
13
|
import * as KairshipIoApiCoreV1alpha1Pod from "../core/v1alpha1/pod.pb"
|
|
14
|
-
import * as KairshipIoApiCoreV1alpha1Secret from "../core/v1alpha1/secret.pb"
|
|
15
14
|
import * as KairshipIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
|
|
16
15
|
import * as KairshipIoApiInstanceV1alpha1Instance from "../instance/v1alpha1/instance.pb"
|
|
17
16
|
import * as KairshipIoApiPolicyV1alpha1Overridepolicy from "../policy/v1alpha1/overridepolicy.pb"
|
|
@@ -129,30 +128,6 @@ export class Core {
|
|
|
129
128
|
static ListServicesForMemberCluster(req: KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterResponse> {
|
|
130
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"})
|
|
131
130
|
}
|
|
132
|
-
static ListSecrets(req: KairshipIoApiCoreV1alpha1Secret.ListSecretsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.ListSecretsResponse> {
|
|
133
|
-
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"})
|
|
134
|
-
}
|
|
135
|
-
static GetSecret(req: KairshipIoApiCoreV1alpha1Secret.GetSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.Secret> {
|
|
136
|
-
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"})
|
|
137
|
-
}
|
|
138
|
-
static GetSecretJSON(req: KairshipIoApiCoreV1alpha1Secret.GetSecretJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.GetSecretJSONResponse> {
|
|
139
|
-
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"})
|
|
140
|
-
}
|
|
141
|
-
static CreateSecret(req: KairshipIoApiCoreV1alpha1Secret.CreateSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.CreateSecretResponse> {
|
|
142
|
-
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)})
|
|
143
|
-
}
|
|
144
|
-
static PatchSecret(req: KairshipIoApiCoreV1alpha1Secret.PatchSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.PatchSecretResponse> {
|
|
145
|
-
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)})
|
|
146
|
-
}
|
|
147
|
-
static UpdateSecret(req: KairshipIoApiCoreV1alpha1Secret.UpdateSecretRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.UpdateSecretResponse> {
|
|
148
|
-
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)})
|
|
149
|
-
}
|
|
150
|
-
static DeleteSecret(req: KairshipIoApiCoreV1alpha1Secret.DeleteSecretRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
151
|
-
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.DeleteSecretRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
152
|
-
}
|
|
153
|
-
static ListSecretsForMemberCluster(req: KairshipIoApiCoreV1alpha1Secret.ListSecretsForMemberClusterRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.ListSecretsForMemberClusterResponse> {
|
|
154
|
-
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"})
|
|
155
|
-
}
|
|
156
131
|
}
|
|
157
132
|
export class Apps {
|
|
158
133
|
static ListInstanceDeployments(req: KairshipIoApiAppsV1alpha1Deployment.ListInstanceDeploymentsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.ListInstanceDeploymentsResponse> {
|