Island: Reorder methods in ICredentialsRepository

This commit is contained in:
Mike Salvatore 2022-07-05 10:59:28 -04:00
parent cbed178549
commit 64e548957f
1 changed files with 34 additions and 36 deletions

View File

@ -15,24 +15,6 @@ class ICredentialsRepository(ABC):
"""
pass
def save_configured_credentials(self, credentials: Credentials):
"""
Save credentials that were configured.
:param credentials: Configured Credentials to store in the repository
:raises StorageError: If an error is encountered while attempting to store configured
credentials
"""
pass
def remove_configured_credentials(self):
"""
Remove credentials that were configured from the repository.
:raises RemovalError: If an error is encountered while attempting to remove the credentials
"""
pass
def get_stolen_credentials(self) -> Sequence[Credentials]:
"""
Retrieve credentials that were stolen during a simulation.
@ -43,24 +25,6 @@ class ICredentialsRepository(ABC):
"""
pass
def save_stolen_credentials(self, credentials: Credentials):
"""
Save credentials that were stolen during a simulation.
:param credentials: Stolen Credentials to store in the repository
:raises StorageError: If an error is encountered while attempting to store stolen
credentials
"""
pass
def remove_stolen_credentials(self):
"""
Remove stolen credentials from the repository.
:raises RemovalError: If an error is encountered while attempting to remove the credentials
"""
pass
def get_all_credentials(self) -> Sequence[Credentials]:
"""
Retrieve all credentials in the repository.
@ -71,6 +35,40 @@ class ICredentialsRepository(ABC):
"""
pass
def save_configured_credentials(self, credentials: Credentials):
"""
Save credentials that were configured.
:param credentials: Configured Credentials to store in the repository
:raises StorageError: If an error is encountered while attempting to store the credentials
"""
pass
def save_stolen_credentials(self, credentials: Credentials):
"""
Save credentials that were stolen during a simulation.
:param credentials: Stolen Credentials to store in the repository
:raises StorageError: If an error is encountered while attempting to store the credentials
"""
pass
def remove_configured_credentials(self):
"""
Remove credentials that were configured from the repository.
:raises RemovalError: If an error is encountered while attempting to remove the credentials
"""
pass
def remove_stolen_credentials(self):
"""
Remove stolen credentials from the repository.
:raises RemovalError: If an error is encountered while attempting to remove the credentials
"""
pass
def remove_all_credentials(self):
"""
Remove all credentials in the repository.