summaryrefslogtreecommitdiff
path: root/src/buildstream/_protos/buildstream/v2/buildstream.proto
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_protos/buildstream/v2/buildstream.proto')
-rw-r--r--src/buildstream/_protos/buildstream/v2/buildstream.proto23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/buildstream/_protos/buildstream/v2/buildstream.proto b/src/buildstream/_protos/buildstream/v2/buildstream.proto
index f283d6f3f..e9cd1223b 100644
--- a/src/buildstream/_protos/buildstream/v2/buildstream.proto
+++ b/src/buildstream/_protos/buildstream/v2/buildstream.proto
@@ -44,6 +44,15 @@ service ReferenceStorage {
}
}
+service Capabilities {
+ // GetCapabilities mirrors
+ rpc GetCapabilities(GetCapabilitiesRequest) returns (ServerCapabilities) {
+ option (google.api.http) = {
+ get: "/v2/{instance_name=**}/capabilities"
+ };
+ }
+}
+
message GetReferenceRequest {
// The instance of the execution system to operate against. A server may
// support multiple instances of the execution system (with their own workers,
@@ -93,3 +102,17 @@ message StatusResponse {
// Whether reference updates are allowed for the connected client.
bool allow_updates = 1;
}
+
+message GetCapabilitiesRequest {
+ string instance_name = 1;
+}
+
+// Capabilities of the artifact service
+message ArtifactCapabilities {
+ bool allow_updates = 1;
+}
+
+// All capabalities will be unset if the service isn't present
+message ServerCapabilities {
+ ArtifactCapabilities artifact_capabilities = 1;
+} \ No newline at end of file