mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-21 06:21:43 -04:00

find -name '*.go' -exec sed -i 's/SPDX-License-Identifier: AGPL-3.0-only/SPDX-License-Identifier: BUSL-1.1/' {} +
24 lines
512 B
Go
24 lines
512 B
Go
//go:build !cgo
|
|
|
|
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
package virtwrapper
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/edgelesssys/constellation/v2/hack/qemu-metadata-api/dhcp"
|
|
)
|
|
|
|
// Connect wraps a libvirt connection.
|
|
type Connect struct{}
|
|
|
|
// GetDHCPLeases returns the underlying DHCP leases.
|
|
// This function errors if CGO is disabled.
|
|
func (n *Connect) GetDHCPLeases() ([]dhcp.NetworkDHCPLease, error) {
|
|
return nil, errors.New("using virtwrapper requires building with CGO")
|
|
}
|