Skip to content

Commit 10e1b40

Browse files
committed
Add support for disambiguating multiple responses for cache exporters
by adding IDs similar to output exporters. Signed-off-by: a-palchikov <deemok@gmail.com>
1 parent daa3b01 commit 10e1b40

File tree

7 files changed

+185
-66
lines changed

7 files changed

+185
-66
lines changed

api/services/control/control.pb.go

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/services/control/control.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ message CacheOptionsEntry {
102102
// Attrs are like mode=(min,max), ref=example.com:5000/foo/bar .
103103
// See cache importer/exporter implementations' documentation.
104104
map<string, string> Attrs = 2;
105+
// ID identifies this exporter.
106+
// ID should be treated by the exporter as opaque.
107+
string ID = 3;
105108
}
106109

107110
message SolveResponse {

api/services/control/control_vtproto.pb.go

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)