Skip to content

Commit

Permalink
Also fix GetBlobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Nov 11, 2023
1 parent 397eb9e commit 8f800d1
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions buf/registry/module/v1beta1/commit_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -297,24 +297,45 @@ message GetCommitNodesResponse {
}

message GetBlobsRequest {
// The digests to retrieve Blobs for.
repeated buf.registry.storage.v1beta1.Digest digests = 1 [
// A set of blog Digests associated with a Module.
message Value {
// The reference to the Module that the Blobs belong to.
ModuleRef module_ref = 1 [(buf.validate.field).required = true];
// The Digests to retrieve Blobs for.
repeated buf.registry.storage.v1beta1.Digest blob_digests = 2 [
(buf.validate.field).repeated.min_items = 1,
(buf.validate.field).repeated.max_items = 250
];
}
repeated Value values = 1 [
(buf.validate.field).repeated.min_items = 1,
(buf.validate.field).repeated.max_items = 250
];
}

message GetBlobsResponse {
// The retrieved Blobs.
repeated buf.registry.storage.v1beta1.Blob blobs = 1 [(buf.validate.field).repeated.min_items = 1];
// A set of missing blob Digests associated with a Module.
message Value {
// The Module that associated with the Blobs.
Module module = 1 [(buf.validate.field).required = true];
// The retrieved Blobs.
repeated buf.registry.storage.v1beta1.Blob blobs = 2 [
(buf.validate.field).repeated.min_items = 1,
(buf.validate.field).repeated.max_items = 250
];
}
repeated Value values = 1 [
(buf.validate.field).repeated.min_items = 1,
(buf.validate.field).repeated.max_items = 250
];
}

message GetMissingBlobDigestsRequest {
// A set of blob Digests associated with a Module.
message Value {
// The reference to the Module that the digests belong to.
ModuleRef module_ref = 1 [(buf.validate.field).required = true];
// The digests to see if we have Blobs for.
// The Digests to see if we have Blobs for.
repeated buf.registry.storage.v1beta1.Digest blob_digests = 2 [
(buf.validate.field).repeated.min_items = 1,
(buf.validate.field).repeated.max_items = 250
Expand Down

0 comments on commit 8f800d1

Please sign in to comment.