Island: Reorder methods in ICredentialsRepository
This commit is contained in:
parent
cbed178549
commit
64e548957f
|
@ -15,24 +15,6 @@ class ICredentialsRepository(ABC):
|
||||||
"""
|
"""
|
||||||
pass
|
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]:
|
def get_stolen_credentials(self) -> Sequence[Credentials]:
|
||||||
"""
|
"""
|
||||||
Retrieve credentials that were stolen during a simulation.
|
Retrieve credentials that were stolen during a simulation.
|
||||||
|
@ -43,24 +25,6 @@ class ICredentialsRepository(ABC):
|
||||||
"""
|
"""
|
||||||
pass
|
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]:
|
def get_all_credentials(self) -> Sequence[Credentials]:
|
||||||
"""
|
"""
|
||||||
Retrieve all credentials in the repository.
|
Retrieve all credentials in the repository.
|
||||||
|
@ -71,6 +35,40 @@ class ICredentialsRepository(ABC):
|
||||||
"""
|
"""
|
||||||
pass
|
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):
|
def remove_all_credentials(self):
|
||||||
"""
|
"""
|
||||||
Remove all credentials in the repository.
|
Remove all credentials in the repository.
|
||||||
|
|
Loading…
Reference in New Issue