1Sys::VirtConvert::GuestUfsseHranCdolnet(r3i)buted Perl DSoycsu:m:eVnitrattCioonnvert::GuestfsHandle(3)
2
3
4

NAME

6       Sys::VirtConvert::GuestfsHandle - Proxy Sys::Guestfs with custom close
7       behaviour
8

SYNOPSIS

10        use Sys::VirtConvert::GuestfsHandle;
11
12        my $g = new Sys::VirtConvert::GuestfsHandle($storage, $transferiso);
13
14        # GuestfsHandle proxies all Sys::Guestfs methods
15        print join("\n", $g->list_devices());
16
17        # GuestfsHandle adds 2 new methods
18        $g->add_on_close(sub { print "Bye!\n"; });
19        $g->close();
20

DESCRIPTION

22       Sys::VirtConvert::GuestfsHandle is a proxy to Sys::Guestfs which adds a
23       custom close() method, and the ability to register pre-close callbacks.
24

METHODS

26       new(disks, transferiso, isrhev)
27           Create a new object. Open a new Sys::Guestfs handle to proxy, using
28           the disks defined in disks, which is list of disk metadata defined
29           as: [ [ name, path, format ], ... ]. Add transferiso as a read-only
30           drive if it is given. If isrhev is true, the handle will use user
31           and group vdsm:kvm.
32
33       is_alive
34           Return 1 if the underlying Sys::Guestfs handle is still connected
35           to a running daemon, 0 otherwise.
36
37       add_on_close
38           Register a callback to be called before closing the underlying
39           Sys::Guestfs handle.
40
41       close
42           Call all registered close callbacks, then close the Sys::Guestfs
43           handle.
44
46       Copyright (C) 2010 Red Hat Inc.
47

LICENSE

49       Please see the file COPYING.LIB for the full license.
50

SEE ALSO

52       virt-v2v(1), <http://libguestfs.org/>.
53
54
55
56perl v5.10.1                      2013-12-03Sys::VirtConvert::GuestfsHandle(3)
Impressum