This commit is contained in:
ge
2023-08-27 23:42:56 +03:00
parent 91478b8122
commit e8133af392
17 changed files with 722 additions and 341 deletions

View File

@ -0,0 +1,9 @@
import libvirt
class StoragePool:
def __init__(self, pool: libvirt.virStoragePool):
self.pool = pool
def create_volume(self):
pass

View File

@ -0,0 +1,23 @@
import libvirt
class VolumeInfo:
"""
Volume info schema
{'type': 'local', 'system': True, 'size': 102400, 'mode': 'rw'}
"""
pass
class Volume:
def __init__(self, pool: libvirt.virStorageVol):
self.pool = pool
def lookup_by_path(self):
pass
def generate_xml(self):
pass
def create(self):
pass