From 6cc8948ebf37b788f912545ae980300dd59a4ae8 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 13 Sep 2022 19:09:55 -0400 Subject: [PATCH] Island: Add INodeRepository.reset() --- monkey/monkey_island/cc/repository/i_node_repository.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/monkey/monkey_island/cc/repository/i_node_repository.py b/monkey/monkey_island/cc/repository/i_node_repository.py index b8ea0c49d..d848d58fe 100644 --- a/monkey/monkey_island/cc/repository/i_node_repository.py +++ b/monkey/monkey_island/cc/repository/i_node_repository.py @@ -33,3 +33,12 @@ class INodeRepository(ABC): :return: All known Nodes :raises RetrievalError: If an error occurred while attempting to retrieve the nodes """ + + @abstractmethod + def reset(self): + """ + Removes all data from the repository + + :raises RemovalError: If an error occurred while attempting to remove all `Nodes` from the + repository + """