feat: add DownloadPersistentCachePiece and SyncPersistentCachePieces api #447
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces new functionalities to the
dfdaemon
API and updates the version of thedragonfly-api
package. The most significant changes include the addition of new message types and RPC methods for handling persistent cache pieces, as well as updates to the corresponding client and server interfaces.New functionalities for handling persistent cache pieces:
pkg/apis/dfdaemon/v2/dfdaemon.proto
: Added new message typesSyncPersistentCachePiecesRequest
,SyncPersistentCachePiecesResponse
,DownloadPersistentCachePieceRequest
, andDownloadPersistentCachePieceResponse
. Also added new RPC methodsSyncPersistentCachePieces
andDownloadPersistentCachePiece
to theDfdaemonUpload
service. [1] [2]pkg/apis/dfdaemon/v2/dfdaemon_grpc.pb.go
: Updated theDfdaemonUploadClient
andDfdaemonUploadServer
interfaces to include new methods for syncing and downloading persistent cache pieces. Added corresponding handler functions and updated the service description. [1] [2] [3] [4] [5] [6] [7]proto/dfdaemon.proto
: Added new message types and RPC methods for handling persistent cache pieces, mirroring the changes indfdaemon.proto
. [1] [2]src/dfdaemon.v2.rs
: Updated the Rust client and server code to include new methods for syncing and downloading persistent cache pieces. [1] [2] [3]Version update:
Cargo.toml
: Updated the version of thedragonfly-api
package from2.1.9
to2.1.10
.Related Issue
Motivation and Context