buildgrid.server.capabilities.instance module

class buildgrid.server.capabilities.instance.CapabilitiesInstance(cas_instance: ContentAddressableStorageInstance | None = None, action_cache_instance: ActionCache | ActionCacheABC | None = None, execution_instance: ExecutionInstance | None = None)

Bases: Instance

SERVICE_NAME: ClassVar[str] = 'build.bazel.remote.execution.v2.Capabilities'

The expected FULL_NAME of the Service which will wrap this instance. This value should be declared on the class of any Instance implementations.

add_cas_instance(cas_instance: ContentAddressableStorageInstance) None
add_action_cache_instance(action_cache_instance: ActionCache | ActionCacheABC) None
add_execution_instance(execution_instance: ExecutionInstance) None
get_capabilities() ServerCapabilities