From f2a4be8de0da8a77bce0a9d7b84cb07188f18f4b Mon Sep 17 00:00:00 2001 From: vakarisz Date: Thu, 19 May 2022 10:41:01 +0300 Subject: [PATCH] Island: Rename /dal to /repository --- monkey/monkey_island/cc/{dal => repository}/IAgentRepository.py | 0 monkey/monkey_island/cc/{dal => repository}/IAttackRepository.py | 0 monkey/monkey_island/cc/{dal => repository}/IConfigRepository.py | 0 monkey/monkey_island/cc/{dal => repository}/IEdgeRepository.py | 0 monkey/monkey_island/cc/{dal => repository}/ILogRepository.py | 0 .../monkey_island/cc/{dal => repository}/IMachineRepository.py | 1 + monkey/monkey_island/cc/{dal => repository}/IReportRepository.py | 0 .../cc/{dal => repository}/ISimulationRepository.py | 0 .../monkey_island/cc/{dal => repository}/IStolenCredentials.py | 0 .../cc/{dal => repository}/ITelemStoreRepository.py | 0 .../monkey_island/cc/{dal => repository}/ITelemetryRepository.py | 0 monkey/monkey_island/cc/{dal => repository}/__init__.py | 0 .../cc/{dal => repository}/attack/IMitigationsRepository.py | 0 .../cc/{dal => repository}/zero_trust/IEventRepository.py | 0 .../cc/{dal => repository}/zero_trust/IFindingRepository.py | 0 .../monkey_island/cc/{dal => repository}/zero_trust/__init__.py | 0 16 files changed, 1 insertion(+) rename monkey/monkey_island/cc/{dal => repository}/IAgentRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/IAttackRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/IConfigRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/IEdgeRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/ILogRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/IMachineRepository.py (85%) rename monkey/monkey_island/cc/{dal => repository}/IReportRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/ISimulationRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/IStolenCredentials.py (100%) rename monkey/monkey_island/cc/{dal => repository}/ITelemStoreRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/ITelemetryRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/__init__.py (100%) rename monkey/monkey_island/cc/{dal => repository}/attack/IMitigationsRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/zero_trust/IEventRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/zero_trust/IFindingRepository.py (100%) rename monkey/monkey_island/cc/{dal => repository}/zero_trust/__init__.py (100%) diff --git a/monkey/monkey_island/cc/dal/IAgentRepository.py b/monkey/monkey_island/cc/repository/IAgentRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/IAgentRepository.py rename to monkey/monkey_island/cc/repository/IAgentRepository.py diff --git a/monkey/monkey_island/cc/dal/IAttackRepository.py b/monkey/monkey_island/cc/repository/IAttackRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/IAttackRepository.py rename to monkey/monkey_island/cc/repository/IAttackRepository.py diff --git a/monkey/monkey_island/cc/dal/IConfigRepository.py b/monkey/monkey_island/cc/repository/IConfigRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/IConfigRepository.py rename to monkey/monkey_island/cc/repository/IConfigRepository.py diff --git a/monkey/monkey_island/cc/dal/IEdgeRepository.py b/monkey/monkey_island/cc/repository/IEdgeRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/IEdgeRepository.py rename to monkey/monkey_island/cc/repository/IEdgeRepository.py diff --git a/monkey/monkey_island/cc/dal/ILogRepository.py b/monkey/monkey_island/cc/repository/ILogRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/ILogRepository.py rename to monkey/monkey_island/cc/repository/ILogRepository.py diff --git a/monkey/monkey_island/cc/dal/IMachineRepository.py b/monkey/monkey_island/cc/repository/IMachineRepository.py similarity index 85% rename from monkey/monkey_island/cc/dal/IMachineRepository.py rename to monkey/monkey_island/cc/repository/IMachineRepository.py index 99e7f49dc..da2526507 100644 --- a/monkey/monkey_island/cc/dal/IMachineRepository.py +++ b/monkey/monkey_island/cc/repository/IMachineRepository.py @@ -9,6 +9,7 @@ class IMachineRepository(ABC): # TODO define Machine object(ORM model) # TODO define or re-use machine state. + # TODO investigate where should the state be stored in edge or both edge and machine def get_machines( self, id: Optional[str] = None, diff --git a/monkey/monkey_island/cc/dal/IReportRepository.py b/monkey/monkey_island/cc/repository/IReportRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/IReportRepository.py rename to monkey/monkey_island/cc/repository/IReportRepository.py diff --git a/monkey/monkey_island/cc/dal/ISimulationRepository.py b/monkey/monkey_island/cc/repository/ISimulationRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/ISimulationRepository.py rename to monkey/monkey_island/cc/repository/ISimulationRepository.py diff --git a/monkey/monkey_island/cc/dal/IStolenCredentials.py b/monkey/monkey_island/cc/repository/IStolenCredentials.py similarity index 100% rename from monkey/monkey_island/cc/dal/IStolenCredentials.py rename to monkey/monkey_island/cc/repository/IStolenCredentials.py diff --git a/monkey/monkey_island/cc/dal/ITelemStoreRepository.py b/monkey/monkey_island/cc/repository/ITelemStoreRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/ITelemStoreRepository.py rename to monkey/monkey_island/cc/repository/ITelemStoreRepository.py diff --git a/monkey/monkey_island/cc/dal/ITelemetryRepository.py b/monkey/monkey_island/cc/repository/ITelemetryRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/ITelemetryRepository.py rename to monkey/monkey_island/cc/repository/ITelemetryRepository.py diff --git a/monkey/monkey_island/cc/dal/__init__.py b/monkey/monkey_island/cc/repository/__init__.py similarity index 100% rename from monkey/monkey_island/cc/dal/__init__.py rename to monkey/monkey_island/cc/repository/__init__.py diff --git a/monkey/monkey_island/cc/dal/attack/IMitigationsRepository.py b/monkey/monkey_island/cc/repository/attack/IMitigationsRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/attack/IMitigationsRepository.py rename to monkey/monkey_island/cc/repository/attack/IMitigationsRepository.py diff --git a/monkey/monkey_island/cc/dal/zero_trust/IEventRepository.py b/monkey/monkey_island/cc/repository/zero_trust/IEventRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/zero_trust/IEventRepository.py rename to monkey/monkey_island/cc/repository/zero_trust/IEventRepository.py diff --git a/monkey/monkey_island/cc/dal/zero_trust/IFindingRepository.py b/monkey/monkey_island/cc/repository/zero_trust/IFindingRepository.py similarity index 100% rename from monkey/monkey_island/cc/dal/zero_trust/IFindingRepository.py rename to monkey/monkey_island/cc/repository/zero_trust/IFindingRepository.py diff --git a/monkey/monkey_island/cc/dal/zero_trust/__init__.py b/monkey/monkey_island/cc/repository/zero_trust/__init__.py similarity index 100% rename from monkey/monkey_island/cc/dal/zero_trust/__init__.py rename to monkey/monkey_island/cc/repository/zero_trust/__init__.py