diff options
author | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-06-18 19:24:11 +0100 |
---|---|---|
committer | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-06-26 16:43:50 +0100 |
commit | 52158e405bd2a3337e1994862f9f3f52e642cbb9 (patch) | |
tree | fae78d8ce4bbafd36eba2feb93a59e3498880c14 | |
parent | 7224582503f85af5e5bcf072c2d1ae8d9ce2c19e (diff) | |
download | buildstream-52158e405bd2a3337e1994862f9f3f52e642cbb9.tar.gz |
buildstream.proto: Add capabilities service
Part of #915
-rw-r--r-- | src/buildstream/_protos/buildstream/v2/buildstream.proto | 23 |
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 |