buildgrid.server.referencestorage.service module

class buildgrid.server.referencestorage.service.ReferenceStorageService(server)

Bases: buildgrid._protos.buildstream.v2.buildstream_pb2_grpc.ReferenceStorageServicer

add_instance(name, instance)
GetReference(request, context)

Retrieve a CAS [Directory][build.bazel.remote.execution.v2.Directory] digest by name.

Errors: * NOT_FOUND: The requested reference is not in the cache.

UpdateReference(request, context)

Associate a name with a CAS [Directory][build.bazel.remote.execution.v2.Directory] digest.

Errors: * RESOURCE_EXHAUSTED: There is insufficient storage space to add the entry to the cache.

Status(request, context)