forked from p15670423/monkey
Island: Protract config -> configuration in IConfigurationRepository
This commit is contained in:
parent
59e29456c0
commit
91476a7a06
|
@ -3,12 +3,12 @@ from abc import ABC
|
||||||
from common.configuration import AgentConfiguration
|
from common.configuration import AgentConfiguration
|
||||||
|
|
||||||
|
|
||||||
class IConfigRepository(ABC):
|
class IConfigurationRepository(ABC):
|
||||||
"""
|
"""
|
||||||
A repository used to store and retrieve the agent configuration.
|
A repository used to store and retrieve the agent configuration.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def get_config(self) -> AgentConfiguration:
|
def get_configuration(self) -> AgentConfiguration:
|
||||||
"""
|
"""
|
||||||
Retrieve the agent configuration from the repository
|
Retrieve the agent configuration from the repository
|
||||||
|
|
||||||
|
@ -16,10 +16,10 @@ class IConfigRepository(ABC):
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def set_config(self, agent_config: AgentConfiguration):
|
def set_configuration(self, agent_configuration: AgentConfiguration):
|
||||||
"""
|
"""
|
||||||
Store the agent configuration in the repository
|
Store the agent configuration in the repository
|
||||||
|
|
||||||
:param agent_config: The agent configuration to store in the repository
|
:param agent_configuration: The agent configuration to store in the repository
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue