def ContainersDelete(self, containers, all_containers, force): c = Containers() args = self.Args() args.container = containers[0] args.containers = containers[1:] args.force = force args.all = all_containers c.set_args(args) return c.delete()
def ContainersDelete(self, containers, all_containers=False, force=False, storage=''): c = Containers() args = self.Args() assert(isinstance(containers, list)) args.containers = containers args.force = force args.assumeyes = True args.all = all_containers args.storage = storage if storage is not '' else None c.set_args(args) return c.delete()
def ContainersList(self): c = Containers() args = self.Args() args.all = True c.set_args(args) return json.dumps(c.ps())
def Ps(self): ps = Containers() ps.useTTY = False args = self.Args() ps.set_args(args) return json.dumps(ps.ps())