You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.2 KiB
30 lines
1.2 KiB
# Copyright (C) 2005-2025 Splunk Inc. All Rights Reserved.
|
|
|
|
import glob
|
|
from ITOA.itoa_factory import instantiate_object
|
|
from ITOA import itoa_common as utils
|
|
from .itoa_migration_interface import ITOAMigrationInterface
|
|
from ITOA.datamodel_interface import DatamodelInterface
|
|
from ITOA.storage import itoa_storage
|
|
from itsi.upgrade.itsi_migration_log import PrefixLogger
|
|
from itsi.upgrade.migration_utils import render_ui_message_required
|
|
|
|
|
|
class SandboxMigrationInterface(ITOAMigrationInterface):
|
|
"""
|
|
Migration class to handle ITOA sandbox objects
|
|
"""
|
|
|
|
def migration_delete_kvstore_object(self, object_type, object_key):
|
|
"""
|
|
Delete the specified sandbox
|
|
@type object_type: baseString
|
|
@param object_type: the sandbox object type from local storage
|
|
@param object_key: the sandbox object key from local storage
|
|
@return: None
|
|
"""
|
|
sandbox_interface = instantiate_object(self.session_key, "nobody",
|
|
"sandbox",
|
|
logger=self.logger)
|
|
sandbox_interface.delete("nobody", object_key, req_source='restore', transaction_id=None)
|