Rechercher une page de manuel
Sys::VirtV2V::GuestfsHandle.3pm
Langue: en
Version: 2010-07-01 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
Sys::VirtV2V::GuestfsHandle - Proxy Sys::Guestfs with custom close behaviourSYNOPSIS
use Sys::VirtV2V::GuestfsHandle; my $g = new Sys::VirtV2V::GuestfsHandle($storage, $transferiso); # GuestfsHandle proxies all Sys::Guestfs methods print join("\n", $g->list_devices()); # GuestfsHandle adds 2 new methods $g->add_on_close(sub { print "Bye!\n"; }); $g->close();
DESCRIPTION
Sys::VirtV2V::GuestfsHandle is a proxy to Sys::Guestfs which adds a custom close() method, and the ability to register pre-close callbacks.METHODS
- new(storage, transferiso, isrhev)
- Create a new object. Open a new Sys::Guestfs handle to proxy, using the disks defined in the array storage. Add transferiso as a read-only drive if it is given. If isrhev is true, the handle will use user and group 36:36.
- add_on_close
- Register a callback to be called before closing the underlying Sys::Guestfs handle.
- close
- Call all registered close callbacks, then close the Sys::Guestfs handle.
COPYRIGHT
Copyright (C) 2010 Red Hat Inc.LICENSE
Please see the file COPYING.LIB for the full license.SEE ALSO
virt-v2v(1), <http://libguestfs.org/>.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre