@replit/protocol 0.4.27 → 0.4.29
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/dist/api/chateau/resources.client.d.ts +51 -0
- package/dist/api/chateau/resources.client.js +34 -0
- package/dist/api/chateau/resources.d.ts +337 -0
- package/dist/api/chateau/resources.js +734 -0
- package/dist/api/features/features.d.ts +0 -28
- package/dist/api/features/features.js +0 -49
- package/dist/api/jetplane/repl/repl.client.d.ts +199 -0
- package/dist/api/jetplane/repl/repl.client.js +120 -0
- package/dist/api/jetplane/repl/repl.d.ts +1313 -0
- package/dist/api/jetplane/repl/repl.js +2295 -0
- package/dist/api/lore/lore.d.ts +0 -27
- package/dist/api/lore/lore.js +0 -57
- package/dist/api/lore/service.client.d.ts +156 -18
- package/dist/api/lore/service.client.js +113 -24
- package/dist/api/lore/service.d.ts +900 -5
- package/dist/api/lore/service.js +2094 -416
- package/dist/api/repl/repl.d.ts +22 -0
- package/dist/api/repl/repl.js +26 -2
- package/dist/api/token/token.d.ts +28 -3
- package/dist/api/token/token.js +29 -1
- package/dist/google/protobuf/field_mask.d.ts +16 -18
- package/dist/google/protobuf/struct.d.ts +33 -22
- package/dist/google/protobuf/struct.js +8 -3
- package/dist/google/protobuf/timestamp.d.ts +9 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/iotester/index.d.ts +10674 -2035
- package/iotester/index.js +41039 -12022
- package/main/index.d.ts +10674 -2035
- package/main/index.js +41039 -12022
- package/package.json +1 -1
|
@@ -11,14 +11,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface Boosted {
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Deprecated: Viktor is no longer evaluated; the feature was removed.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
* @generated from protobuf message replit.goval.api.features.Viktor
|
|
19
|
-
*/
|
|
20
|
-
export interface Viktor {
|
|
21
|
-
}
|
|
22
14
|
/**
|
|
23
15
|
* Deprecated: Notary is now always enabled; this feature is no longer
|
|
24
16
|
* evaluated.
|
|
@@ -44,15 +36,6 @@ export interface Feature {
|
|
|
44
36
|
* @generated from protobuf field: replit.goval.api.features.Boosted boosted = 2
|
|
45
37
|
*/
|
|
46
38
|
boosted: Boosted;
|
|
47
|
-
} | {
|
|
48
|
-
oneofKind: "viktor";
|
|
49
|
-
/**
|
|
50
|
-
* Deprecated: Viktor is no longer evaluated; the feature was removed.
|
|
51
|
-
*
|
|
52
|
-
* @deprecated
|
|
53
|
-
* @generated from protobuf field: replit.goval.api.features.Viktor viktor = 5 [deprecated = true]
|
|
54
|
-
*/
|
|
55
|
-
viktor: Viktor;
|
|
56
39
|
} | {
|
|
57
40
|
oneofKind: "notary";
|
|
58
41
|
/**
|
|
@@ -85,17 +68,6 @@ declare class Boosted$Type extends MessageType<Boosted> {
|
|
|
85
68
|
* @generated MessageType for protobuf message replit.goval.api.features.Boosted
|
|
86
69
|
*/
|
|
87
70
|
export declare const Boosted: Boosted$Type;
|
|
88
|
-
declare class Viktor$Type extends MessageType<Viktor> {
|
|
89
|
-
constructor();
|
|
90
|
-
create(value?: PartialMessage<Viktor>): Viktor;
|
|
91
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Viktor): Viktor;
|
|
92
|
-
internalBinaryWrite(message: Viktor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated
|
|
96
|
-
* @generated MessageType for protobuf message replit.goval.api.features.Viktor
|
|
97
|
-
*/
|
|
98
|
-
export declare const Viktor: Viktor$Type;
|
|
99
71
|
declare class Notary$Type extends MessageType<Notary> {
|
|
100
72
|
constructor();
|
|
101
73
|
create(value?: PartialMessage<Notary>): Notary;
|
|
@@ -44,45 +44,6 @@ class Boosted$Type extends MessageType {
|
|
|
44
44
|
*/
|
|
45
45
|
export const Boosted = new Boosted$Type();
|
|
46
46
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
47
|
-
class Viktor$Type extends MessageType {
|
|
48
|
-
constructor() {
|
|
49
|
-
super("replit.goval.api.features.Viktor", []);
|
|
50
|
-
}
|
|
51
|
-
create(value) {
|
|
52
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
53
|
-
if (value !== undefined)
|
|
54
|
-
reflectionMergePartial(this, message, value);
|
|
55
|
-
return message;
|
|
56
|
-
}
|
|
57
|
-
internalBinaryRead(reader, length, options, target) {
|
|
58
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
59
|
-
while (reader.pos < end) {
|
|
60
|
-
let [fieldNo, wireType] = reader.tag();
|
|
61
|
-
switch (fieldNo) {
|
|
62
|
-
default:
|
|
63
|
-
let u = options.readUnknownField;
|
|
64
|
-
if (u === "throw")
|
|
65
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
66
|
-
let d = reader.skip(wireType);
|
|
67
|
-
if (u !== false)
|
|
68
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return message;
|
|
72
|
-
}
|
|
73
|
-
internalBinaryWrite(message, writer, options) {
|
|
74
|
-
let u = options.writeUnknownFields;
|
|
75
|
-
if (u !== false)
|
|
76
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
77
|
-
return writer;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated
|
|
82
|
-
* @generated MessageType for protobuf message replit.goval.api.features.Viktor
|
|
83
|
-
*/
|
|
84
|
-
export const Viktor = new Viktor$Type();
|
|
85
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
86
47
|
class Notary$Type extends MessageType {
|
|
87
48
|
constructor() {
|
|
88
49
|
super("replit.goval.api.features.Notary", []);
|
|
@@ -126,7 +87,6 @@ class Feature$Type extends MessageType {
|
|
|
126
87
|
constructor() {
|
|
127
88
|
super("replit.goval.api.features.Feature", [
|
|
128
89
|
{ no: 2, name: "boosted", kind: "message", oneof: "feature", T: () => Boosted },
|
|
129
|
-
{ no: 5, name: "viktor", kind: "message", oneof: "feature", T: () => Viktor },
|
|
130
90
|
{ no: 6, name: "notary", kind: "message", oneof: "feature", T: () => Notary },
|
|
131
91
|
{ no: 3, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
132
92
|
]);
|
|
@@ -150,12 +110,6 @@ class Feature$Type extends MessageType {
|
|
|
150
110
|
boosted: Boosted.internalBinaryRead(reader, reader.uint32(), options, message.feature.boosted)
|
|
151
111
|
};
|
|
152
112
|
break;
|
|
153
|
-
case /* replit.goval.api.features.Viktor viktor = 5 [deprecated = true] */ 5:
|
|
154
|
-
message.feature = {
|
|
155
|
-
oneofKind: "viktor",
|
|
156
|
-
viktor: Viktor.internalBinaryRead(reader, reader.uint32(), options, message.feature.viktor)
|
|
157
|
-
};
|
|
158
|
-
break;
|
|
159
113
|
case /* replit.goval.api.features.Notary notary = 6 [deprecated = true] */ 6:
|
|
160
114
|
message.feature = {
|
|
161
115
|
oneofKind: "notary",
|
|
@@ -183,9 +137,6 @@ class Feature$Type extends MessageType {
|
|
|
183
137
|
/* bool required = 3; */
|
|
184
138
|
if (message.required !== false)
|
|
185
139
|
writer.tag(3, WireType.Varint).bool(message.required);
|
|
186
|
-
/* replit.goval.api.features.Viktor viktor = 5 [deprecated = true]; */
|
|
187
|
-
if (message.feature.oneofKind === "viktor")
|
|
188
|
-
Viktor.internalBinaryWrite(message.feature.viktor, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
189
140
|
/* replit.goval.api.features.Notary notary = 6 [deprecated = true]; */
|
|
190
141
|
if (message.feature.oneofKind === "notary")
|
|
191
142
|
Notary.internalBinaryWrite(message.feature.notary, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
2
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
import type { RemoveTombstoneResponse } from "./repl.js";
|
|
4
|
+
import type { RemoveTombstoneRequest } from "./repl.js";
|
|
5
|
+
import type { AddTombstoneResponse } from "./repl.js";
|
|
6
|
+
import type { AddTombstoneRequest } from "./repl.js";
|
|
7
|
+
import type { EvictReplResponse } from "./repl.js";
|
|
8
|
+
import type { EvictReplRequest } from "./repl.js";
|
|
9
|
+
import type { DeleteReplResponse } from "./repl.js";
|
|
10
|
+
import type { DeleteReplRequest } from "./repl.js";
|
|
11
|
+
import type { GetReplResponse } from "./repl.js";
|
|
12
|
+
import type { GetReplRequest } from "./repl.js";
|
|
13
|
+
import type { DeleteResourceGroupResponse } from "./repl.js";
|
|
14
|
+
import type { DeleteResourceGroupRequest } from "./repl.js";
|
|
15
|
+
import type { CreateResourceGroupResponse } from "./repl.js";
|
|
16
|
+
import type { CreateResourceGroupRequest } from "./repl.js";
|
|
17
|
+
import type { CreateReplResponse } from "./repl.js";
|
|
18
|
+
import type { CreateReplRequest } from "./repl.js";
|
|
19
|
+
import type { CreateSandboxResponse } from "./repl.js";
|
|
20
|
+
import type { CreateSandboxRequest } from "./repl.js";
|
|
21
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
22
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
23
|
+
/**
|
|
24
|
+
* ReplService manages the lifecycle of repls and their resources within a
|
|
25
|
+
* Jetplane cluster. Called by lore for repl creation, fork, and deletion.
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf service replit.goval.api.jetplane.repl.ReplService
|
|
28
|
+
*/
|
|
29
|
+
export interface IReplServiceClient {
|
|
30
|
+
/**
|
|
31
|
+
* CreateSandbox creates a Jetplane-authoritative sandbox in an existing
|
|
32
|
+
* resource group. It is the successor to CreateRepl for new callers.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
35
|
+
*/
|
|
36
|
+
createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* CreateRepl registers a new repl and creates its margarine manifests.
|
|
39
|
+
* The source field determines how disks are initialized (empty, forked
|
|
40
|
+
* from another repl, or forked from a base disk image).
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf rpc: CreateRepl
|
|
43
|
+
*/
|
|
44
|
+
createRepl(input: CreateReplRequest, options?: RpcOptions): UnaryCall<CreateReplRequest, CreateReplResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* CreateResourceGroup registers an empty resource group.
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf rpc: CreateResourceGroup
|
|
49
|
+
*/
|
|
50
|
+
createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* DeleteResourceGroup soft-deletes a resource group and all its repls.
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
55
|
+
*/
|
|
56
|
+
deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* GetRepl returns a repl and all its associated resource metadata.
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf rpc: GetRepl
|
|
61
|
+
*/
|
|
62
|
+
getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
|
|
65
|
+
* and database metadata remain available until a separate cleanup run
|
|
66
|
+
* removes them after its configured retention period. After this RPC returns
|
|
67
|
+
* the repl is no longer visible to GetRepl or other queries.
|
|
68
|
+
*
|
|
69
|
+
* Idempotency: returns OK when the repl is live or still represented by
|
|
70
|
+
* retained soft-deleted metadata. Returns NOT_FOUND when no row remains,
|
|
71
|
+
* including repls that were never registered or were permanently removed
|
|
72
|
+
* after the retention period.
|
|
73
|
+
*
|
|
74
|
+
* @generated from protobuf rpc: DeleteRepl
|
|
75
|
+
*/
|
|
76
|
+
deleteRepl(input: DeleteReplRequest, options?: RpcOptions): UnaryCall<DeleteReplRequest, DeleteReplResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* EvictRepl stops the currently running repl, if any, without tombstoning
|
|
79
|
+
* or soft-deleting Jetplane metadata. The repl can be placed again
|
|
80
|
+
* immediately by RuntimeService.PlaceRepl.
|
|
81
|
+
*
|
|
82
|
+
* @generated from protobuf rpc: EvictRepl
|
|
83
|
+
*/
|
|
84
|
+
evictRepl(input: EvictReplRequest, options?: RpcOptions): UnaryCall<EvictReplRequest, EvictReplResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* AddTombstone marks a repl as tombstoned, preventing it from being placed
|
|
87
|
+
* via RuntimeService.PlaceRepl until the tombstone expires (now + ttl).
|
|
88
|
+
* Also best-effort deletes the Kubernetes Repl CR to stop any running
|
|
89
|
+
* instance. Called by lore during transfer-out (before manifest copy) and
|
|
90
|
+
* during repl deletion. Idempotent: re-tombstoning an already-tombstoned
|
|
91
|
+
* repl updates the reason and expiration, and returns success. Returns
|
|
92
|
+
* NOT_FOUND if the repl does not exist or is already soft-deleted.
|
|
93
|
+
*
|
|
94
|
+
* @generated from protobuf rpc: AddTombstone
|
|
95
|
+
*/
|
|
96
|
+
addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* RemoveTombstone clears the tombstone on a repl, allowing it to be placed
|
|
99
|
+
* again via RuntimeService.PlaceRepl. Called by lore when a transfer fails
|
|
100
|
+
* after tombstoning, to restore the source repl. Idempotent: removing a
|
|
101
|
+
* tombstone from a non-tombstoned repl returns success. Returns NOT_FOUND
|
|
102
|
+
* if the repl does not exist or is already soft-deleted.
|
|
103
|
+
*
|
|
104
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
105
|
+
*/
|
|
106
|
+
removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* ReplService manages the lifecycle of repls and their resources within a
|
|
110
|
+
* Jetplane cluster. Called by lore for repl creation, fork, and deletion.
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf service replit.goval.api.jetplane.repl.ReplService
|
|
113
|
+
*/
|
|
114
|
+
export declare class ReplServiceClient implements IReplServiceClient, ServiceInfo {
|
|
115
|
+
private readonly _transport;
|
|
116
|
+
typeName: string;
|
|
117
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
118
|
+
options: {
|
|
119
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
120
|
+
};
|
|
121
|
+
constructor(_transport: RpcTransport);
|
|
122
|
+
/**
|
|
123
|
+
* CreateSandbox creates a Jetplane-authoritative sandbox in an existing
|
|
124
|
+
* resource group. It is the successor to CreateRepl for new callers.
|
|
125
|
+
*
|
|
126
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
127
|
+
*/
|
|
128
|
+
createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
|
|
129
|
+
/**
|
|
130
|
+
* CreateRepl registers a new repl and creates its margarine manifests.
|
|
131
|
+
* The source field determines how disks are initialized (empty, forked
|
|
132
|
+
* from another repl, or forked from a base disk image).
|
|
133
|
+
*
|
|
134
|
+
* @generated from protobuf rpc: CreateRepl
|
|
135
|
+
*/
|
|
136
|
+
createRepl(input: CreateReplRequest, options?: RpcOptions): UnaryCall<CreateReplRequest, CreateReplResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* CreateResourceGroup registers an empty resource group.
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf rpc: CreateResourceGroup
|
|
141
|
+
*/
|
|
142
|
+
createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* DeleteResourceGroup soft-deletes a resource group and all its repls.
|
|
145
|
+
*
|
|
146
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
147
|
+
*/
|
|
148
|
+
deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* GetRepl returns a repl and all its associated resource metadata.
|
|
151
|
+
*
|
|
152
|
+
* @generated from protobuf rpc: GetRepl
|
|
153
|
+
*/
|
|
154
|
+
getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
|
|
157
|
+
* and database metadata remain available until a separate cleanup run
|
|
158
|
+
* removes them after its configured retention period. After this RPC returns
|
|
159
|
+
* the repl is no longer visible to GetRepl or other queries.
|
|
160
|
+
*
|
|
161
|
+
* Idempotency: returns OK when the repl is live or still represented by
|
|
162
|
+
* retained soft-deleted metadata. Returns NOT_FOUND when no row remains,
|
|
163
|
+
* including repls that were never registered or were permanently removed
|
|
164
|
+
* after the retention period.
|
|
165
|
+
*
|
|
166
|
+
* @generated from protobuf rpc: DeleteRepl
|
|
167
|
+
*/
|
|
168
|
+
deleteRepl(input: DeleteReplRequest, options?: RpcOptions): UnaryCall<DeleteReplRequest, DeleteReplResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* EvictRepl stops the currently running repl, if any, without tombstoning
|
|
171
|
+
* or soft-deleting Jetplane metadata. The repl can be placed again
|
|
172
|
+
* immediately by RuntimeService.PlaceRepl.
|
|
173
|
+
*
|
|
174
|
+
* @generated from protobuf rpc: EvictRepl
|
|
175
|
+
*/
|
|
176
|
+
evictRepl(input: EvictReplRequest, options?: RpcOptions): UnaryCall<EvictReplRequest, EvictReplResponse>;
|
|
177
|
+
/**
|
|
178
|
+
* AddTombstone marks a repl as tombstoned, preventing it from being placed
|
|
179
|
+
* via RuntimeService.PlaceRepl until the tombstone expires (now + ttl).
|
|
180
|
+
* Also best-effort deletes the Kubernetes Repl CR to stop any running
|
|
181
|
+
* instance. Called by lore during transfer-out (before manifest copy) and
|
|
182
|
+
* during repl deletion. Idempotent: re-tombstoning an already-tombstoned
|
|
183
|
+
* repl updates the reason and expiration, and returns success. Returns
|
|
184
|
+
* NOT_FOUND if the repl does not exist or is already soft-deleted.
|
|
185
|
+
*
|
|
186
|
+
* @generated from protobuf rpc: AddTombstone
|
|
187
|
+
*/
|
|
188
|
+
addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* RemoveTombstone clears the tombstone on a repl, allowing it to be placed
|
|
191
|
+
* again via RuntimeService.PlaceRepl. Called by lore when a transfer fails
|
|
192
|
+
* after tombstoning, to restore the source repl. Idempotent: removing a
|
|
193
|
+
* tombstone from a non-tombstoned repl returns success. Returns NOT_FOUND
|
|
194
|
+
* if the repl does not exist or is already soft-deleted.
|
|
195
|
+
*
|
|
196
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
197
|
+
*/
|
|
198
|
+
removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
|
|
199
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ReplService } from "./repl.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
/**
|
|
4
|
+
* ReplService manages the lifecycle of repls and their resources within a
|
|
5
|
+
* Jetplane cluster. Called by lore for repl creation, fork, and deletion.
|
|
6
|
+
*
|
|
7
|
+
* @generated from protobuf service replit.goval.api.jetplane.repl.ReplService
|
|
8
|
+
*/
|
|
9
|
+
export class ReplServiceClient {
|
|
10
|
+
constructor(_transport) {
|
|
11
|
+
this._transport = _transport;
|
|
12
|
+
this.typeName = ReplService.typeName;
|
|
13
|
+
this.methods = ReplService.methods;
|
|
14
|
+
this.options = ReplService.options;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* CreateSandbox creates a Jetplane-authoritative sandbox in an existing
|
|
18
|
+
* resource group. It is the successor to CreateRepl for new callers.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
21
|
+
*/
|
|
22
|
+
createSandbox(input, options) {
|
|
23
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
24
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* CreateRepl registers a new repl and creates its margarine manifests.
|
|
28
|
+
* The source field determines how disks are initialized (empty, forked
|
|
29
|
+
* from another repl, or forked from a base disk image).
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: CreateRepl
|
|
32
|
+
*/
|
|
33
|
+
createRepl(input, options) {
|
|
34
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
35
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* CreateResourceGroup registers an empty resource group.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf rpc: CreateResourceGroup
|
|
41
|
+
*/
|
|
42
|
+
createResourceGroup(input, options) {
|
|
43
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
44
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* DeleteResourceGroup soft-deletes a resource group and all its repls.
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
50
|
+
*/
|
|
51
|
+
deleteResourceGroup(input, options) {
|
|
52
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
53
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* GetRepl returns a repl and all its associated resource metadata.
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf rpc: GetRepl
|
|
59
|
+
*/
|
|
60
|
+
getRepl(input, options) {
|
|
61
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
62
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
|
|
66
|
+
* and database metadata remain available until a separate cleanup run
|
|
67
|
+
* removes them after its configured retention period. After this RPC returns
|
|
68
|
+
* the repl is no longer visible to GetRepl or other queries.
|
|
69
|
+
*
|
|
70
|
+
* Idempotency: returns OK when the repl is live or still represented by
|
|
71
|
+
* retained soft-deleted metadata. Returns NOT_FOUND when no row remains,
|
|
72
|
+
* including repls that were never registered or were permanently removed
|
|
73
|
+
* after the retention period.
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf rpc: DeleteRepl
|
|
76
|
+
*/
|
|
77
|
+
deleteRepl(input, options) {
|
|
78
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
79
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* EvictRepl stops the currently running repl, if any, without tombstoning
|
|
83
|
+
* or soft-deleting Jetplane metadata. The repl can be placed again
|
|
84
|
+
* immediately by RuntimeService.PlaceRepl.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf rpc: EvictRepl
|
|
87
|
+
*/
|
|
88
|
+
evictRepl(input, options) {
|
|
89
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
90
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* AddTombstone marks a repl as tombstoned, preventing it from being placed
|
|
94
|
+
* via RuntimeService.PlaceRepl until the tombstone expires (now + ttl).
|
|
95
|
+
* Also best-effort deletes the Kubernetes Repl CR to stop any running
|
|
96
|
+
* instance. Called by lore during transfer-out (before manifest copy) and
|
|
97
|
+
* during repl deletion. Idempotent: re-tombstoning an already-tombstoned
|
|
98
|
+
* repl updates the reason and expiration, and returns success. Returns
|
|
99
|
+
* NOT_FOUND if the repl does not exist or is already soft-deleted.
|
|
100
|
+
*
|
|
101
|
+
* @generated from protobuf rpc: AddTombstone
|
|
102
|
+
*/
|
|
103
|
+
addTombstone(input, options) {
|
|
104
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
105
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* RemoveTombstone clears the tombstone on a repl, allowing it to be placed
|
|
109
|
+
* again via RuntimeService.PlaceRepl. Called by lore when a transfer fails
|
|
110
|
+
* after tombstoning, to restore the source repl. Idempotent: removing a
|
|
111
|
+
* tombstone from a non-tombstoned repl returns success. Returns NOT_FOUND
|
|
112
|
+
* if the repl does not exist or is already soft-deleted.
|
|
113
|
+
*
|
|
114
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
115
|
+
*/
|
|
116
|
+
removeTombstone(input, options) {
|
|
117
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
118
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
119
|
+
}
|
|
120
|
+
}
|