Esempio n. 1
0
class DockerLock(object):
    def __init__(self):
        self.containers = Containers(VOLUME_DRIVER_NAME)

    def acquire(self, volume):
        self.containers.stop(volume)

    def release(self, volume):
        self.containers.start(volume)
Esempio n. 2
0
class DockerLock(object):
    def __init__(self):
        self.containers = Containers(VOLUME_DRIVER_NAME)

    def acquire(self, volume):
        self.containers.stop(volume)

    def release(self, volume):
        self.containers.start(volume)
Esempio n. 3
0
 def __init__(self):
     self.containers = Containers(VOLUME_DRIVER_NAME)
Esempio n. 4
0
 def __init__(self):
     self.containers = Containers(VOLUME_DRIVER_NAME)