Skip to content

[content-service-api] add new snapshot initializer #9808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/content-service-api/go/blobs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/content-service-api/go/blobs_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/content-service-api/go/content.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/content-service-api/go/content_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/content-service-api/go/headless-log.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/content-service-api/go/headless-log_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/content-service-api/go/ideplugin.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/content-service-api/go/ideplugin_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

370 changes: 229 additions & 141 deletions components/content-service-api/go/initializer.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/content-service-api/go/workspace.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/content-service-api/go/workspace_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions components/content-service-api/initializer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message WorkspaceInitializer {
CompositeInitializer composite = 5;
FileDownloadInitializer download = 6;
FromBackupInitializer backup = 7;
FromVolumeSnapshotInitializer volume_snapshot = 8;
}
}

Expand Down Expand Up @@ -126,6 +127,11 @@ message FromBackupInitializer {
string checkout_location = 1;
}

// FromVolumeSnapshotInitializer initializes content when workspace is created from volume snapshot
message FromVolumeSnapshotInitializer {
string checkout_location = 1;
}

// GitStatus describes the current Git working copy status, akin to a combination of "git status" and "git branch"
message GitStatus {
// branch is branch we're currently on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export class WorkspaceInitializer extends jspb.Message {
getBackup(): FromBackupInitializer | undefined;
setBackup(value?: FromBackupInitializer): WorkspaceInitializer;

hasVolumeSnapshot(): boolean;
clearVolumeSnapshot(): void;
getVolumeSnapshot(): FromVolumeSnapshotInitializer | undefined;
setVolumeSnapshot(value?: FromVolumeSnapshotInitializer): WorkspaceInitializer;

getSpecCase(): WorkspaceInitializer.SpecCase;

serializeBinary(): Uint8Array;
Expand All @@ -70,6 +75,7 @@ export namespace WorkspaceInitializer {
composite?: CompositeInitializer.AsObject,
download?: FileDownloadInitializer.AsObject,
backup?: FromBackupInitializer.AsObject,
volumeSnapshot?: FromVolumeSnapshotInitializer.AsObject,
}

export enum SpecCase {
Expand All @@ -81,6 +87,7 @@ export namespace WorkspaceInitializer {
COMPOSITE = 5,
DOWNLOAD = 6,
BACKUP = 7,
VOLUME_SNAPSHOT = 8,
}

}
Expand Down Expand Up @@ -317,6 +324,26 @@ export namespace FromBackupInitializer {
}
}

export class FromVolumeSnapshotInitializer extends jspb.Message {
getCheckoutLocation(): string;
setCheckoutLocation(value: string): FromVolumeSnapshotInitializer;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FromVolumeSnapshotInitializer.AsObject;
static toObject(includeInstance: boolean, msg: FromVolumeSnapshotInitializer): FromVolumeSnapshotInitializer.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: FromVolumeSnapshotInitializer, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FromVolumeSnapshotInitializer;
static deserializeBinaryFromReader(message: FromVolumeSnapshotInitializer, reader: jspb.BinaryReader): FromVolumeSnapshotInitializer;
}

export namespace FromVolumeSnapshotInitializer {
export type AsObject = {
checkoutLocation: string,
}
}

export class GitStatus extends jspb.Message {
getBranch(): string;
setBranch(value: string): GitStatus;
Expand Down
Loading