import marshmallow from marshmallow import exceptions from marshmallow import fields from oslo_utils import importutils from cloudferry.lib.utils import local_db from cloudferry.lib.utils import utils LOG = logging.getLogger(__name__) type_aliases = {} local_db.execute_once(""" CREATE TABLE IF NOT EXISTS objects ( uuid TEXT, cloud TEXT, type TEXT, json JSON, PRIMARY KEY (uuid, cloud, type) ) """) local_db.execute_once(""" CREATE TABLE IF NOT EXISTS links ( uuid TEXT, cloud TEXT, type TEXT, json JSON, PRIMARY KEY (uuid, cloud, type) ) """) ValidationError = exceptions.ValidationError
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import abc from oslo_utils import importutils from cloudferry.lib.utils import local_db local_db.execute_once(""" CREATE TABLE IF NOT EXISTS stages ( stage TEXT, signature JSON, PRIMARY KEY (stage) ) """) class Stage(object): __metaclass__ = abc.ABCMeta dependencies = [] def __init__(self, config): """ Stage constructor :param config: cloudferry.lib.config.Configuration instance :return: """
import threading import marshmallow from marshmallow import exceptions from marshmallow import fields from oslo_utils import importutils from cloudferry.lib.utils import local_db LOG = logging.getLogger(__name__) type_aliases = {} local_db.execute_once(""" CREATE TABLE IF NOT EXISTS objects ( uuid TEXT, cloud TEXT, type TEXT, json JSON, PRIMARY KEY (uuid, cloud, type) ) """) local_db.execute_once(""" CREATE TABLE IF NOT EXISTS links ( uuid TEXT, cloud TEXT, type TEXT, json JSON, PRIMARY KEY (uuid, cloud, type) ) """) ValidationError = exceptions.ValidationError