NAME
Sys::Async::Virt::DomainSnapshot - Client side proxy to remote LibVirt domain snapshot
VERSION
v0.0.9
SYNOPSIS
use Future::AsyncAwait;
my $domain = await $virt->domain_lookup_by_name( 'domain' );
my $snap = await $domain->snapshot_lookup_by_name( 'snap' );
say await $snap->num_children;
DESCRIPTION
EVENTS
There are no (LibVirt) events available for snapshots.
CONSTRUCTOR
new
Not to be called directly. Various API calls return instances of this type.
METHODS
delete
await $snapshot->delete( $flags = 0 );
# -> (* no data *)
See documentation of virDomainSnapshotDelete.
get_parent
$snap = await $snapshot->get_parent( $flags = 0 );
See documentation of virDomainSnapshotGetParent.
get_xml_desc
$xml = await $snapshot->get_xml_desc( $flags = 0 );
See documentation of virDomainSnapshotGetXMLDesc.
has_metadata
$metadata = await $snapshot->has_metadata( $flags = 0 );
See documentation of virDomainSnapshotHasMetadata.
is_current
$current = await $snapshot->is_current( $flags = 0 );
See documentation of virDomainSnapshotIsCurrent.
list_all_children
$snapshots = await $snapshot->list_all_children( $flags = 0 );
See documentation of virDomainSnapshotListAllChildren.
list_children_names
$names = await $snapshot->list_children_names( $flags = 0 );
See documentation of virDomainSnapshotListChildrenNames.
num_children
$num = await $snapshot->num_children( $flags = 0 );
See documentation of virDomainSnapshotNumChildren.
revert_to_snapshot
await $snapshot->revert_to_snapshot( $flags = 0 );
# -> (* no data *)
See documentation of virDomainRevertToSnapshot.
INTERNAL METHODS
CONSTANTS
- XML_SECURE
- LIST_ROOTS
- LIST_DESCENDANTS
- LIST_LEAVES
- LIST_NO_LEAVES
- LIST_METADATA
- LIST_NO_METADATA
- LIST_INACTIVE
- LIST_ACTIVE
- LIST_DISK_ONLY
- LIST_INTERNAL
- LIST_EXTERNAL
- LIST_TOPOLOGICAL
- REVERT_RUNNING
- REVERT_PAUSED
- REVERT_FORCE
- REVERT_RESET_NVRAM
- DELETE_CHILDREN
- DELETE_METADATA_ONLY
- DELETE_CHILDREN_ONLY
SEE ALSO
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.