python-compute/node_agent/volume/volume.py
2023-08-27 23:42:56 +03:00

24 lines
367 B
Python

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