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(storage, transferiso, isrhev)
27           Create a new object. Open a new Sys::Guestfs handle to proxy, using
28           the disks defined in the array storage. Add transferiso as a read-
29           only drive if it is given. If isrhev is true, the handle will use
30           user and group 36:36.
31
32       is_alive
33           Return 1 if the underlying Sys::Guestfs handle is still connected
34           to a running daemon, 0 otherwise.
35
36       add_on_close
37           Register a callback to be called before closing the underlying
38           Sys::Guestfs handle.
39
40       close
41           Call all registered close callbacks, then close the Sys::Guestfs
42           handle.
43
45       Copyright (C) 2010 Red Hat Inc.
46

LICENSE

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

SEE ALSO

51       virt-v2v(1), <http://libguestfs.org/>.
52
53
54
55perl v5.12.3                      2011-08-30Sys::VirtConvert::GuestfsHandle(3)
Impressum