gitpod/components/public-api/go/experimental/v1/v1connect/ide_client.proxy.connect.go
Huiwen 7094f19ee8
Add collaborator role to organization (#19311)
* Update spicedb schema

* SpiceDB gen code

* [server] add collaborator

* Update papi

* Dashboard

* nit

* Complete TODOs

* server dataops pass teamId

* Add test cases for collaborator's PAT and cookie API fetch

* Add test case description

* remove unnecessary export

* Redirect to dashboard after join an org

* Hide settings for collaborator

* dataops join via oidc should be collaborator

* Fix test

* Goes back to /workspaces
2024-01-12 10:53:49 +02:00

51 lines
1.7 KiB
Go

// Copyright (c) 2024 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.
// Code generated by protoc-proxy-gen. DO NOT EDIT.
package v1connect
import (
context "context"
connect_go "github.com/bufbuild/connect-go"
v1 "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"
)
var _ IDEClientServiceHandler = (*ProxyIDEClientServiceHandler)(nil)
type ProxyIDEClientServiceHandler struct {
Client v1.IDEClientServiceClient
UnimplementedIDEClientServiceHandler
}
func (s *ProxyIDEClientServiceHandler) SendHeartbeat(ctx context.Context, req *connect_go.Request[v1.SendHeartbeatRequest]) (*connect_go.Response[v1.SendHeartbeatResponse], error) {
resp, err := s.Client.SendHeartbeat(ctx, req.Msg)
if err != nil {
// TODO(milan): Convert to correct status code
return nil, err
}
return connect_go.NewResponse(resp), nil
}
func (s *ProxyIDEClientServiceHandler) SendDidClose(ctx context.Context, req *connect_go.Request[v1.SendDidCloseRequest]) (*connect_go.Response[v1.SendDidCloseResponse], error) {
resp, err := s.Client.SendDidClose(ctx, req.Msg)
if err != nil {
// TODO(milan): Convert to correct status code
return nil, err
}
return connect_go.NewResponse(resp), nil
}
func (s *ProxyIDEClientServiceHandler) UpdateGitStatus(ctx context.Context, req *connect_go.Request[v1.UpdateGitStatusRequest]) (*connect_go.Response[v1.UpdateGitStatusResponse], error) {
resp, err := s.Client.UpdateGitStatus(ctx, req.Msg)
if err != nil {
// TODO(milan): Convert to correct status code
return nil, err
}
return connect_go.NewResponse(resp), nil
}