You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
467 B
Go
16 lines
467 B
Go
//go:build !libvirt
|
|
|
|
package hypervisor
|
|
|
|
// OpenLibvirt is unavailable in portable builds. Production host builds must
|
|
// opt into the official CGo adapter with -tags libvirt (and may additionally
|
|
// use the binding's libvirt_dlopen tag).
|
|
func OpenLibvirt(string, LocalConfig) (Hypervisor, error) {
|
|
return nil, NewError(
|
|
ErrUnavailable,
|
|
"libvirt_adapter_not_built",
|
|
"this binary was built without the libvirt adapter; rebuild with -tags libvirt",
|
|
nil,
|
|
)
|
|
}
|