Skip to content

Commit d69a9af

Browse files
committed
[content-service-api] add new snapshot initializer
1 parent 6205d22 commit d69a9af

14 files changed

+495
-156
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: 229 additions & 141 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+
FromVolumeSnapshotInitializer volume_snapshot = 8;
1718
}
1819
}
1920

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

130+
// FromVolumeSnapshotInitializer initializes content when workspace is created from volume snapshot
131+
message FromVolumeSnapshotInitializer {
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+
hasVolumeSnapshot(): boolean;
53+
clearVolumeSnapshot(): void;
54+
getVolumeSnapshot(): FromVolumeSnapshotInitializer | undefined;
55+
setVolumeSnapshot(value?: FromVolumeSnapshotInitializer): 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+
volumeSnapshot?: FromVolumeSnapshotInitializer.AsObject,
7379
}
7480

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

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

327+
export class FromVolumeSnapshotInitializer extends jspb.Message {
328+
getCheckoutLocation(): string;
329+
setCheckoutLocation(value: string): FromVolumeSnapshotInitializer;
330+
331+
serializeBinary(): Uint8Array;
332+
toObject(includeInstance?: boolean): FromVolumeSnapshotInitializer.AsObject;
333+
static toObject(includeInstance: boolean, msg: FromVolumeSnapshotInitializer): FromVolumeSnapshotInitializer.AsObject;
334+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
335+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
336+
static serializeBinaryToWriter(message: FromVolumeSnapshotInitializer, writer: jspb.BinaryWriter): void;
337+
static deserializeBinary(bytes: Uint8Array): FromVolumeSnapshotInitializer;
338+
static deserializeBinaryFromReader(message: FromVolumeSnapshotInitializer, reader: jspb.BinaryReader): FromVolumeSnapshotInitializer;
339+
}
340+
341+
export namespace FromVolumeSnapshotInitializer {
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)