Initial commit
This commit is contained in:
commit
dcfd877bfd
15 changed files with 953 additions and 0 deletions
14
libvirtx/connect.go
Normal file
14
libvirtx/connect.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Copyright Entanglement Garden Developers
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package libvirtx
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"libvirt.org/go/libvirt"
|
||||
)
|
||||
|
||||
func New() (*libvirt.Connect, error) {
|
||||
logrus.Debug("connecting to libvirt")
|
||||
return libvirt.NewConnect("qemu:///system")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue