Skip to content
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

chore: extracting ide-service from server (ide-service part) #15118

Merged
merged 1 commit into from
Dec 2, 2022
Merged
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
403 changes: 377 additions & 26 deletions components/ide-service-api/go/ide.pb.go

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions components/ide-service-api/go/ide_grpc.pb.go

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

31 changes: 31 additions & 0 deletions components/ide-service-api/ide.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,41 @@ option java_package = "io.gitpod.ideservice.api";

service IDEService {
rpc GetConfig(GetConfigRequest) returns (GetConfigResponse) {}
rpc ResolveWorkspaceConfig(ResolveWorkspaceConfigRequest) returns (ResolveWorkspaceConfigResponse) {}
}

message GetConfigRequest {}

message GetConfigResponse {
string content = 1;
}

// TODO: import type from other packages
// EnvironmentVariable describes an env var as key/value pair
message EnvironmentVariable {
string name = 1;
string value = 2;
}

enum WorkspaceType {
REGULAR = 0;
PREBUILD = 1;
}


message ResolveWorkspaceConfigRequest {
WorkspaceType type = 1;
string context = 2;
string ide_settings = 3;
string workspace_config = 4;
}

message ResolveWorkspaceConfigResponse {
repeated EnvironmentVariable envvars = 1;
string supervisor_image = 2;
string web_image = 3;
repeated string ide_image_layers = 4;
// control whether to configure default IDE for a user
string referer_ide = 5;
string tasks = 6;
}
Loading