diff options
author | Jürg Billeter <j@bitron.ch> | 2020-06-22 16:23:54 +0200 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-08-13 09:24:43 +0000 |
commit | dd315917a243c4353c53038e9517b439a88a8bf8 (patch) | |
tree | c6d47e0e641f2ac9ac8e1cf59819c1aa8c4d5490 /src | |
parent | 70a5868259e3287ec02f4ed354b368896800dab3 (diff) | |
download | buildstream-dd315917a243c4353c53038e9517b439a88a8bf8.tar.gz |
Rename BaseCache to AssetCache
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/_artifactcache.py | 4 | ||||
-rw-r--r-- | src/buildstream/_assetcache.py (renamed from src/buildstream/_basecache.py) | 6 | ||||
-rw-r--r-- | src/buildstream/_sourcecache.py | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py index 1d77743dc..f310ea615 100644 --- a/src/buildstream/_artifactcache.py +++ b/src/buildstream/_artifactcache.py @@ -21,7 +21,7 @@ import os import grpc -from ._basecache import BaseCache +from ._assetcache import AssetCache from ._cas.casremote import BlobNotFound from ._exceptions import ArtifactError, CASError, CacheError, CASRemoteError, RemoteError from ._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc, artifact_pb2, artifact_pb2_grpc @@ -134,7 +134,7 @@ class ArtifactRemote(BaseRemote): # Args: # context (Context): The BuildStream context # -class ArtifactCache(BaseCache): +class ArtifactCache(AssetCache): spec_name = "artifact_cache_specs" config_node_name = "artifacts" diff --git a/src/buildstream/_basecache.py b/src/buildstream/_assetcache.py index eb8c98a3e..05abb406e 100644 --- a/src/buildstream/_basecache.py +++ b/src/buildstream/_assetcache.py @@ -35,9 +35,9 @@ if TYPE_CHECKING: from ._remote import BaseRemote -# Base Cache for Caches to derive from +# Base Asset Cache for Caches to derive from # -class BaseCache: +class AssetCache: # None of these should ever be called in the base class, but this appeases # pylint to some degree @@ -75,7 +75,7 @@ class BaseCache: # release_resources(): # - # Release resources used by BaseCache. + # Release resources used by AssetCache. # def release_resources(self): self.close_grpc_channels() diff --git a/src/buildstream/_sourcecache.py b/src/buildstream/_sourcecache.py index aa6530ee5..6ba7ec782 100644 --- a/src/buildstream/_sourcecache.py +++ b/src/buildstream/_sourcecache.py @@ -23,7 +23,7 @@ import grpc from ._remote import BaseRemote from ._cas.casremote import BlobNotFound from .storage._casbaseddirectory import CasBasedDirectory -from ._basecache import BaseCache +from ._assetcache import AssetCache from ._exceptions import CASError, CASRemoteError, SourceCacheError, RemoteError from . import utils from ._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc, source_pb2, source_pb2_grpc @@ -119,7 +119,7 @@ class SourceRemote(BaseRemote): # Args: # context (Context): The Buildstream context # -class SourceCache(BaseCache): +class SourceCache(AssetCache): spec_name = "source_cache_specs" config_node_name = "source-caches" |