diff options
author | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-04-04 11:31:48 +0100 |
---|---|---|
committer | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-04-26 12:55:12 +0100 |
commit | e53a64fb47f7b558aaaf0ebfb2d8bd63e0a53c9b (patch) | |
tree | 1f667c040528888dc54cc4b586771050df5ac5d5 | |
parent | 8046145bc6f21895a3e59c33348de79a69898f03 (diff) | |
download | buildstream-e53a64fb47f7b558aaaf0ebfb2d8bd63e0a53c9b.tar.gz |
casremote: Add artifact service stub
Part of #974
-rw-r--r-- | buildstream/_cas/casremote.py | 3 |
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: |