forked from p15670423/monkey
Agent: Change the method docstrings for IMaster
This commit is contained in:
parent
bd31cfd947
commit
082f034d58
|
@ -5,23 +5,18 @@ class IMaster(metaclass=abc.ABCMeta):
|
|||
@abc.abstractmethod
|
||||
def start(self) -> None:
|
||||
"""
|
||||
With the help of the puppet, starts and instructs the Agent to
|
||||
perform various actions like scanning or exploiting a specific host.
|
||||
Run the control logic that will instruct the Puppet to perform various actions like scanning
|
||||
or exploiting a specific host.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def terminate(self) -> None:
|
||||
"""
|
||||
Effectively marks the Agent as dead, telling all actions being
|
||||
performed by the Agent to stop.
|
||||
Stop the master and interrupt any actions that are currently being executed.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def cleanup(self) -> None:
|
||||
"""
|
||||
With the help of the puppet, instructs the Agent to cleanup whatever
|
||||
is required since the Agent was killed.
|
||||
Revert any changes that the master has directly or indirectly caused to the system.
|
||||
"""
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue