NAME

Sys::Async::Virt::Connection::Local - Connection to LibVirt server over Unix domain sockets

VERSION

v0.0.13

SYNOPSIS

use v5.26;
use Future::AsyncAwait;
use Sys::Async::Virt::Connection::Factory;

my $factory = Sys::Async::Virt::Connection::Factory->new;
my $conn    = $factory->create_connection( 'qemu:///system' );

DESCRIPTION

This module connects to a local LibVirt server through a Unix domain socket.

URL PARAMETERS

This connection driver supports these parameters in the query string of the URL, as per LibVirt's documentation:

  • mode (todo)

  • socket

    The path of the socket to be connected to.

CONSTRUCTOR

new

Not to be called directly. Instantiated via the connection factory (Sys::Async::Virt::Connection::Factory).

METHODS

connect

await $conn->connect;

is_secure

my $bool = $conn->is_secure;

Returns true.

SEE ALSO

LibVirt, Sys::Virt

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.