File size: 453 Bytes
c745a99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Abstract base class for environment backend strategies."""

from abc import ABC, abstractmethod


class EnvironmentStrategy(ABC):
    @abstractmethod
    def reset_environment(self) -> None: ...

    @abstractmethod
    def get_infra_state(self) -> dict: ...

    @abstractmethod
    def get_service_help(self, service_name: str) -> tuple[bool, str]: ...

    @abstractmethod
    def execute_command(self, command: str) -> tuple[bool, str, str]: ...