NAME

Sys::Async::Virt::StoragePool - Client side proxy to remote LibVirt storage pool

VERSION

v0.0.11

SYNOPSIS

DESCRIPTION

EVENTS

CONSTRUCTOR

new

METHODS

build

await $pool->build( $flags = 0 );
# -> (* no data *)

See documentation of virStoragePoolBuild.

create

await $pool->create( $flags = 0 );
# -> (* no data *)

See documentation of virStoragePoolCreate.

delete

await $pool->delete( $flags = 0 );
# -> (* no data *)

See documentation of virStoragePoolDelete.

destroy

await $pool->destroy;
# -> (* no data *)

See documentation of virStoragePoolDestroy.

get_autostart

$autostart = await $pool->get_autostart;

See documentation of virStoragePoolGetAutostart.

get_info

await $pool->get_info;
# -> { allocation => $allocation,
#      available => $available,
#      capacity => $capacity,
#      state => $state }

See documentation of virStoragePoolGetInfo.

get_xml_desc

$xml = await $pool->get_xml_desc( $flags = 0 );

See documentation of virStoragePoolGetXMLDesc.

is_active

$active = await $pool->is_active;

See documentation of virStoragePoolIsActive.

is_persistent

$persistent = await $pool->is_persistent;

See documentation of virStoragePoolIsPersistent.

list_all_volumes

$vols = await $pool->list_all_volumes( $flags = 0 );

See documentation of virStoragePoolListAllVolumes.

list_volumes

$names = await $pool->list_volumes;

See documentation of virStoragePoolListVolumes.

num_of_volumes

$num = await $pool->num_of_volumes;

See documentation of virStoragePoolNumOfVolumes.

refresh

await $pool->refresh( $flags = 0 );
# -> (* no data *)

See documentation of virStoragePoolRefresh.

set_autostart

await $pool->set_autostart( $autostart );
# -> (* no data *)

See documentation of virStoragePoolSetAutostart.

undefine

await $pool->undefine;
# -> (* no data *)

See documentation of virStoragePoolUndefine.

vol_create_xml

$vol = await $pool->vol_create_xml( $xml, $flags = 0 );

See documentation of virStorageVolCreateXML.

vol_create_xml_from

$vol = await $pool->vol_create_xml_from( $xml, $clonevol, $flags = 0 );

See documentation of virStorageVolCreateXMLFrom.

vol_lookup_by_name

$vol = await $pool->vol_lookup_by_name( $name );

See documentation of virStorageVolLookupByName.

INTERNAL METHODS

CONSTANTS

INACTIVE
BUILDING
RUNNING
DEGRADED
INACCESSIBLE
BUILD_NEW
BUILD_REPAIR
BUILD_RESIZE
BUILD_NO_OVERWRITE
BUILD_OVERWRITE
DELETE_NORMAL
DELETE_ZEROED
XML_INACTIVE
EVENT_DEFINED
EVENT_UNDEFINED
EVENT_STARTED
EVENT_STOPPED
EVENT_CREATED
EVENT_DELETED

SEE ALSO

LibVirt, Sys::Virt

LICENSE AND COPYRIGHT

Copyright (C) 2024 Erik Huelsmann

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.