Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Jul 2, 2021
1 parent dc03d53 commit 23a6b88
Show file tree
Hide file tree
Showing 24 changed files with 652 additions and 567 deletions.

Large diffs are not rendered by default.

145 changes: 145 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.

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ package contentservice;

option go_package = "github.com/gitpod-io/gitpod/content-service/api";

service LogService {
service HeadlessLogService {
// LogDownloadURL provides a URL from where the content of a workspace can be downloaded from
rpc LogDownloadURL(LogDownloadURLRequest) returns (LogDownloadURLResponse) {};

// ListPrebuildLogs returns a list of taskIds for the specified workspace instance
rpc ListPrebuildLogs(ListPrebuildLogsRequest) returns (ListPrebuildLogsResponse) {};
// ListLogs returns a list of taskIds for the specified workspace instance
rpc ListLogs(ListLogsRequest) returns (ListLogsResponse) {};
}

message LogDownloadURLRequest {
Expand All @@ -26,11 +26,11 @@ message LogDownloadURLResponse {
string url = 1;
}

message ListPrebuildLogsRequest {
message ListLogsRequest {
string owner_id = 1;
string workspace_id = 2;
string instance_id = 3;
}
message ListPrebuildLogsResponse {
message ListLogsResponse {
repeated string taskId = 1;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// package: contentservice
// file: headless-log.proto

/* tslint:disable */
/* eslint-disable */

import * as grpc from "@grpc/grpc-js";
import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
import * as headless_log_pb from "./headless-log_pb";

interface IHeadlessLogServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
logDownloadURL: IHeadlessLogServiceService_ILogDownloadURL;
listLogs: IHeadlessLogServiceService_IListLogs;
}

interface IHeadlessLogServiceService_ILogDownloadURL extends grpc.MethodDefinition<headless_log_pb.LogDownloadURLRequest, headless_log_pb.LogDownloadURLResponse> {
path: "/contentservice.HeadlessLogService/LogDownloadURL";
requestStream: false;
responseStream: false;
requestSerialize: grpc.serialize<headless_log_pb.LogDownloadURLRequest>;
requestDeserialize: grpc.deserialize<headless_log_pb.LogDownloadURLRequest>;
responseSerialize: grpc.serialize<headless_log_pb.LogDownloadURLResponse>;
responseDeserialize: grpc.deserialize<headless_log_pb.LogDownloadURLResponse>;
}
interface IHeadlessLogServiceService_IListLogs extends grpc.MethodDefinition<headless_log_pb.ListLogsRequest, headless_log_pb.ListLogsResponse> {
path: "/contentservice.HeadlessLogService/ListLogs";
requestStream: false;
responseStream: false;
requestSerialize: grpc.serialize<headless_log_pb.ListLogsRequest>;
requestDeserialize: grpc.deserialize<headless_log_pb.ListLogsRequest>;
responseSerialize: grpc.serialize<headless_log_pb.ListLogsResponse>;
responseDeserialize: grpc.deserialize<headless_log_pb.ListLogsResponse>;
}

export const HeadlessLogServiceService: IHeadlessLogServiceService;

export interface IHeadlessLogServiceServer extends grpc.UntypedServiceImplementation {
logDownloadURL: grpc.handleUnaryCall<headless_log_pb.LogDownloadURLRequest, headless_log_pb.LogDownloadURLResponse>;
listLogs: grpc.handleUnaryCall<headless_log_pb.ListLogsRequest, headless_log_pb.ListLogsResponse>;
}

export interface IHeadlessLogServiceClient {
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
}

export class HeadlessLogServiceClient extends grpc.Client implements IHeadlessLogServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
public listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
public listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
public listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
}
Loading

0 comments on commit 23a6b88

Please sign in to comment.