Skip to content

Commit 2463f1c

Browse files
committed
snapshot volume wip
1 parent f40d0cf commit 2463f1c

File tree

84 files changed

+1920
-679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1920
-679
lines changed

components/content-service-api/go/blobs.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/blobs_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/content.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/content_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/headless-log.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/headless-log_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/ideplugin.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/ideplugin_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/initializer.pb.go

Lines changed: 228 additions & 140 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/workspace.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/workspace_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/initializer.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ message WorkspaceInitializer {
1414
CompositeInitializer composite = 5;
1515
FileDownloadInitializer download = 6;
1616
FromBackupInitializer backup = 7;
17+
FromSnapshotVolumeInitializer snapshot_volume = 8;
1718
}
1819
}
1920

@@ -126,6 +127,11 @@ message FromBackupInitializer {
126127
string checkout_location = 1;
127128
}
128129

130+
// FromSnapshotVolumeInitializer initializes content when workspace is created from snapshot volume
131+
message FromSnapshotVolumeInitializer {
132+
string checkout_location = 1;
133+
}
134+
129135
// GitStatus describes the current Git working copy status, akin to a combination of "git status" and "git branch"
130136
message GitStatus {
131137
// branch is branch we're currently on

components/content-service-api/typescript/src/initializer_pb.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export class WorkspaceInitializer extends jspb.Message {
4949
getBackup(): FromBackupInitializer | undefined;
5050
setBackup(value?: FromBackupInitializer): WorkspaceInitializer;
5151

52+
hasSnapshotVolume(): boolean;
53+
clearSnapshotVolume(): void;
54+
getSnapshotVolume(): FromSnapshotVolumeInitializer | undefined;
55+
setSnapshotVolume(value?: FromSnapshotVolumeInitializer): WorkspaceInitializer;
56+
5257
getSpecCase(): WorkspaceInitializer.SpecCase;
5358

5459
serializeBinary(): Uint8Array;
@@ -70,6 +75,7 @@ export namespace WorkspaceInitializer {
7075
composite?: CompositeInitializer.AsObject,
7176
download?: FileDownloadInitializer.AsObject,
7277
backup?: FromBackupInitializer.AsObject,
78+
snapshotVolume?: FromSnapshotVolumeInitializer.AsObject,
7379
}
7480

7581
export enum SpecCase {
@@ -81,6 +87,7 @@ export namespace WorkspaceInitializer {
8187
COMPOSITE = 5,
8288
DOWNLOAD = 6,
8389
BACKUP = 7,
90+
SNAPSHOT_VOLUME = 8,
8491
}
8592

8693
}
@@ -317,6 +324,26 @@ export namespace FromBackupInitializer {
317324
}
318325
}
319326

327+
export class FromSnapshotVolumeInitializer extends jspb.Message {
328+
getCheckoutLocation(): string;
329+
setCheckoutLocation(value: string): FromSnapshotVolumeInitializer;
330+
331+
serializeBinary(): Uint8Array;
332+
toObject(includeInstance?: boolean): FromSnapshotVolumeInitializer.AsObject;
333+
static toObject(includeInstance: boolean, msg: FromSnapshotVolumeInitializer): FromSnapshotVolumeInitializer.AsObject;
334+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
335+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
336+
static serializeBinaryToWriter(message: FromSnapshotVolumeInitializer, writer: jspb.BinaryWriter): void;
337+
static deserializeBinary(bytes: Uint8Array): FromSnapshotVolumeInitializer;
338+
static deserializeBinaryFromReader(message: FromSnapshotVolumeInitializer, reader: jspb.BinaryReader): FromSnapshotVolumeInitializer;
339+
}
340+
341+
export namespace FromSnapshotVolumeInitializer {
342+
export type AsObject = {
343+
checkoutLocation: string,
344+
}
345+
}
346+
320347
export class GitStatus extends jspb.Message {
321348
getBranch(): string;
322349
setBranch(value: string): GitStatus;

0 commit comments

Comments
 (0)