diff options
author | Jürg Billeter <j@bitron.ch> | 2019-10-31 13:27:54 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-11-11 18:37:07 +0000 |
commit | afaff94f97e00e5cdff0b01358abedbeb54ba52f (patch) | |
tree | b71d4519feb0b000d8d317b10abc2ac7bb44ee48 /src/buildstream/sandbox/_sandboxreapi.py | |
parent | a3a7b33fb92b5a7e6d9a5f029ecf2bc8aa55971c (diff) | |
download | buildstream-afaff94f97e00e5cdff0b01358abedbeb54ba52f.tar.gz |
sandbox: Add abstract SandboxREAPI class
This provides a skeleton for sandbox implementations based on the Remote
Execution API.
Diffstat (limited to 'src/buildstream/sandbox/_sandboxreapi.py')
-rw-r--r-- | src/buildstream/sandbox/_sandboxreapi.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/buildstream/sandbox/_sandboxreapi.py b/src/buildstream/sandbox/_sandboxreapi.py new file mode 100644 index 000000000..ca7fbd827 --- /dev/null +++ b/src/buildstream/sandbox/_sandboxreapi.py @@ -0,0 +1,29 @@ +# +# Copyright (C) 2018-2019 Bloomberg Finance LP +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library. If not, see <http://www.gnu.org/licenses/>. + +from .sandbox import Sandbox + + +# SandboxREAPI() +# +# Abstract class providing a skeleton for sandbox implementations based on +# the Remote Execution API. +# +class SandboxREAPI(Sandbox): + + def _use_cas_based_directory(self): + # Always use CasBasedDirectory for REAPI + return True |