NAME
Protocol::Sys::Virt::URI - Helper routines for parsing LibVirt URIs
VERSION
v10.3.9
SYNOPSIS
use Protocol::Sys::Virt::URI;
my %components = parse_url( 'qemu+ssh://user@password:host/system?param=value' );
DESCRIPTION
Helper functions operating on LibVirt hypervisor URLs.
FUNCTIONS
parse_url
my %components = parse_url( 'qemu+ssh://user@pass:hostname/system?param=value&mode=legacy&socket=/path/socket' );
# { base => 'qemu+ssh://user@password:host/system',
# bare => 'qemu:///system?mode=legacy&socket=/path/socket',
# query => { param => 'value', mode => 'legacy', socket => '/path/socket' },
# transport => 'ssh',
# hypervisor => 'qemu',
# username => 'user,
# password => 'pass',
# host => 'hostname',
# }
Splits the URL into the components necessary for use with the LibVirt API.
SEE ALSO
LICENSE AND COPYRIGHT
See the LICENSE file in this distribution.