Path: blob/main/components/public-api/go/v1/ssh_grpc.pb.go
2500 views
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-gen-go-grpc. DO NOT EDIT.5// versions:6// - protoc-gen-go-grpc v1.2.07// - protoc (unknown)8// source: gitpod/v1/ssh.proto910package v11112import (13context "context"14grpc "google.golang.org/grpc"15codes "google.golang.org/grpc/codes"16status "google.golang.org/grpc/status"17)1819// This is a compile-time assertion to ensure that this generated file20// is compatible with the grpc package it is being compiled against.21// Requires gRPC-Go v1.32.0 or later.22const _ = grpc.SupportPackageIsVersion72324// SSHServiceClient is the client API for SSHService service.25//26// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.27type SSHServiceClient interface {28// ListSSHPublicKeys returns all the ssh public keys for the29// authenticated user.30ListSSHPublicKeys(ctx context.Context, in *ListSSHPublicKeysRequest, opts ...grpc.CallOption) (*ListSSHPublicKeysResponse, error)31// CreateSSHPublicKeys creates an ssh public key for the32// authenticated user.33CreateSSHPublicKey(ctx context.Context, in *CreateSSHPublicKeyRequest, opts ...grpc.CallOption) (*CreateSSHPublicKeyResponse, error)34// DeleteSSHPublicKeys deletes an ssh public key for the35// authenticated user.36DeleteSSHPublicKey(ctx context.Context, in *DeleteSSHPublicKeyRequest, opts ...grpc.CallOption) (*DeleteSSHPublicKeyResponse, error)37}3839type sSHServiceClient struct {40cc grpc.ClientConnInterface41}4243func NewSSHServiceClient(cc grpc.ClientConnInterface) SSHServiceClient {44return &sSHServiceClient{cc}45}4647func (c *sSHServiceClient) ListSSHPublicKeys(ctx context.Context, in *ListSSHPublicKeysRequest, opts ...grpc.CallOption) (*ListSSHPublicKeysResponse, error) {48out := new(ListSSHPublicKeysResponse)49err := c.cc.Invoke(ctx, "/gitpod.v1.SSHService/ListSSHPublicKeys", in, out, opts...)50if err != nil {51return nil, err52}53return out, nil54}5556func (c *sSHServiceClient) CreateSSHPublicKey(ctx context.Context, in *CreateSSHPublicKeyRequest, opts ...grpc.CallOption) (*CreateSSHPublicKeyResponse, error) {57out := new(CreateSSHPublicKeyResponse)58err := c.cc.Invoke(ctx, "/gitpod.v1.SSHService/CreateSSHPublicKey", in, out, opts...)59if err != nil {60return nil, err61}62return out, nil63}6465func (c *sSHServiceClient) DeleteSSHPublicKey(ctx context.Context, in *DeleteSSHPublicKeyRequest, opts ...grpc.CallOption) (*DeleteSSHPublicKeyResponse, error) {66out := new(DeleteSSHPublicKeyResponse)67err := c.cc.Invoke(ctx, "/gitpod.v1.SSHService/DeleteSSHPublicKey", in, out, opts...)68if err != nil {69return nil, err70}71return out, nil72}7374// SSHServiceServer is the server API for SSHService service.75// All implementations must embed UnimplementedSSHServiceServer76// for forward compatibility77type SSHServiceServer interface {78// ListSSHPublicKeys returns all the ssh public keys for the79// authenticated user.80ListSSHPublicKeys(context.Context, *ListSSHPublicKeysRequest) (*ListSSHPublicKeysResponse, error)81// CreateSSHPublicKeys creates an ssh public key for the82// authenticated user.83CreateSSHPublicKey(context.Context, *CreateSSHPublicKeyRequest) (*CreateSSHPublicKeyResponse, error)84// DeleteSSHPublicKeys deletes an ssh public key for the85// authenticated user.86DeleteSSHPublicKey(context.Context, *DeleteSSHPublicKeyRequest) (*DeleteSSHPublicKeyResponse, error)87mustEmbedUnimplementedSSHServiceServer()88}8990// UnimplementedSSHServiceServer must be embedded to have forward compatible implementations.91type UnimplementedSSHServiceServer struct {92}9394func (UnimplementedSSHServiceServer) ListSSHPublicKeys(context.Context, *ListSSHPublicKeysRequest) (*ListSSHPublicKeysResponse, error) {95return nil, status.Errorf(codes.Unimplemented, "method ListSSHPublicKeys not implemented")96}97func (UnimplementedSSHServiceServer) CreateSSHPublicKey(context.Context, *CreateSSHPublicKeyRequest) (*CreateSSHPublicKeyResponse, error) {98return nil, status.Errorf(codes.Unimplemented, "method CreateSSHPublicKey not implemented")99}100func (UnimplementedSSHServiceServer) DeleteSSHPublicKey(context.Context, *DeleteSSHPublicKeyRequest) (*DeleteSSHPublicKeyResponse, error) {101return nil, status.Errorf(codes.Unimplemented, "method DeleteSSHPublicKey not implemented")102}103func (UnimplementedSSHServiceServer) mustEmbedUnimplementedSSHServiceServer() {}104105// UnsafeSSHServiceServer may be embedded to opt out of forward compatibility for this service.106// Use of this interface is not recommended, as added methods to SSHServiceServer will107// result in compilation errors.108type UnsafeSSHServiceServer interface {109mustEmbedUnimplementedSSHServiceServer()110}111112func RegisterSSHServiceServer(s grpc.ServiceRegistrar, srv SSHServiceServer) {113s.RegisterService(&SSHService_ServiceDesc, srv)114}115116func _SSHService_ListSSHPublicKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {117in := new(ListSSHPublicKeysRequest)118if err := dec(in); err != nil {119return nil, err120}121if interceptor == nil {122return srv.(SSHServiceServer).ListSSHPublicKeys(ctx, in)123}124info := &grpc.UnaryServerInfo{125Server: srv,126FullMethod: "/gitpod.v1.SSHService/ListSSHPublicKeys",127}128handler := func(ctx context.Context, req interface{}) (interface{}, error) {129return srv.(SSHServiceServer).ListSSHPublicKeys(ctx, req.(*ListSSHPublicKeysRequest))130}131return interceptor(ctx, in, info, handler)132}133134func _SSHService_CreateSSHPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {135in := new(CreateSSHPublicKeyRequest)136if err := dec(in); err != nil {137return nil, err138}139if interceptor == nil {140return srv.(SSHServiceServer).CreateSSHPublicKey(ctx, in)141}142info := &grpc.UnaryServerInfo{143Server: srv,144FullMethod: "/gitpod.v1.SSHService/CreateSSHPublicKey",145}146handler := func(ctx context.Context, req interface{}) (interface{}, error) {147return srv.(SSHServiceServer).CreateSSHPublicKey(ctx, req.(*CreateSSHPublicKeyRequest))148}149return interceptor(ctx, in, info, handler)150}151152func _SSHService_DeleteSSHPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {153in := new(DeleteSSHPublicKeyRequest)154if err := dec(in); err != nil {155return nil, err156}157if interceptor == nil {158return srv.(SSHServiceServer).DeleteSSHPublicKey(ctx, in)159}160info := &grpc.UnaryServerInfo{161Server: srv,162FullMethod: "/gitpod.v1.SSHService/DeleteSSHPublicKey",163}164handler := func(ctx context.Context, req interface{}) (interface{}, error) {165return srv.(SSHServiceServer).DeleteSSHPublicKey(ctx, req.(*DeleteSSHPublicKeyRequest))166}167return interceptor(ctx, in, info, handler)168}169170// SSHService_ServiceDesc is the grpc.ServiceDesc for SSHService service.171// It's only intended for direct use with grpc.RegisterService,172// and not to be introspected or modified (even as a copy)173var SSHService_ServiceDesc = grpc.ServiceDesc{174ServiceName: "gitpod.v1.SSHService",175HandlerType: (*SSHServiceServer)(nil),176Methods: []grpc.MethodDesc{177{178MethodName: "ListSSHPublicKeys",179Handler: _SSHService_ListSSHPublicKeys_Handler,180},181{182MethodName: "CreateSSHPublicKey",183Handler: _SSHService_CreateSSHPublicKey_Handler,184},185{186MethodName: "DeleteSSHPublicKey",187Handler: _SSHService_DeleteSSHPublicKey_Handler,188},189},190Streams: []grpc.StreamDesc{},191Metadata: "gitpod/v1/ssh.proto",192}193194195