virtwrapper

package
v2.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connect

type Connect struct {
	Conn *libvirt.Connect
}

Connect wraps a libvirt connection.

func (*Connect) LookupNetworkByName

func (c *Connect) LookupNetworkByName(name string) (*Network, error)

LookupNetworkByName looks up a network by name.

type Network

type Network struct {
	Net virNetwork
}

Network wraps a libvirt network.

func (*Network) Free

func (n *Network) Free()

Free the network resource.

func (*Network) GetDHCPLeases

func (n *Network) GetDHCPLeases() ([]NetworkDHCPLease, error)

GetDHCPLeases returns the underlying DHCP leases.

type NetworkDHCPLease

type NetworkDHCPLease struct {
	IPaddr   string
	Hostname string
}

NetworkDHCPLease abstracts a libvirt DHCP lease.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL