Skip to content

Commit

Permalink
Use the same ExporterResponse type for cache exporter responses
Browse files Browse the repository at this point in the history
Signed-off-by: a-palchikov <[email protected]>
  • Loading branch information
a-palchikov committed Jan 20, 2025
1 parent 8305d6e commit 656b893
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 1,039 deletions.
930 changes: 408 additions & 522 deletions api/services/control/control.pb.go

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions api/services/control/control.proto
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ message SolveResponse {
// populated as long as it is supported.
map<string, string> ExporterResponseDeprecated = 1;
repeated ExporterResponse exporterResponses = 2;
repeated CacheExporterResponse cacheExporterResponses = 3;
repeated ExporterResponse cacheExporterResponses = 3;
}

message StatusRequest {
Expand Down Expand Up @@ -268,18 +268,6 @@ message ExporterResponse {
message ExporterMetadata {
// ID identifies the exporter
string ID = 1;
}

// CacheExporterResponse describes the output of an exporter
message CacheExporterResponse {
// Metadata describes the exporter
CacheExporterMetadata metadata = 1;
// Data is the exporter's output
map<string, string> data = 2;
}

// CacheExporterMetadata describes the cache exporter
message CacheExporterMetadata {
// Name uniquely identifies the exporter
string name = 1;
// Type identifies the exporter type
string type = 2;
}
Loading

0 comments on commit 656b893

Please sign in to comment.