@octelium/apis 1.0.7 → 1.0.9
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/main/authv1/authv1.d.ts +4 -0
- package/main/authv1/authv1.d.ts.map +1 -1
- package/main/authv1/authv1.js +9 -1
- package/main/authv1/authv1.js.map +1 -1
- package/main/authv1/authv1.ts +13 -1
- package/main/cordiumv1/cordiumv1.client.d.ts +336 -34
- package/main/cordiumv1/cordiumv1.client.d.ts.map +1 -1
- package/main/cordiumv1/cordiumv1.client.js +168 -17
- package/main/cordiumv1/cordiumv1.client.js.map +1 -1
- package/main/cordiumv1/cordiumv1.client.ts +336 -34
- package/main/cordiumv1/cordiumv1.d.ts +1849 -6
- package/main/cordiumv1/cordiumv1.d.ts.map +1 -1
- package/main/cordiumv1/cordiumv1.js +206 -0
- package/main/cordiumv1/cordiumv1.js.map +1 -1
- package/main/cordiumv1/cordiumv1.ts +1849 -6
- package/main/corev1/corev1.d.ts +8300 -4335
- package/main/corev1/corev1.d.ts.map +1 -1
- package/main/corev1/corev1.js +12864 -8817
- package/main/corev1/corev1.js.map +1 -1
- package/main/corev1/corev1.ts +16709 -10252
- package/main/userv1/userv1.d.ts +5 -1
- package/main/userv1/userv1.d.ts.map +1 -1
- package/main/userv1/userv1.js +4 -0
- package/main/userv1/userv1.js.map +1 -1
- package/main/userv1/userv1.ts +5 -1
- package/package.json +1 -1
|
@@ -67,113 +67,168 @@ import type { Secret } from "./cordiumv1.js";
|
|
|
67
67
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
68
68
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
69
69
|
/**
|
|
70
|
+
* MainService is the primary Cordium API that is used by the Users (i.e. via
|
|
71
|
+
* the `cordium` CLI, the web portal and the SDKs) to manage their Spaces,
|
|
72
|
+
* Templates, Workspaces, Memberships, Secrets, UserSecrets, GitProviders and
|
|
73
|
+
* their UserConfig. Every method is executed on behalf of the authenticated
|
|
74
|
+
* Octelium User and is authorized against that User's ownership of the
|
|
75
|
+
* resource and/or their Membership role in the resource's Space.
|
|
76
|
+
*
|
|
70
77
|
* @generated from protobuf service octelium.api.main.cordium.v1.MainService
|
|
71
78
|
*/
|
|
72
79
|
export interface IMainServiceClient {
|
|
73
80
|
/**
|
|
74
|
-
* CreateSecret creates a Secret
|
|
81
|
+
* CreateSecret creates a Secret inside a Space. The caller must be at least
|
|
82
|
+
* an ADMIN Member of the Space. The Secret data is never returned back by
|
|
83
|
+
* the Cluster once the Secret is created.
|
|
75
84
|
*
|
|
76
85
|
* @generated from protobuf rpc: CreateSecret
|
|
77
86
|
*/
|
|
78
87
|
createSecret(input: Secret, options?: RpcOptions): UnaryCall<Secret, Secret>;
|
|
79
88
|
/**
|
|
80
|
-
* ListSecret lists Secrets
|
|
89
|
+
* ListSecret lists the Secrets of a Space. The Secrets' data is not
|
|
90
|
+
* included in the response.
|
|
81
91
|
*
|
|
82
92
|
* @generated from protobuf rpc: ListSecret
|
|
83
93
|
*/
|
|
84
94
|
listSecret(input: ListSecretOptions, options?: RpcOptions): UnaryCall<ListSecretOptions, SecretList>;
|
|
85
95
|
/**
|
|
86
|
-
*
|
|
96
|
+
* DeleteSecret deletes a Secret. The caller must be at least an ADMIN Member
|
|
97
|
+
* of the Secret's Space.
|
|
87
98
|
*
|
|
88
99
|
* @generated from protobuf rpc: DeleteSecret
|
|
89
100
|
*/
|
|
90
101
|
deleteSecret(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
91
102
|
/**
|
|
92
|
-
*
|
|
103
|
+
* GetSecret retrieves a specific Secret. The Secret data is not included in
|
|
104
|
+
* the response.
|
|
93
105
|
*
|
|
94
106
|
* @generated from protobuf rpc: GetSecret
|
|
95
107
|
*/
|
|
96
108
|
getSecret(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Secret>;
|
|
97
109
|
/**
|
|
98
|
-
* CreateTemplate creates a Template
|
|
110
|
+
* CreateTemplate creates a Template inside a Space. The caller must be at
|
|
111
|
+
* least an ADMIN Member of the Space.
|
|
99
112
|
*
|
|
100
113
|
* @generated from protobuf rpc: CreateTemplate
|
|
101
114
|
*/
|
|
102
115
|
createTemplate(input: Template, options?: RpcOptions): UnaryCall<Template, Template>;
|
|
103
116
|
/**
|
|
104
|
-
* UpdateTemplate updates a Template
|
|
117
|
+
* UpdateTemplate updates a Template. The caller must be at least an ADMIN
|
|
118
|
+
* Member of the Template's Space.
|
|
105
119
|
*
|
|
106
120
|
* @generated from protobuf rpc: UpdateTemplate
|
|
107
121
|
*/
|
|
108
122
|
updateTemplate(input: Template, options?: RpcOptions): UnaryCall<Template, Template>;
|
|
109
123
|
/**
|
|
110
|
-
* DeleteTemplate deletes a Template
|
|
124
|
+
* DeleteTemplate deletes a Template. The default Template of a Space cannot
|
|
125
|
+
* be deleted.
|
|
111
126
|
*
|
|
112
127
|
* @generated from protobuf rpc: DeleteTemplate
|
|
113
128
|
*/
|
|
114
129
|
deleteTemplate(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
115
130
|
/**
|
|
131
|
+
* BuildTemplate starts a pre-build for a Template. A pre-build runs a
|
|
132
|
+
* hidden build Workspace whose storage is snapshotted once it successfully
|
|
133
|
+
* completes so that the subsequent Workspaces of the Template can be
|
|
134
|
+
* restored from that snapshot instead of being initialized from scratch. A
|
|
135
|
+
* Template can only have one running pre-build at a time. Starting a new
|
|
136
|
+
* pre-build cancels the currently running one, if any.
|
|
137
|
+
*
|
|
116
138
|
* @generated from protobuf rpc: BuildTemplate
|
|
117
139
|
*/
|
|
118
140
|
buildTemplate(input: BuildTemplateRequest, options?: RpcOptions): UnaryCall<BuildTemplateRequest, Template>;
|
|
119
141
|
/**
|
|
142
|
+
* CancelBuildTemplate cancels the currently running pre-build of a Template,
|
|
143
|
+
* if any, and returns the updated Template.
|
|
144
|
+
*
|
|
120
145
|
* @generated from protobuf rpc: CancelBuildTemplate
|
|
121
146
|
*/
|
|
122
147
|
cancelBuildTemplate(input: CancelBuildTemplateRequest, options?: RpcOptions): UnaryCall<CancelBuildTemplateRequest, Template>;
|
|
123
148
|
/**
|
|
124
|
-
*
|
|
149
|
+
* CreateSpace creates a Space owned by the User. Whether a User is allowed
|
|
150
|
+
* to own a Space is controlled by the Space ownership rules of the
|
|
151
|
+
* ClusterConfig. A default Membership and a default Template are
|
|
152
|
+
* automatically created along with the Space.
|
|
125
153
|
*
|
|
126
154
|
* @generated from protobuf rpc: CreateSpace
|
|
127
155
|
*/
|
|
128
156
|
createSpace(input: Space, options?: RpcOptions): UnaryCall<Space, Space>;
|
|
129
157
|
/**
|
|
130
|
-
*
|
|
158
|
+
* UpdateSpace updates a Space. The caller must be the Space creator or an
|
|
159
|
+
* OWNER Member of the Space.
|
|
131
160
|
*
|
|
132
161
|
* @generated from protobuf rpc: UpdateSpace
|
|
133
162
|
*/
|
|
134
163
|
updateSpace(input: Space, options?: RpcOptions): UnaryCall<Space, Space>;
|
|
135
164
|
/**
|
|
136
|
-
*
|
|
165
|
+
* DeleteSpace deletes a Space as well as all of its Memberships, Templates,
|
|
166
|
+
* Secrets and GitProviders.
|
|
137
167
|
*
|
|
138
168
|
* @generated from protobuf rpc: DeleteSpace
|
|
139
169
|
*/
|
|
140
170
|
deleteSpace(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
141
171
|
/**
|
|
172
|
+
* CreateMembership adds a User as a Member to a Space. The caller must be at
|
|
173
|
+
* least an ADMIN Member of the Space. Members can currently only be added to
|
|
174
|
+
* ORGANIZATION Spaces.
|
|
175
|
+
*
|
|
142
176
|
* @generated from protobuf rpc: CreateMembership
|
|
143
177
|
*/
|
|
144
178
|
createMembership(input: CreateMembershipRequest, options?: RpcOptions): UnaryCall<CreateMembershipRequest, Membership>;
|
|
145
179
|
/**
|
|
180
|
+
* DeleteMembership removes a Member from a Space. The caller must be at
|
|
181
|
+
* least an ADMIN Member of the Space. Space creators cannot be removed.
|
|
182
|
+
*
|
|
146
183
|
* @generated from protobuf rpc: DeleteMembership
|
|
147
184
|
*/
|
|
148
185
|
deleteMembership(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
149
186
|
/**
|
|
187
|
+
* GetSpaceMembership retrieves the Membership of the calling User in a
|
|
188
|
+
* specific Space.
|
|
189
|
+
*
|
|
150
190
|
* @generated from protobuf rpc: GetSpaceMembership
|
|
151
191
|
*/
|
|
152
192
|
getSpaceMembership(input: GetSpaceMembershipRequest, options?: RpcOptions): UnaryCall<GetSpaceMembershipRequest, Membership>;
|
|
153
193
|
/**
|
|
194
|
+
* UpdateMembership updates a Membership (i.e. its Role). The caller must be
|
|
195
|
+
* at least an ADMIN Member of the Space. Setting a Role to OWNER
|
|
196
|
+
* additionally requires the caller to be an OWNER.
|
|
197
|
+
*
|
|
154
198
|
* @generated from protobuf rpc: UpdateMembership
|
|
155
199
|
*/
|
|
156
200
|
updateMembership(input: Membership, options?: RpcOptions): UnaryCall<Membership, Membership>;
|
|
157
201
|
/**
|
|
202
|
+
* CreateGitProvider creates a GitProvider inside a Space. The caller must be
|
|
203
|
+
* at least an ADMIN Member of the Space.
|
|
204
|
+
*
|
|
158
205
|
* @generated from protobuf rpc: CreateGitProvider
|
|
159
206
|
*/
|
|
160
207
|
createGitProvider(input: GitProvider, options?: RpcOptions): UnaryCall<GitProvider, GitProvider>;
|
|
161
208
|
/**
|
|
209
|
+
* UpdateGitProvider updates a GitProvider.
|
|
210
|
+
*
|
|
162
211
|
* @generated from protobuf rpc: UpdateGitProvider
|
|
163
212
|
*/
|
|
164
213
|
updateGitProvider(input: GitProvider, options?: RpcOptions): UnaryCall<GitProvider, GitProvider>;
|
|
165
214
|
/**
|
|
215
|
+
* DeleteGitProvider deletes a GitProvider.
|
|
216
|
+
*
|
|
166
217
|
* @generated from protobuf rpc: DeleteGitProvider
|
|
167
218
|
*/
|
|
168
219
|
deleteGitProvider(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
169
220
|
/**
|
|
170
|
-
* CreateWorkspace creates a Workspace owned by the User.
|
|
221
|
+
* CreateWorkspace creates a Workspace owned by the User. The Workspace is
|
|
222
|
+
* created in the STOPPED state and it is assigned a short randomly generated
|
|
223
|
+
* name by the Cluster. If no Template is set in the request's
|
|
224
|
+
* `status.templateRef`, the User's default Template is used.
|
|
171
225
|
*
|
|
172
226
|
* @generated from protobuf rpc: CreateWorkspace
|
|
173
227
|
*/
|
|
174
228
|
createWorkspace(input: Workspace, options?: RpcOptions): UnaryCall<Workspace, Workspace>;
|
|
175
229
|
/**
|
|
176
|
-
* UpdateWorkspace updates a Workspace owned by the User.
|
|
230
|
+
* UpdateWorkspace updates a Workspace owned by the User. Only the
|
|
231
|
+
* Workspace's displayName and spec can be updated.
|
|
177
232
|
*
|
|
178
233
|
* @generated from protobuf rpc: UpdateWorkspace
|
|
179
234
|
*/
|
|
@@ -191,107 +246,177 @@ export interface IMainServiceClient {
|
|
|
191
246
|
*/
|
|
192
247
|
listWorkspace(input: ListWorkspaceOptions, options?: RpcOptions): UnaryCall<ListWorkspaceOptions, WorkspaceList>;
|
|
193
248
|
/**
|
|
249
|
+
* StartWorkspace starts a stopped Workspace. The Cluster creates a dedicated
|
|
250
|
+
* Octelium Session for the run and moves the Workspace to the INIT_REQUEST
|
|
251
|
+
* state. The actual initialization is asynchronous and can be followed via
|
|
252
|
+
* the WatchWorkspace method.
|
|
253
|
+
*
|
|
194
254
|
* @generated from protobuf rpc: StartWorkspace
|
|
195
255
|
*/
|
|
196
256
|
startWorkspace(input: StartWorkspaceRequest, options?: RpcOptions): UnaryCall<StartWorkspaceRequest, StartWorkspaceResponse>;
|
|
197
257
|
/**
|
|
258
|
+
* StopWorkspace requests a graceful stop of a running Workspace. The
|
|
259
|
+
* Workspace moves to the STOPPING_REQUEST state and the stoppage itself is
|
|
260
|
+
* asynchronous.
|
|
261
|
+
*
|
|
198
262
|
* @generated from protobuf rpc: StopWorkspace
|
|
199
263
|
*/
|
|
200
264
|
stopWorkspace(input: StopWorkspaceRequest, options?: RpcOptions): UnaryCall<StopWorkspaceRequest, StopWorkspaceResponse>;
|
|
201
265
|
/**
|
|
266
|
+
* ShareWorkspacePort shares a named Application of a Workspace with other
|
|
267
|
+
* Users so that they can access it via the Workspace's public hostname.
|
|
268
|
+
*
|
|
202
269
|
* @generated from protobuf rpc: ShareWorkspacePort
|
|
203
270
|
*/
|
|
204
271
|
shareWorkspacePort(input: ShareWorkspacePortRequest, options?: RpcOptions): UnaryCall<ShareWorkspacePortRequest, ShareWorkspacePortResponse>;
|
|
205
272
|
/**
|
|
273
|
+
* UnshareWorkspacePort stops sharing a previously shared named Application
|
|
274
|
+
* of a Workspace.
|
|
275
|
+
*
|
|
206
276
|
* @generated from protobuf rpc: UnshareWorkspacePort
|
|
207
277
|
*/
|
|
208
278
|
unshareWorkspacePort(input: UnshareWorkspacePortRequest, options?: RpcOptions): UnaryCall<UnshareWorkspacePortRequest, UnshareWorkspacePortResponse>;
|
|
209
279
|
/**
|
|
280
|
+
* ListSpace lists the Spaces that are either created by the User or where
|
|
281
|
+
* the User is a Member depending on the requested mode.
|
|
282
|
+
*
|
|
210
283
|
* @generated from protobuf rpc: ListSpace
|
|
211
284
|
*/
|
|
212
285
|
listSpace(input: ListSpaceOptions, options?: RpcOptions): UnaryCall<ListSpaceOptions, SpaceList>;
|
|
213
286
|
/**
|
|
287
|
+
* ListTemplate lists the Templates of a Space that the User is a Member of.
|
|
288
|
+
*
|
|
214
289
|
* @generated from protobuf rpc: ListTemplate
|
|
215
290
|
*/
|
|
216
291
|
listTemplate(input: ListTemplateOptions, options?: RpcOptions): UnaryCall<ListTemplateOptions, TemplateList>;
|
|
217
292
|
/**
|
|
293
|
+
* ListMembership lists the Memberships of a Space that the User is a Member
|
|
294
|
+
* of.
|
|
295
|
+
*
|
|
218
296
|
* @generated from protobuf rpc: ListMembership
|
|
219
297
|
*/
|
|
220
298
|
listMembership(input: ListMembershipOptions, options?: RpcOptions): UnaryCall<ListMembershipOptions, MembershipList>;
|
|
221
299
|
/**
|
|
300
|
+
* ListGitProvider lists the GitProviders of a Space that the User is a
|
|
301
|
+
* Member of.
|
|
302
|
+
*
|
|
222
303
|
* @generated from protobuf rpc: ListGitProvider
|
|
223
304
|
*/
|
|
224
305
|
listGitProvider(input: ListGitProviderOptions, options?: RpcOptions): UnaryCall<ListGitProviderOptions, GitProviderList>;
|
|
225
306
|
/**
|
|
307
|
+
* GetSpace retrieves a specific Space. The caller must be a Member of the
|
|
308
|
+
* Space.
|
|
309
|
+
*
|
|
226
310
|
* @generated from protobuf rpc: GetSpace
|
|
227
311
|
*/
|
|
228
312
|
getSpace(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Space>;
|
|
229
313
|
/**
|
|
314
|
+
* GetWorkspace retrieves a specific Workspace owned by the User.
|
|
315
|
+
*
|
|
230
316
|
* @generated from protobuf rpc: GetWorkspace
|
|
231
317
|
*/
|
|
232
318
|
getWorkspace(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Workspace>;
|
|
233
319
|
/**
|
|
320
|
+
* GetTemplate retrieves a specific Template. The caller must be a Member of
|
|
321
|
+
* the Template's Space.
|
|
322
|
+
*
|
|
234
323
|
* @generated from protobuf rpc: GetTemplate
|
|
235
324
|
*/
|
|
236
325
|
getTemplate(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Template>;
|
|
237
326
|
/**
|
|
327
|
+
* GetGitProvider retrieves a specific GitProvider. The caller must be a
|
|
328
|
+
* Member of the GitProvider's Space.
|
|
329
|
+
*
|
|
238
330
|
* @generated from protobuf rpc: GetGitProvider
|
|
239
331
|
*/
|
|
240
332
|
getGitProvider(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, GitProvider>;
|
|
241
333
|
/**
|
|
334
|
+
* GetMembership retrieves a specific Membership. The caller must be a Member
|
|
335
|
+
* of the Membership's Space.
|
|
336
|
+
*
|
|
242
337
|
* @generated from protobuf rpc: GetMembership
|
|
243
338
|
*/
|
|
244
339
|
getMembership(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Membership>;
|
|
245
340
|
/**
|
|
341
|
+
* LeaveSpace removes the calling User's own Membership from a Space. Space
|
|
342
|
+
* creators cannot leave their own Spaces, they can only delete them.
|
|
343
|
+
*
|
|
246
344
|
* @generated from protobuf rpc: LeaveSpace
|
|
247
345
|
*/
|
|
248
346
|
leaveSpace(input: LeaveSpaceRequest, options?: RpcOptions): UnaryCall<LeaveSpaceRequest, LeaveSpaceResponse>;
|
|
249
347
|
/**
|
|
250
|
-
*
|
|
348
|
+
* CreateUserSecret creates a UserSecret owned by the User. UserSecrets of
|
|
349
|
+
* the SSH_KEY type have their key pair generated by the Cluster. The
|
|
350
|
+
* UserSecret data is never returned back by the Cluster.
|
|
251
351
|
*
|
|
252
352
|
* @generated from protobuf rpc: CreateUserSecret
|
|
253
353
|
*/
|
|
254
354
|
createUserSecret(input: UserSecret, options?: RpcOptions): UnaryCall<UserSecret, UserSecret>;
|
|
255
355
|
/**
|
|
256
|
-
*
|
|
356
|
+
* UpdateUserSecret updates a UserSecret owned by the User.
|
|
257
357
|
*
|
|
258
358
|
* @generated from protobuf rpc: UpdateUserSecret
|
|
259
359
|
*/
|
|
260
360
|
updateUserSecret(input: UserSecret, options?: RpcOptions): UnaryCall<UserSecret, UserSecret>;
|
|
261
361
|
/**
|
|
262
|
-
*
|
|
362
|
+
* DeleteUserSecret deletes a UserSecret owned by the User.
|
|
263
363
|
*
|
|
264
364
|
* @generated from protobuf rpc: DeleteUserSecret
|
|
265
365
|
*/
|
|
266
366
|
deleteUserSecret(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
267
367
|
/**
|
|
268
|
-
*
|
|
368
|
+
* ListUserSecret lists the UserSecrets owned by the User. The UserSecrets'
|
|
369
|
+
* data is not included in the response.
|
|
269
370
|
*
|
|
270
371
|
* @generated from protobuf rpc: ListUserSecret
|
|
271
372
|
*/
|
|
272
373
|
listUserSecret(input: ListUserSecretOptions, options?: RpcOptions): UnaryCall<ListUserSecretOptions, UserSecretList>;
|
|
273
374
|
/**
|
|
375
|
+
* GetUserSecret retrieves a specific UserSecret owned by the User. The
|
|
376
|
+
* UserSecret data is not included in the response.
|
|
377
|
+
*
|
|
274
378
|
* @generated from protobuf rpc: GetUserSecret
|
|
275
379
|
*/
|
|
276
380
|
getUserSecret(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, UserSecret>;
|
|
277
381
|
/**
|
|
382
|
+
* GetUserConfig retrieves the calling User's UserConfig. The UserConfig is
|
|
383
|
+
* automatically created by the Cluster upon the first call.
|
|
384
|
+
*
|
|
278
385
|
* @generated from protobuf rpc: GetUserConfig
|
|
279
386
|
*/
|
|
280
387
|
getUserConfig(input: GetUserConfigRequest, options?: RpcOptions): UnaryCall<GetUserConfigRequest, UserConfig>;
|
|
281
388
|
/**
|
|
389
|
+
* UpdateUserConfig updates the calling User's UserConfig.
|
|
390
|
+
*
|
|
282
391
|
* @generated from protobuf rpc: UpdateUserConfig
|
|
283
392
|
*/
|
|
284
393
|
updateUserConfig(input: UserConfig, options?: RpcOptions): UnaryCall<UserConfig, UserConfig>;
|
|
285
394
|
/**
|
|
395
|
+
* ListRegion lists the Regions of the Cluster that are enabled to host
|
|
396
|
+
* Workspaces.
|
|
397
|
+
*
|
|
286
398
|
* @generated from protobuf rpc: ListRegion
|
|
287
399
|
*/
|
|
288
400
|
listRegion(input: ListRegionOptions, options?: RpcOptions): UnaryCall<ListRegionOptions, RegionList>;
|
|
289
401
|
/**
|
|
402
|
+
* WatchWorkspace opens a server-side stream that publishes the create,
|
|
403
|
+
* update and delete events of the User's Workspaces. If a workspaceRef is
|
|
404
|
+
* set in the request, only the events of that specific Workspace are
|
|
405
|
+
* published. It is the recommended way to follow a Workspace's state
|
|
406
|
+
* throughout its lifecycle.
|
|
407
|
+
*
|
|
290
408
|
* @generated from protobuf rpc: WatchWorkspace
|
|
291
409
|
*/
|
|
292
410
|
watchWorkspace(input: WatchWorkspaceRequest, options?: RpcOptions): ServerStreamingCall<WatchWorkspaceRequest, WatchWorkspaceResponse>;
|
|
293
411
|
}
|
|
294
412
|
/**
|
|
413
|
+
* MainService is the primary Cordium API that is used by the Users (i.e. via
|
|
414
|
+
* the `cordium` CLI, the web portal and the SDKs) to manage their Spaces,
|
|
415
|
+
* Templates, Workspaces, Memberships, Secrets, UserSecrets, GitProviders and
|
|
416
|
+
* their UserConfig. Every method is executed on behalf of the authenticated
|
|
417
|
+
* Octelium User and is authorized against that User's ownership of the
|
|
418
|
+
* resource and/or their Membership role in the resource's Space.
|
|
419
|
+
*
|
|
295
420
|
* @generated from protobuf service octelium.api.main.cordium.v1.MainService
|
|
296
421
|
*/
|
|
297
422
|
export declare class MainServiceClient implements IMainServiceClient, ServiceInfo {
|
|
@@ -303,109 +428,157 @@ export declare class MainServiceClient implements IMainServiceClient, ServiceInf
|
|
|
303
428
|
};
|
|
304
429
|
constructor(_transport: RpcTransport);
|
|
305
430
|
/**
|
|
306
|
-
* CreateSecret creates a Secret
|
|
431
|
+
* CreateSecret creates a Secret inside a Space. The caller must be at least
|
|
432
|
+
* an ADMIN Member of the Space. The Secret data is never returned back by
|
|
433
|
+
* the Cluster once the Secret is created.
|
|
307
434
|
*
|
|
308
435
|
* @generated from protobuf rpc: CreateSecret
|
|
309
436
|
*/
|
|
310
437
|
createSecret(input: Secret, options?: RpcOptions): UnaryCall<Secret, Secret>;
|
|
311
438
|
/**
|
|
312
|
-
* ListSecret lists Secrets
|
|
439
|
+
* ListSecret lists the Secrets of a Space. The Secrets' data is not
|
|
440
|
+
* included in the response.
|
|
313
441
|
*
|
|
314
442
|
* @generated from protobuf rpc: ListSecret
|
|
315
443
|
*/
|
|
316
444
|
listSecret(input: ListSecretOptions, options?: RpcOptions): UnaryCall<ListSecretOptions, SecretList>;
|
|
317
445
|
/**
|
|
318
|
-
*
|
|
446
|
+
* DeleteSecret deletes a Secret. The caller must be at least an ADMIN Member
|
|
447
|
+
* of the Secret's Space.
|
|
319
448
|
*
|
|
320
449
|
* @generated from protobuf rpc: DeleteSecret
|
|
321
450
|
*/
|
|
322
451
|
deleteSecret(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
323
452
|
/**
|
|
324
|
-
*
|
|
453
|
+
* GetSecret retrieves a specific Secret. The Secret data is not included in
|
|
454
|
+
* the response.
|
|
325
455
|
*
|
|
326
456
|
* @generated from protobuf rpc: GetSecret
|
|
327
457
|
*/
|
|
328
458
|
getSecret(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Secret>;
|
|
329
459
|
/**
|
|
330
|
-
* CreateTemplate creates a Template
|
|
460
|
+
* CreateTemplate creates a Template inside a Space. The caller must be at
|
|
461
|
+
* least an ADMIN Member of the Space.
|
|
331
462
|
*
|
|
332
463
|
* @generated from protobuf rpc: CreateTemplate
|
|
333
464
|
*/
|
|
334
465
|
createTemplate(input: Template, options?: RpcOptions): UnaryCall<Template, Template>;
|
|
335
466
|
/**
|
|
336
|
-
* UpdateTemplate updates a Template
|
|
467
|
+
* UpdateTemplate updates a Template. The caller must be at least an ADMIN
|
|
468
|
+
* Member of the Template's Space.
|
|
337
469
|
*
|
|
338
470
|
* @generated from protobuf rpc: UpdateTemplate
|
|
339
471
|
*/
|
|
340
472
|
updateTemplate(input: Template, options?: RpcOptions): UnaryCall<Template, Template>;
|
|
341
473
|
/**
|
|
342
|
-
* DeleteTemplate deletes a Template
|
|
474
|
+
* DeleteTemplate deletes a Template. The default Template of a Space cannot
|
|
475
|
+
* be deleted.
|
|
343
476
|
*
|
|
344
477
|
* @generated from protobuf rpc: DeleteTemplate
|
|
345
478
|
*/
|
|
346
479
|
deleteTemplate(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
347
480
|
/**
|
|
481
|
+
* BuildTemplate starts a pre-build for a Template. A pre-build runs a
|
|
482
|
+
* hidden build Workspace whose storage is snapshotted once it successfully
|
|
483
|
+
* completes so that the subsequent Workspaces of the Template can be
|
|
484
|
+
* restored from that snapshot instead of being initialized from scratch. A
|
|
485
|
+
* Template can only have one running pre-build at a time. Starting a new
|
|
486
|
+
* pre-build cancels the currently running one, if any.
|
|
487
|
+
*
|
|
348
488
|
* @generated from protobuf rpc: BuildTemplate
|
|
349
489
|
*/
|
|
350
490
|
buildTemplate(input: BuildTemplateRequest, options?: RpcOptions): UnaryCall<BuildTemplateRequest, Template>;
|
|
351
491
|
/**
|
|
492
|
+
* CancelBuildTemplate cancels the currently running pre-build of a Template,
|
|
493
|
+
* if any, and returns the updated Template.
|
|
494
|
+
*
|
|
352
495
|
* @generated from protobuf rpc: CancelBuildTemplate
|
|
353
496
|
*/
|
|
354
497
|
cancelBuildTemplate(input: CancelBuildTemplateRequest, options?: RpcOptions): UnaryCall<CancelBuildTemplateRequest, Template>;
|
|
355
498
|
/**
|
|
356
|
-
*
|
|
499
|
+
* CreateSpace creates a Space owned by the User. Whether a User is allowed
|
|
500
|
+
* to own a Space is controlled by the Space ownership rules of the
|
|
501
|
+
* ClusterConfig. A default Membership and a default Template are
|
|
502
|
+
* automatically created along with the Space.
|
|
357
503
|
*
|
|
358
504
|
* @generated from protobuf rpc: CreateSpace
|
|
359
505
|
*/
|
|
360
506
|
createSpace(input: Space, options?: RpcOptions): UnaryCall<Space, Space>;
|
|
361
507
|
/**
|
|
362
|
-
*
|
|
508
|
+
* UpdateSpace updates a Space. The caller must be the Space creator or an
|
|
509
|
+
* OWNER Member of the Space.
|
|
363
510
|
*
|
|
364
511
|
* @generated from protobuf rpc: UpdateSpace
|
|
365
512
|
*/
|
|
366
513
|
updateSpace(input: Space, options?: RpcOptions): UnaryCall<Space, Space>;
|
|
367
514
|
/**
|
|
368
|
-
*
|
|
515
|
+
* DeleteSpace deletes a Space as well as all of its Memberships, Templates,
|
|
516
|
+
* Secrets and GitProviders.
|
|
369
517
|
*
|
|
370
518
|
* @generated from protobuf rpc: DeleteSpace
|
|
371
519
|
*/
|
|
372
520
|
deleteSpace(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
373
521
|
/**
|
|
522
|
+
* CreateMembership adds a User as a Member to a Space. The caller must be at
|
|
523
|
+
* least an ADMIN Member of the Space. Members can currently only be added to
|
|
524
|
+
* ORGANIZATION Spaces.
|
|
525
|
+
*
|
|
374
526
|
* @generated from protobuf rpc: CreateMembership
|
|
375
527
|
*/
|
|
376
528
|
createMembership(input: CreateMembershipRequest, options?: RpcOptions): UnaryCall<CreateMembershipRequest, Membership>;
|
|
377
529
|
/**
|
|
530
|
+
* DeleteMembership removes a Member from a Space. The caller must be at
|
|
531
|
+
* least an ADMIN Member of the Space. Space creators cannot be removed.
|
|
532
|
+
*
|
|
378
533
|
* @generated from protobuf rpc: DeleteMembership
|
|
379
534
|
*/
|
|
380
535
|
deleteMembership(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
381
536
|
/**
|
|
537
|
+
* GetSpaceMembership retrieves the Membership of the calling User in a
|
|
538
|
+
* specific Space.
|
|
539
|
+
*
|
|
382
540
|
* @generated from protobuf rpc: GetSpaceMembership
|
|
383
541
|
*/
|
|
384
542
|
getSpaceMembership(input: GetSpaceMembershipRequest, options?: RpcOptions): UnaryCall<GetSpaceMembershipRequest, Membership>;
|
|
385
543
|
/**
|
|
544
|
+
* UpdateMembership updates a Membership (i.e. its Role). The caller must be
|
|
545
|
+
* at least an ADMIN Member of the Space. Setting a Role to OWNER
|
|
546
|
+
* additionally requires the caller to be an OWNER.
|
|
547
|
+
*
|
|
386
548
|
* @generated from protobuf rpc: UpdateMembership
|
|
387
549
|
*/
|
|
388
550
|
updateMembership(input: Membership, options?: RpcOptions): UnaryCall<Membership, Membership>;
|
|
389
551
|
/**
|
|
552
|
+
* CreateGitProvider creates a GitProvider inside a Space. The caller must be
|
|
553
|
+
* at least an ADMIN Member of the Space.
|
|
554
|
+
*
|
|
390
555
|
* @generated from protobuf rpc: CreateGitProvider
|
|
391
556
|
*/
|
|
392
557
|
createGitProvider(input: GitProvider, options?: RpcOptions): UnaryCall<GitProvider, GitProvider>;
|
|
393
558
|
/**
|
|
559
|
+
* UpdateGitProvider updates a GitProvider.
|
|
560
|
+
*
|
|
394
561
|
* @generated from protobuf rpc: UpdateGitProvider
|
|
395
562
|
*/
|
|
396
563
|
updateGitProvider(input: GitProvider, options?: RpcOptions): UnaryCall<GitProvider, GitProvider>;
|
|
397
564
|
/**
|
|
565
|
+
* DeleteGitProvider deletes a GitProvider.
|
|
566
|
+
*
|
|
398
567
|
* @generated from protobuf rpc: DeleteGitProvider
|
|
399
568
|
*/
|
|
400
569
|
deleteGitProvider(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
401
570
|
/**
|
|
402
|
-
* CreateWorkspace creates a Workspace owned by the User.
|
|
571
|
+
* CreateWorkspace creates a Workspace owned by the User. The Workspace is
|
|
572
|
+
* created in the STOPPED state and it is assigned a short randomly generated
|
|
573
|
+
* name by the Cluster. If no Template is set in the request's
|
|
574
|
+
* `status.templateRef`, the User's default Template is used.
|
|
403
575
|
*
|
|
404
576
|
* @generated from protobuf rpc: CreateWorkspace
|
|
405
577
|
*/
|
|
406
578
|
createWorkspace(input: Workspace, options?: RpcOptions): UnaryCall<Workspace, Workspace>;
|
|
407
579
|
/**
|
|
408
|
-
* UpdateWorkspace updates a Workspace owned by the User.
|
|
580
|
+
* UpdateWorkspace updates a Workspace owned by the User. Only the
|
|
581
|
+
* Workspace's displayName and spec can be updated.
|
|
409
582
|
*
|
|
410
583
|
* @generated from protobuf rpc: UpdateWorkspace
|
|
411
584
|
*/
|
|
@@ -423,144 +596,241 @@ export declare class MainServiceClient implements IMainServiceClient, ServiceInf
|
|
|
423
596
|
*/
|
|
424
597
|
listWorkspace(input: ListWorkspaceOptions, options?: RpcOptions): UnaryCall<ListWorkspaceOptions, WorkspaceList>;
|
|
425
598
|
/**
|
|
599
|
+
* StartWorkspace starts a stopped Workspace. The Cluster creates a dedicated
|
|
600
|
+
* Octelium Session for the run and moves the Workspace to the INIT_REQUEST
|
|
601
|
+
* state. The actual initialization is asynchronous and can be followed via
|
|
602
|
+
* the WatchWorkspace method.
|
|
603
|
+
*
|
|
426
604
|
* @generated from protobuf rpc: StartWorkspace
|
|
427
605
|
*/
|
|
428
606
|
startWorkspace(input: StartWorkspaceRequest, options?: RpcOptions): UnaryCall<StartWorkspaceRequest, StartWorkspaceResponse>;
|
|
429
607
|
/**
|
|
608
|
+
* StopWorkspace requests a graceful stop of a running Workspace. The
|
|
609
|
+
* Workspace moves to the STOPPING_REQUEST state and the stoppage itself is
|
|
610
|
+
* asynchronous.
|
|
611
|
+
*
|
|
430
612
|
* @generated from protobuf rpc: StopWorkspace
|
|
431
613
|
*/
|
|
432
614
|
stopWorkspace(input: StopWorkspaceRequest, options?: RpcOptions): UnaryCall<StopWorkspaceRequest, StopWorkspaceResponse>;
|
|
433
615
|
/**
|
|
616
|
+
* ShareWorkspacePort shares a named Application of a Workspace with other
|
|
617
|
+
* Users so that they can access it via the Workspace's public hostname.
|
|
618
|
+
*
|
|
434
619
|
* @generated from protobuf rpc: ShareWorkspacePort
|
|
435
620
|
*/
|
|
436
621
|
shareWorkspacePort(input: ShareWorkspacePortRequest, options?: RpcOptions): UnaryCall<ShareWorkspacePortRequest, ShareWorkspacePortResponse>;
|
|
437
622
|
/**
|
|
623
|
+
* UnshareWorkspacePort stops sharing a previously shared named Application
|
|
624
|
+
* of a Workspace.
|
|
625
|
+
*
|
|
438
626
|
* @generated from protobuf rpc: UnshareWorkspacePort
|
|
439
627
|
*/
|
|
440
628
|
unshareWorkspacePort(input: UnshareWorkspacePortRequest, options?: RpcOptions): UnaryCall<UnshareWorkspacePortRequest, UnshareWorkspacePortResponse>;
|
|
441
629
|
/**
|
|
630
|
+
* ListSpace lists the Spaces that are either created by the User or where
|
|
631
|
+
* the User is a Member depending on the requested mode.
|
|
632
|
+
*
|
|
442
633
|
* @generated from protobuf rpc: ListSpace
|
|
443
634
|
*/
|
|
444
635
|
listSpace(input: ListSpaceOptions, options?: RpcOptions): UnaryCall<ListSpaceOptions, SpaceList>;
|
|
445
636
|
/**
|
|
637
|
+
* ListTemplate lists the Templates of a Space that the User is a Member of.
|
|
638
|
+
*
|
|
446
639
|
* @generated from protobuf rpc: ListTemplate
|
|
447
640
|
*/
|
|
448
641
|
listTemplate(input: ListTemplateOptions, options?: RpcOptions): UnaryCall<ListTemplateOptions, TemplateList>;
|
|
449
642
|
/**
|
|
643
|
+
* ListMembership lists the Memberships of a Space that the User is a Member
|
|
644
|
+
* of.
|
|
645
|
+
*
|
|
450
646
|
* @generated from protobuf rpc: ListMembership
|
|
451
647
|
*/
|
|
452
648
|
listMembership(input: ListMembershipOptions, options?: RpcOptions): UnaryCall<ListMembershipOptions, MembershipList>;
|
|
453
649
|
/**
|
|
650
|
+
* ListGitProvider lists the GitProviders of a Space that the User is a
|
|
651
|
+
* Member of.
|
|
652
|
+
*
|
|
454
653
|
* @generated from protobuf rpc: ListGitProvider
|
|
455
654
|
*/
|
|
456
655
|
listGitProvider(input: ListGitProviderOptions, options?: RpcOptions): UnaryCall<ListGitProviderOptions, GitProviderList>;
|
|
457
656
|
/**
|
|
657
|
+
* GetSpace retrieves a specific Space. The caller must be a Member of the
|
|
658
|
+
* Space.
|
|
659
|
+
*
|
|
458
660
|
* @generated from protobuf rpc: GetSpace
|
|
459
661
|
*/
|
|
460
662
|
getSpace(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Space>;
|
|
461
663
|
/**
|
|
664
|
+
* GetWorkspace retrieves a specific Workspace owned by the User.
|
|
665
|
+
*
|
|
462
666
|
* @generated from protobuf rpc: GetWorkspace
|
|
463
667
|
*/
|
|
464
668
|
getWorkspace(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Workspace>;
|
|
465
669
|
/**
|
|
670
|
+
* GetTemplate retrieves a specific Template. The caller must be a Member of
|
|
671
|
+
* the Template's Space.
|
|
672
|
+
*
|
|
466
673
|
* @generated from protobuf rpc: GetTemplate
|
|
467
674
|
*/
|
|
468
675
|
getTemplate(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Template>;
|
|
469
676
|
/**
|
|
677
|
+
* GetGitProvider retrieves a specific GitProvider. The caller must be a
|
|
678
|
+
* Member of the GitProvider's Space.
|
|
679
|
+
*
|
|
470
680
|
* @generated from protobuf rpc: GetGitProvider
|
|
471
681
|
*/
|
|
472
682
|
getGitProvider(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, GitProvider>;
|
|
473
683
|
/**
|
|
684
|
+
* GetMembership retrieves a specific Membership. The caller must be a Member
|
|
685
|
+
* of the Membership's Space.
|
|
686
|
+
*
|
|
474
687
|
* @generated from protobuf rpc: GetMembership
|
|
475
688
|
*/
|
|
476
689
|
getMembership(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, Membership>;
|
|
477
690
|
/**
|
|
691
|
+
* LeaveSpace removes the calling User's own Membership from a Space. Space
|
|
692
|
+
* creators cannot leave their own Spaces, they can only delete them.
|
|
693
|
+
*
|
|
478
694
|
* @generated from protobuf rpc: LeaveSpace
|
|
479
695
|
*/
|
|
480
696
|
leaveSpace(input: LeaveSpaceRequest, options?: RpcOptions): UnaryCall<LeaveSpaceRequest, LeaveSpaceResponse>;
|
|
481
697
|
/**
|
|
482
|
-
*
|
|
698
|
+
* CreateUserSecret creates a UserSecret owned by the User. UserSecrets of
|
|
699
|
+
* the SSH_KEY type have their key pair generated by the Cluster. The
|
|
700
|
+
* UserSecret data is never returned back by the Cluster.
|
|
483
701
|
*
|
|
484
702
|
* @generated from protobuf rpc: CreateUserSecret
|
|
485
703
|
*/
|
|
486
704
|
createUserSecret(input: UserSecret, options?: RpcOptions): UnaryCall<UserSecret, UserSecret>;
|
|
487
705
|
/**
|
|
488
|
-
*
|
|
706
|
+
* UpdateUserSecret updates a UserSecret owned by the User.
|
|
489
707
|
*
|
|
490
708
|
* @generated from protobuf rpc: UpdateUserSecret
|
|
491
709
|
*/
|
|
492
710
|
updateUserSecret(input: UserSecret, options?: RpcOptions): UnaryCall<UserSecret, UserSecret>;
|
|
493
711
|
/**
|
|
494
|
-
*
|
|
712
|
+
* DeleteUserSecret deletes a UserSecret owned by the User.
|
|
495
713
|
*
|
|
496
714
|
* @generated from protobuf rpc: DeleteUserSecret
|
|
497
715
|
*/
|
|
498
716
|
deleteUserSecret(input: DeleteOptions, options?: RpcOptions): UnaryCall<DeleteOptions, OperationResult>;
|
|
499
717
|
/**
|
|
500
|
-
*
|
|
718
|
+
* ListUserSecret lists the UserSecrets owned by the User. The UserSecrets'
|
|
719
|
+
* data is not included in the response.
|
|
501
720
|
*
|
|
502
721
|
* @generated from protobuf rpc: ListUserSecret
|
|
503
722
|
*/
|
|
504
723
|
listUserSecret(input: ListUserSecretOptions, options?: RpcOptions): UnaryCall<ListUserSecretOptions, UserSecretList>;
|
|
505
724
|
/**
|
|
725
|
+
* GetUserSecret retrieves a specific UserSecret owned by the User. The
|
|
726
|
+
* UserSecret data is not included in the response.
|
|
727
|
+
*
|
|
506
728
|
* @generated from protobuf rpc: GetUserSecret
|
|
507
729
|
*/
|
|
508
730
|
getUserSecret(input: GetOptions, options?: RpcOptions): UnaryCall<GetOptions, UserSecret>;
|
|
509
731
|
/**
|
|
732
|
+
* GetUserConfig retrieves the calling User's UserConfig. The UserConfig is
|
|
733
|
+
* automatically created by the Cluster upon the first call.
|
|
734
|
+
*
|
|
510
735
|
* @generated from protobuf rpc: GetUserConfig
|
|
511
736
|
*/
|
|
512
737
|
getUserConfig(input: GetUserConfigRequest, options?: RpcOptions): UnaryCall<GetUserConfigRequest, UserConfig>;
|
|
513
738
|
/**
|
|
739
|
+
* UpdateUserConfig updates the calling User's UserConfig.
|
|
740
|
+
*
|
|
514
741
|
* @generated from protobuf rpc: UpdateUserConfig
|
|
515
742
|
*/
|
|
516
743
|
updateUserConfig(input: UserConfig, options?: RpcOptions): UnaryCall<UserConfig, UserConfig>;
|
|
517
744
|
/**
|
|
745
|
+
* ListRegion lists the Regions of the Cluster that are enabled to host
|
|
746
|
+
* Workspaces.
|
|
747
|
+
*
|
|
518
748
|
* @generated from protobuf rpc: ListRegion
|
|
519
749
|
*/
|
|
520
750
|
listRegion(input: ListRegionOptions, options?: RpcOptions): UnaryCall<ListRegionOptions, RegionList>;
|
|
521
751
|
/**
|
|
752
|
+
* WatchWorkspace opens a server-side stream that publishes the create,
|
|
753
|
+
* update and delete events of the User's Workspaces. If a workspaceRef is
|
|
754
|
+
* set in the request, only the events of that specific Workspace are
|
|
755
|
+
* published. It is the recommended way to follow a Workspace's state
|
|
756
|
+
* throughout its lifecycle.
|
|
757
|
+
*
|
|
522
758
|
* @generated from protobuf rpc: WatchWorkspace
|
|
523
759
|
*/
|
|
524
760
|
watchWorkspace(input: WatchWorkspaceRequest, options?: RpcOptions): ServerStreamingCall<WatchWorkspaceRequest, WatchWorkspaceResponse>;
|
|
525
761
|
}
|
|
526
762
|
/**
|
|
763
|
+
* WorkspaceService is the API that operates inside a running Workspace. It
|
|
764
|
+
* provides interactive terminals, command execution and the initialization
|
|
765
|
+
* logs. Every method requires the Workspace to be owned by the calling User
|
|
766
|
+
* and to be in the PREPARING or the RUNNING state.
|
|
767
|
+
*
|
|
527
768
|
* @generated from protobuf service octelium.api.main.cordium.v1.WorkspaceService
|
|
528
769
|
*/
|
|
529
770
|
export interface IWorkspaceServiceClient {
|
|
530
771
|
/**
|
|
772
|
+
* CreateTerminal creates a new interactive terminal (i.e. a PTY-backed
|
|
773
|
+
* shell) inside a Workspace and returns its ID.
|
|
774
|
+
*
|
|
531
775
|
* @generated from protobuf rpc: CreateTerminal
|
|
532
776
|
*/
|
|
533
777
|
createTerminal(input: CreateTerminalRequest, options?: RpcOptions): UnaryCall<CreateTerminalRequest, CreateTerminalResponse>;
|
|
534
778
|
/**
|
|
779
|
+
* RemoveTerminal terminates a terminal.
|
|
780
|
+
*
|
|
535
781
|
* @generated from protobuf rpc: RemoveTerminal
|
|
536
782
|
*/
|
|
537
783
|
removeTerminal(input: RemoveTerminalRequest, options?: RpcOptions): UnaryCall<RemoveTerminalRequest, RemoveTerminalResponse>;
|
|
538
784
|
/**
|
|
785
|
+
* ListTerminal lists the currently open terminals of a Workspace.
|
|
786
|
+
*
|
|
539
787
|
* @generated from protobuf rpc: ListTerminal
|
|
540
788
|
*/
|
|
541
789
|
listTerminal(input: ListTerminalRequest, options?: RpcOptions): UnaryCall<ListTerminalRequest, ListTerminalResponse>;
|
|
542
790
|
/**
|
|
791
|
+
* WriteTerminalData writes data (i.e. stdin) to a terminal.
|
|
792
|
+
*
|
|
543
793
|
* @generated from protobuf rpc: WriteTerminalData
|
|
544
794
|
*/
|
|
545
795
|
writeTerminalData(input: WriteTerminalDataRequest, options?: RpcOptions): UnaryCall<WriteTerminalDataRequest, WriteTerminalDataResponse>;
|
|
546
796
|
/**
|
|
797
|
+
* SetTerminalWindowSize resizes a terminal's window.
|
|
798
|
+
*
|
|
547
799
|
* @generated from protobuf rpc: SetTerminalWindowSize
|
|
548
800
|
*/
|
|
549
801
|
setTerminalWindowSize(input: SetTerminalWindowSizeRequest, options?: RpcOptions): UnaryCall<SetTerminalWindowSizeRequest, SetTerminalWindowSizeResponse>;
|
|
550
802
|
/**
|
|
803
|
+
* ListenTerminal opens a server-side stream of a terminal's output. Multiple
|
|
804
|
+
* listeners can be attached to the same terminal at the same time.
|
|
805
|
+
*
|
|
551
806
|
* @generated from protobuf rpc: ListenTerminal
|
|
552
807
|
*/
|
|
553
808
|
listenTerminal(input: ListenTerminalRequest, options?: RpcOptions): ServerStreamingCall<ListenTerminalRequest, ListenTerminalResponse>;
|
|
554
809
|
/**
|
|
810
|
+
* ListenLog opens a server-side stream of a Workspace's initialization logs
|
|
811
|
+
* (i.e. the repository cloning, image pulling, image building and the
|
|
812
|
+
* lifecycle tasks output).
|
|
813
|
+
*
|
|
555
814
|
* @generated from protobuf rpc: ListenLog
|
|
556
815
|
*/
|
|
557
816
|
listenLog(input: ListenLogRequest, options?: RpcOptions): ServerStreamingCall<ListenLogRequest, ListenLogResponse>;
|
|
558
817
|
/**
|
|
818
|
+
* Exec runs a one-off command inside a Workspace over a bidirectional
|
|
819
|
+
* stream. The first client message must be a `request` message. The
|
|
820
|
+
* subsequent client messages carry the command's stdin or a kill signal
|
|
821
|
+
* while the server messages carry the command's stdout, stderr and its
|
|
822
|
+
* eventual exit code.
|
|
823
|
+
*
|
|
559
824
|
* @generated from protobuf rpc: Exec
|
|
560
825
|
*/
|
|
561
826
|
exec(options?: RpcOptions): DuplexStreamingCall<ExecRequest, ExecResponse>;
|
|
562
827
|
}
|
|
563
828
|
/**
|
|
829
|
+
* WorkspaceService is the API that operates inside a running Workspace. It
|
|
830
|
+
* provides interactive terminals, command execution and the initialization
|
|
831
|
+
* logs. Every method requires the Workspace to be owned by the calling User
|
|
832
|
+
* and to be in the PREPARING or the RUNNING state.
|
|
833
|
+
*
|
|
564
834
|
* @generated from protobuf service octelium.api.main.cordium.v1.WorkspaceService
|
|
565
835
|
*/
|
|
566
836
|
export declare class WorkspaceServiceClient implements IWorkspaceServiceClient, ServiceInfo {
|
|
@@ -572,39 +842,67 @@ export declare class WorkspaceServiceClient implements IWorkspaceServiceClient,
|
|
|
572
842
|
};
|
|
573
843
|
constructor(_transport: RpcTransport);
|
|
574
844
|
/**
|
|
845
|
+
* CreateTerminal creates a new interactive terminal (i.e. a PTY-backed
|
|
846
|
+
* shell) inside a Workspace and returns its ID.
|
|
847
|
+
*
|
|
575
848
|
* @generated from protobuf rpc: CreateTerminal
|
|
576
849
|
*/
|
|
577
850
|
createTerminal(input: CreateTerminalRequest, options?: RpcOptions): UnaryCall<CreateTerminalRequest, CreateTerminalResponse>;
|
|
578
851
|
/**
|
|
852
|
+
* RemoveTerminal terminates a terminal.
|
|
853
|
+
*
|
|
579
854
|
* @generated from protobuf rpc: RemoveTerminal
|
|
580
855
|
*/
|
|
581
856
|
removeTerminal(input: RemoveTerminalRequest, options?: RpcOptions): UnaryCall<RemoveTerminalRequest, RemoveTerminalResponse>;
|
|
582
857
|
/**
|
|
858
|
+
* ListTerminal lists the currently open terminals of a Workspace.
|
|
859
|
+
*
|
|
583
860
|
* @generated from protobuf rpc: ListTerminal
|
|
584
861
|
*/
|
|
585
862
|
listTerminal(input: ListTerminalRequest, options?: RpcOptions): UnaryCall<ListTerminalRequest, ListTerminalResponse>;
|
|
586
863
|
/**
|
|
864
|
+
* WriteTerminalData writes data (i.e. stdin) to a terminal.
|
|
865
|
+
*
|
|
587
866
|
* @generated from protobuf rpc: WriteTerminalData
|
|
588
867
|
*/
|
|
589
868
|
writeTerminalData(input: WriteTerminalDataRequest, options?: RpcOptions): UnaryCall<WriteTerminalDataRequest, WriteTerminalDataResponse>;
|
|
590
869
|
/**
|
|
870
|
+
* SetTerminalWindowSize resizes a terminal's window.
|
|
871
|
+
*
|
|
591
872
|
* @generated from protobuf rpc: SetTerminalWindowSize
|
|
592
873
|
*/
|
|
593
874
|
setTerminalWindowSize(input: SetTerminalWindowSizeRequest, options?: RpcOptions): UnaryCall<SetTerminalWindowSizeRequest, SetTerminalWindowSizeResponse>;
|
|
594
875
|
/**
|
|
876
|
+
* ListenTerminal opens a server-side stream of a terminal's output. Multiple
|
|
877
|
+
* listeners can be attached to the same terminal at the same time.
|
|
878
|
+
*
|
|
595
879
|
* @generated from protobuf rpc: ListenTerminal
|
|
596
880
|
*/
|
|
597
881
|
listenTerminal(input: ListenTerminalRequest, options?: RpcOptions): ServerStreamingCall<ListenTerminalRequest, ListenTerminalResponse>;
|
|
598
882
|
/**
|
|
883
|
+
* ListenLog opens a server-side stream of a Workspace's initialization logs
|
|
884
|
+
* (i.e. the repository cloning, image pulling, image building and the
|
|
885
|
+
* lifecycle tasks output).
|
|
886
|
+
*
|
|
599
887
|
* @generated from protobuf rpc: ListenLog
|
|
600
888
|
*/
|
|
601
889
|
listenLog(input: ListenLogRequest, options?: RpcOptions): ServerStreamingCall<ListenLogRequest, ListenLogResponse>;
|
|
602
890
|
/**
|
|
891
|
+
* Exec runs a one-off command inside a Workspace over a bidirectional
|
|
892
|
+
* stream. The first client message must be a `request` message. The
|
|
893
|
+
* subsequent client messages carry the command's stdin or a kill signal
|
|
894
|
+
* while the server messages carry the command's stdout, stderr and its
|
|
895
|
+
* eventual exit code.
|
|
896
|
+
*
|
|
603
897
|
* @generated from protobuf rpc: Exec
|
|
604
898
|
*/
|
|
605
899
|
exec(options?: RpcOptions): DuplexStreamingCall<ExecRequest, ExecResponse>;
|
|
606
900
|
}
|
|
607
901
|
/**
|
|
902
|
+
* ManagementService is the administrative API of a Cordium Cluster. It is used
|
|
903
|
+
* by the Cluster administrators (e.g. via `cordium man`) to read and update
|
|
904
|
+
* the Cluster-wide configuration.
|
|
905
|
+
*
|
|
608
906
|
* @generated from protobuf service octelium.api.main.cordium.v1.ManagementService
|
|
609
907
|
*/
|
|
610
908
|
export interface IManagementServiceClient {
|
|
@@ -615,13 +913,17 @@ export interface IManagementServiceClient {
|
|
|
615
913
|
*/
|
|
616
914
|
getClusterConfig(input: GetClusterConfigRequest, options?: RpcOptions): UnaryCall<GetClusterConfigRequest, ClusterConfig>;
|
|
617
915
|
/**
|
|
618
|
-
*
|
|
916
|
+
* UpdateClusterConfig updates the Cluster Configuration.
|
|
619
917
|
*
|
|
620
918
|
* @generated from protobuf rpc: UpdateClusterConfig
|
|
621
919
|
*/
|
|
622
920
|
updateClusterConfig(input: ClusterConfig, options?: RpcOptions): UnaryCall<ClusterConfig, ClusterConfig>;
|
|
623
921
|
}
|
|
624
922
|
/**
|
|
923
|
+
* ManagementService is the administrative API of a Cordium Cluster. It is used
|
|
924
|
+
* by the Cluster administrators (e.g. via `cordium man`) to read and update
|
|
925
|
+
* the Cluster-wide configuration.
|
|
926
|
+
*
|
|
625
927
|
* @generated from protobuf service octelium.api.main.cordium.v1.ManagementService
|
|
626
928
|
*/
|
|
627
929
|
export declare class ManagementServiceClient implements IManagementServiceClient, ServiceInfo {
|
|
@@ -639,7 +941,7 @@ export declare class ManagementServiceClient implements IManagementServiceClient
|
|
|
639
941
|
*/
|
|
640
942
|
getClusterConfig(input: GetClusterConfigRequest, options?: RpcOptions): UnaryCall<GetClusterConfigRequest, ClusterConfig>;
|
|
641
943
|
/**
|
|
642
|
-
*
|
|
944
|
+
* UpdateClusterConfig updates the Cluster Configuration.
|
|
643
945
|
*
|
|
644
946
|
* @generated from protobuf rpc: UpdateClusterConfig
|
|
645
947
|
*/
|