|
@@ -277,6 +277,102 @@ var _FileSync_serviceDesc = grpc.ServiceDesc{
|
|
|
Metadata: "filesync.proto",
|
|
|
}
|
|
|
|
|
|
+// Client API for FileSend service
|
|
|
+
|
|
|
+type FileSendClient interface {
|
|
|
+ DiffCopy(ctx context.Context, opts ...grpc.CallOption) (FileSend_DiffCopyClient, error)
|
|
|
+}
|
|
|
+
|
|
|
+type fileSendClient struct {
|
|
|
+ cc *grpc.ClientConn
|
|
|
+}
|
|
|
+
|
|
|
+func NewFileSendClient(cc *grpc.ClientConn) FileSendClient {
|
|
|
+ return &fileSendClient{cc}
|
|
|
+}
|
|
|
+
|
|
|
+func (c *fileSendClient) DiffCopy(ctx context.Context, opts ...grpc.CallOption) (FileSend_DiffCopyClient, error) {
|
|
|
+ stream, err := grpc.NewClientStream(ctx, &_FileSend_serviceDesc.Streams[0], c.cc, "/moby.filesync.v1.FileSend/DiffCopy", opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ x := &fileSendDiffCopyClient{stream}
|
|
|
+ return x, nil
|
|
|
+}
|
|
|
+
|
|
|
+type FileSend_DiffCopyClient interface {
|
|
|
+ Send(*BytesMessage) error
|
|
|
+ Recv() (*BytesMessage, error)
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+type fileSendDiffCopyClient struct {
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *fileSendDiffCopyClient) Send(m *BytesMessage) error {
|
|
|
+ return x.ClientStream.SendMsg(m)
|
|
|
+}
|
|
|
+
|
|
|
+func (x *fileSendDiffCopyClient) Recv() (*BytesMessage, error) {
|
|
|
+ m := new(BytesMessage)
|
|
|
+ if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return m, nil
|
|
|
+}
|
|
|
+
|
|
|
+// Server API for FileSend service
|
|
|
+
|
|
|
+type FileSendServer interface {
|
|
|
+ DiffCopy(FileSend_DiffCopyServer) error
|
|
|
+}
|
|
|
+
|
|
|
+func RegisterFileSendServer(s *grpc.Server, srv FileSendServer) {
|
|
|
+ s.RegisterService(&_FileSend_serviceDesc, srv)
|
|
|
+}
|
|
|
+
|
|
|
+func _FileSend_DiffCopy_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
+ return srv.(FileSendServer).DiffCopy(&fileSendDiffCopyServer{stream})
|
|
|
+}
|
|
|
+
|
|
|
+type FileSend_DiffCopyServer interface {
|
|
|
+ Send(*BytesMessage) error
|
|
|
+ Recv() (*BytesMessage, error)
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+type fileSendDiffCopyServer struct {
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *fileSendDiffCopyServer) Send(m *BytesMessage) error {
|
|
|
+ return x.ServerStream.SendMsg(m)
|
|
|
+}
|
|
|
+
|
|
|
+func (x *fileSendDiffCopyServer) Recv() (*BytesMessage, error) {
|
|
|
+ m := new(BytesMessage)
|
|
|
+ if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return m, nil
|
|
|
+}
|
|
|
+
|
|
|
+var _FileSend_serviceDesc = grpc.ServiceDesc{
|
|
|
+ ServiceName: "moby.filesync.v1.FileSend",
|
|
|
+ HandlerType: (*FileSendServer)(nil),
|
|
|
+ Methods: []grpc.MethodDesc{},
|
|
|
+ Streams: []grpc.StreamDesc{
|
|
|
+ {
|
|
|
+ StreamName: "DiffCopy",
|
|
|
+ Handler: _FileSend_DiffCopy_Handler,
|
|
|
+ ServerStreams: true,
|
|
|
+ ClientStreams: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ Metadata: "filesync.proto",
|
|
|
+}
|
|
|
+
|
|
|
func (m *BytesMessage) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
@@ -558,7 +654,7 @@ var (
|
|
|
func init() { proto.RegisterFile("filesync.proto", fileDescriptorFilesync) }
|
|
|
|
|
|
var fileDescriptorFilesync = []byte{
|
|
|
- // 198 bytes of a gzipped FileDescriptorProto
|
|
|
+ // 208 bytes of a gzipped FileDescriptorProto
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x4b, 0xcb, 0xcc, 0x49,
|
|
|
0x2d, 0xae, 0xcc, 0x4b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xc8, 0xcd, 0x4f, 0xaa,
|
|
|
0xd4, 0x83, 0x0b, 0x96, 0x19, 0x2a, 0x29, 0x71, 0xf1, 0x38, 0x55, 0x96, 0xa4, 0x16, 0xfb, 0xa6,
|
|
@@ -566,10 +662,10 @@ var fileDescriptorFilesync = []byte{
|
|
|
0x30, 0x6a, 0xf0, 0x04, 0x81, 0xd9, 0x46, 0xab, 0x19, 0xb9, 0x38, 0xdc, 0x32, 0x73, 0x52, 0x83,
|
|
|
0x2b, 0xf3, 0x92, 0x85, 0xfc, 0xb8, 0x38, 0x5c, 0x32, 0xd3, 0xd2, 0x9c, 0xf3, 0x0b, 0x2a, 0x85,
|
|
|
0xe4, 0xf4, 0xd0, 0xcd, 0xd3, 0x43, 0x36, 0x4c, 0x8a, 0x80, 0xbc, 0x06, 0xa3, 0x01, 0xa3, 0x90,
|
|
|
- 0x3f, 0x17, 0x67, 0x48, 0x62, 0x51, 0x70, 0x49, 0x51, 0x6a, 0x62, 0x2e, 0x35, 0x0c, 0x74, 0x32,
|
|
|
- 0xbb, 0xf0, 0x50, 0x8e, 0xe1, 0xc6, 0x43, 0x39, 0x86, 0x0f, 0x0f, 0xe5, 0x18, 0x1b, 0x1e, 0xc9,
|
|
|
- 0x31, 0xae, 0x78, 0x24, 0xc7, 0x78, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e,
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