Skip to content

Commit

Permalink
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]>
  • Loading branch information
a-palchikov committed Dec 22, 2024
1 parent 59df8a9 commit 9264400
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 64 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
Expand Up @@ -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 {
Expand Down
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 9264400

Please sign in to comment.