Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | # |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | # Copyright (C) 2016 Intel Corporation |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 6 | |
| 7 | from abc import abstractmethod |
| 8 | |
| 9 | class OETarget(object): |
| 10 | |
| 11 | def __init__(self, logger, *args, **kwargs): |
| 12 | self.logger = logger |
| 13 | |
| 14 | @abstractmethod |
| 15 | def start(self): |
| 16 | pass |
| 17 | |
| 18 | @abstractmethod |
| 19 | def stop(self): |
| 20 | pass |
| 21 | |
| 22 | @abstractmethod |
| 23 | def run(self, cmd, timeout=None): |
| 24 | pass |
| 25 | |
| 26 | @abstractmethod |
| 27 | def copyTo(self, localSrc, remoteDst): |
| 28 | pass |
| 29 | |
| 30 | @abstractmethod |
| 31 | def copyFrom(self, remoteSrc, localDst): |
| 32 | pass |
| 33 | |
| 34 | @abstractmethod |
| 35 | def copyDirTo(self, localSrc, remoteDst): |
| 36 | pass |