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 23, 2024
1 parent 50bda4a commit 3e59e14
Show file tree
Hide file tree
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
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 3e59e14

Please sign in to comment.