__init__.py 629 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2016 Intel Corporation
  3. #
  4. # SPDX-License-Identifier: MIT
  5. #
  6. from abc import abstractmethod
  7. class OETarget(object):
  8. def __init__(self, logger, *args, **kwargs):
  9. self.logger = logger
  10. @abstractmethod
  11. def start(self):
  12. pass
  13. @abstractmethod
  14. def stop(self):
  15. pass
  16. @abstractmethod
  17. def run(self, cmd, timeout=None):
  18. pass
  19. @abstractmethod
  20. def copyTo(self, localSrc, remoteDst):
  21. pass
  22. @abstractmethod
  23. def copyFrom(self, remoteSrc, localDst):
  24. pass
  25. @abstractmethod
  26. def copyDirTo(self, localSrc, remoteDst):
  27. pass