github.com/dustinrc/deis@v1.10.1-0.20150917223407-0894a5fb979e/controller/scheduler/__init__.py (about) 1 2 class AbstractSchedulerClient(object): 3 """ 4 A generic interface to a scheduler backend. 5 """ 6 7 def __init__(self, target, auth, options, pkey): 8 self.target = target 9 self.auth = auth 10 self.options = options 11 self.pkey = pkey 12 13 def create(self, name, image, command, **kwargs): 14 """Create a new container.""" 15 raise NotImplementedError 16 17 def destroy(self, name): 18 """Destroy a container.""" 19 raise NotImplementedError 20 21 def run(self, name, image, entrypoint, command): 22 """Run a one-off command.""" 23 raise NotImplementedError 24 25 def start(self, name): 26 """Start a container.""" 27 raise NotImplementedError 28 29 def state(self, name): 30 """Display the given job's running state.""" 31 raise NotImplementedError 32 33 def stop(self, name): 34 """Stop a container.""" 35 raise NotImplementedError