示例#1
0
 def StorageImport(self, graph, import_location):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.import_location = import_location
     storage.set_args(args)
     storage.Import()
示例#2
0
 def StorageImport(self, graph, import_location):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.import_location = import_location
     storage.set_args(args)
     storage.Import()
示例#3
0
 def storage_import(self, graph="/var/lib/docker", import_location="/var/lib/atomic/migrate"):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.import_loc = import_location
     storage.set_args(args)
     storage.Import()
示例#4
0
 def storage_modify(self, devices=[], driver = None):
     storage = Storage()
     args = self.Args()
     args.devices = devices
     args.driver = driver
     storage.set_args(args)
     storage.modify()
示例#5
0
 def StorageExport(self, graph="/var/lib/docker", export_location="/var/lib/atomic/migrate", force=False):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.export_location = export_location
     args.force = force
     storage.set_args(args)
     storage.Export()
示例#6
0
 def StorageExport(self, graph="/var/lib/docker", export_location="/var/lib/atomic/migrate", force = False):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.export_location = export_location
     args.force = force
     storage.set_args(args)
     storage.Export()
示例#7
0
 def StorageModify(self, devices=None, driver=None):
     storage = Storage()
     args = self.Args()
     if devices:
         args.devices = devices
     else:
         args.devices = []
     args.driver = driver
     storage.set_args(args)
     storage.modify()
示例#8
0
 def StorageModify(self, devices=None, driver=None):
     storage = Storage()
     args = self.Args()
     if devices:
         args.devices = devices
     else:
         args.devices = []
     args.driver = driver
     storage.set_args(args)
     storage.modify()
示例#9
0
 def StorageReset(self):
     storage = Storage()
     # No arguments are passed for storage_reset function
     args = self.Args()
     storage.set_args(args)
     storage.reset()
示例#10
0
 def StorageReset(self):
     storage = Storage()
     # No arguments are passed for storage_reset function
     args = self.Args()
     storage.set_args(args)
     storage.reset()