Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for disambiguating multiple responses for cache exporters
Browse files Browse the repository at this point in the history
by adding IDs similar to output exporters.

Signed-off-by: a-palchikov <[email protected]>
a-palchikov committed Jan 24, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4ae96bc commit 18788b5
Showing 7 changed files with 185 additions and 66 deletions.
15 changes: 13 additions & 2 deletions api/services/control/control.pb.go

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

3 changes: 3 additions & 0 deletions api/services/control/control.proto
Original file line number Diff line number Diff line change
@@ -102,6 +102,9 @@ message CacheOptionsEntry {
// Attrs are like mode=(min,max), ref=example.com:5000/foo/bar .
// See cache importer/exporter implementations' documentation.
map<string, string> Attrs = 2;
// ID identifies this exporter.
// ID should be treated by the exporter as opaque.
string ID = 3;
}

message SolveResponse {
47 changes: 47 additions & 0 deletions api/services/control/control_vtproto.pb.go

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

Loading

0 comments on commit 18788b5

Please sign in to comment.