Versions in this module Expand all Collapse all v0 v0.1.0 Feb 20, 2023 Changes in this version + const StoragePoolTypeDir + const StoragePoolTypeLVM + type DirPool struct + func NewDirPool(pool *libvirt.StoragePool) (DirPool, error) + func (p DirPool) CreateVolume(name string, sizeGB uint64) (*libvirt.StorageVol, error) + func (p DirPool) DeleteVolume(name string) error + func (p DirPool) GetDomainDiskXML(name string) libvirtxml.DomainDisk + func (p DirPool) GetVolumeName(name string) string + func (p DirPool) LookupVolume(name string) (*libvirt.StorageVol, error) + func (p DirPool) ResizeVolume(name string, newDiskSizeGB uint64) error + func (p DirPool) Type() StoragePoolType + type LogicalPool struct + func NewLogicalPool(pool *libvirt.StoragePool) (LogicalPool, error) + func (p LogicalPool) CreateVolume(name string, sizeGB uint64) (*libvirt.StorageVol, error) + func (p LogicalPool) DeleteVolume(name string) error + func (p LogicalPool) GetDomainDiskXML(name string) libvirtxml.DomainDisk + func (p LogicalPool) GetVolumeName(name string) string + func (p LogicalPool) LookupVolume(name string) (*libvirt.StorageVol, error) + func (p LogicalPool) ResizeVolume(name string, newDiskSizeGB uint64) error + func (p LogicalPool) Type() StoragePoolType + type PoolType interface + CreateVolume func(string, uint64) (*libvirt.StorageVol, error) + DeleteVolume func(string) error + GetDomainDiskXML func(string) libvirtxml.DomainDisk + GetVolumeName func(string) string + LookupVolume func(string) (*libvirt.StorageVol, error) + ResizeVolume func(string, uint64) error + Type func() StoragePoolType + func GetPool(conn *libvirt.Connect) (PoolType, error) + type StoragePoolType string