@daocloud-proto/kairship 0.0.9 → 0.0.11
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.
|
@@ -100,4 +100,14 @@ export type GetInstanceJSONRequest = {
|
|
|
100
100
|
|
|
101
101
|
export type GetInstanceJSONResponse = {
|
|
102
102
|
data?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type CreateInstanceKubeConfigRequest = {
|
|
106
|
+
instance?: string
|
|
107
|
+
expirationSeconds?: number
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type CreateInstanceKubeConfigResponse = {
|
|
111
|
+
kubeConfigString?: string
|
|
112
|
+
instance?: string
|
|
103
113
|
}
|
|
@@ -171,6 +171,9 @@ export class Instance {
|
|
|
171
171
|
static UpdateInstance(req: KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceResponse> {
|
|
172
172
|
return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceRequest, KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceResponse>(`/apis/kairship.io/v1alpha1/instances/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
173
173
|
}
|
|
174
|
+
static CreateInstanceAdminKubeConfig(req: KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigResponse> {
|
|
175
|
+
return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigRequest, KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/kubeconfig`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
176
|
+
}
|
|
174
177
|
}
|
|
175
178
|
export class CloudShell {
|
|
176
179
|
static CreateCloudShell(req: KairshipIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
|