blob: 1382aa9b5239913d20a79df005f3429f859cc676 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002# Copyright (C) 2016 Intel Corporation
Brad Bishopc342db32019-05-15 21:57:59 -04003#
4# SPDX-License-Identifier: MIT
5#
Brad Bishop6e60e8b2018-02-01 10:27:11 -05006
7from abc import abstractmethod
8
9class 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