Skip to content

Commit

Permalink
Fix moby#2109.
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Korn <[email protected]>
  • Loading branch information
charleskorn committed May 25, 2021
1 parent 8d5c5f1 commit 8854bbc
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 37 deletions.
71 changes: 38 additions & 33 deletions session/filesync/filesync.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions session/filesync/filesync.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ package moby.filesync.v1;

option go_package = "filesync";

import "github.com/tonistiigi/fsutil/types/wire.proto";

service FileSync{
rpc DiffCopy(stream BytesMessage) returns (stream BytesMessage);
rpc TarStream(stream BytesMessage) returns (stream BytesMessage);
rpc DiffCopy(stream fsutil.types.Packet) returns (stream fsutil.types.Packet);
rpc TarStream(stream fsutil.types.Packet) returns (stream fsutil.types.Packet);
}

service FileSend{
Expand All @@ -17,4 +19,4 @@ service FileSend{
// BytesMessage contains a chunk of byte data
message BytesMessage{
bytes data = 1;
}
}
2 changes: 1 addition & 1 deletion session/filesync/generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package filesync

//go:generate protoc --gogoslick_out=plugins=grpc:. filesync.proto
//go:generate protoc -I=. -I=../../vendor/ -I=../../vendor/github.com/tonistiigi/fsutil/types/ --gogoslick_out=plugins=grpc:. filesync.proto

0 comments on commit 8854bbc

Please sign in to comment.