Skip to content

Commit

Permalink
Merge pull request moby#2134 from charleskorn/fix-2109
Browse files Browse the repository at this point in the history
Use correct types in filesync.proto
  • Loading branch information
tonistiigi authored May 26, 2021
2 parents 8d5c5f1 + 8854bbc commit 50ad8b1
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 50ad8b1

Please sign in to comment.