python-compute/node_agent/volume/volume.py

24 lines
367 B
Python
Raw Normal View History

2023-08-27 23:42:56 +03:00
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