diff options
Diffstat (limited to 'proto/go/gitalypb/remote_grpc.pb.go')
-rw-r--r-- | proto/go/gitalypb/remote_grpc.pb.go | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/proto/go/gitalypb/remote_grpc.pb.go b/proto/go/gitalypb/remote_grpc.pb.go index 4c6efadd9..ac70dfbdf 100644 --- a/proto/go/gitalypb/remote_grpc.pb.go +++ b/proto/go/gitalypb/remote_grpc.pb.go @@ -18,9 +18,7 @@ const _ = grpc.SupportPackageIsVersion7 // // 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. type RemoteServiceClient interface { - AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) - RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) // UpdateRemoteMirror compares the references in the target repository and its remote mirror // repository. Any differences in the references are then addressed by pushing the differing // references to the mirror. Created and modified references are updated, removed references are @@ -44,15 +42,6 @@ func NewRemoteServiceClient(cc grpc.ClientConnInterface) RemoteServiceClient { return &remoteServiceClient{cc} } -func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) { - out := new(AddRemoteResponse) - err := c.cc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) { out := new(FetchInternalRemoteResponse) err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, opts...) @@ -62,15 +51,6 @@ func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *Fetch return out, nil } -func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) { - out := new(RemoveRemoteResponse) - err := c.cc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *remoteServiceClient) UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) { stream, err := c.cc.NewStream(ctx, &RemoteService_ServiceDesc.Streams[0], "/gitaly.RemoteService/UpdateRemoteMirror", opts...) if err != nil { @@ -127,9 +107,7 @@ func (c *remoteServiceClient) FindRemoteRootRef(ctx context.Context, in *FindRem // All implementations must embed UnimplementedRemoteServiceServer // for forward compatibility type RemoteServiceServer interface { - AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) - RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) // UpdateRemoteMirror compares the references in the target repository and its remote mirror // repository. Any differences in the references are then addressed by pushing the differing // references to the mirror. Created and modified references are updated, removed references are @@ -150,15 +128,9 @@ type RemoteServiceServer interface { type UnimplementedRemoteServiceServer struct { } -func (UnimplementedRemoteServiceServer) AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddRemote not implemented") -} func (UnimplementedRemoteServiceServer) FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FetchInternalRemote not implemented") } -func (UnimplementedRemoteServiceServer) RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveRemote not implemented") -} func (UnimplementedRemoteServiceServer) UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error { return status.Errorf(codes.Unimplemented, "method UpdateRemoteMirror not implemented") } @@ -181,24 +153,6 @@ func RegisterRemoteServiceServer(s grpc.ServiceRegistrar, srv RemoteServiceServe s.RegisterService(&RemoteService_ServiceDesc, srv) } -func _RemoteService_AddRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).AddRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/AddRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).AddRemote(ctx, req.(*AddRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _RemoteService_FetchInternalRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FetchInternalRemoteRequest) if err := dec(in); err != nil { @@ -217,24 +171,6 @@ func _RemoteService_FetchInternalRemote_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } -func _RemoteService_RemoveRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).RemoveRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/RemoveRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).RemoveRemote(ctx, req.(*RemoveRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _RemoteService_UpdateRemoteMirror_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(RemoteServiceServer).UpdateRemoteMirror(&remoteServiceUpdateRemoteMirrorServer{stream}) } @@ -305,18 +241,10 @@ var RemoteService_ServiceDesc = grpc.ServiceDesc{ HandlerType: (*RemoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "AddRemote", - Handler: _RemoteService_AddRemote_Handler, - }, - { MethodName: "FetchInternalRemote", Handler: _RemoteService_FetchInternalRemote_Handler, }, { - MethodName: "RemoveRemote", - Handler: _RemoteService_RemoveRemote_Handler, - }, - { MethodName: "FindRemoteRepository", Handler: _RemoteService_FindRemoteRepository_Handler, }, |