Returns an iterator object of logs. Args: follow (bool, optional): Should the logs be followed. Defaults to False. Yields: Iterator[str]: Yields logs line by line.
(self, follow=True)
| 15 | |
| 16 | @abstractmethod |
| 17 | def logs(self, follow=True) -> Iterator[str]: |
| 18 | """Returns an iterator object of logs. |
| 19 | |
| 20 | Args: |
| 21 | follow (bool, optional): Should the logs be followed. Defaults to False. |
| 22 | |
| 23 | Yields: |
| 24 | Iterator[str]: Yields logs line by line. |
| 25 | """ |
| 26 | pass |
| 27 | |
| 28 | @abstractmethod |
| 29 | def cleanup(self, client: ContainerClientInterface | None = None) -> None: |
no outgoing calls