summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-04-04 11:31:48 +0100
committerTom Pollard <tom.pollard@codethink.co.uk>2019-04-26 12:55:12 +0100
commite53a64fb47f7b558aaaf0ebfb2d8bd63e0a53c9b (patch)
tree1f667c040528888dc54cc4b586771050df5ac5d5
parent8046145bc6f21895a3e59c33348de79a69898f03 (diff)
downloadbuildstream-e53a64fb47f7b558aaaf0ebfb2d8bd63e0a53c9b.tar.gz
casremote: Add artifact service stub
Part of #974
-rw-r--r--buildstream/_cas/casremote.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_cas/casremote.py b/buildstream/_cas/casremote.py
index aac0d2802..ef6a50826 100644
--- a/buildstream/_cas/casremote.py
+++ b/buildstream/_cas/casremote.py
@@ -12,6 +12,7 @@ from .. import _yaml
from .._protos.google.rpc import code_pb2
from .._protos.google.bytestream import bytestream_pb2, bytestream_pb2_grpc
from .._protos.build.bazel.remote.execution.v2 import remote_execution_pb2, remote_execution_pb2_grpc
+from .._protos.buildstream.v2 import artifact_pb2_grpc
from .._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc
from .._exceptions import CASRemoteError, LoadError, LoadErrorReason
@@ -87,6 +88,7 @@ class CASRemote():
self.bytestream = None
self.cas = None
self.ref_storage = None
+ self.artifact = None
self.batch_update_supported = None
self.batch_read_supported = None
self.capabilities = None
@@ -132,6 +134,7 @@ class CASRemote():
self.cas = remote_execution_pb2_grpc.ContentAddressableStorageStub(self.channel)
self.capabilities = remote_execution_pb2_grpc.CapabilitiesStub(self.channel)
self.ref_storage = buildstream_pb2_grpc.ReferenceStorageStub(self.channel)
+ self.artifact = artifact_pb2_grpc.ArtifactServiceStub(self.channel)
self.max_batch_total_size_bytes = _MAX_PAYLOAD_BYTES
try: