Versions in this module Expand all Collapse all v0 v0.1.0 Oct 19, 2018 Changes in this version + var ErrLibVirtConIsNil = errors.New("the libvirt connection was nil") + var WaitSleepInterval = 1 * time.Second + var WaitTimeout = 5 * time.Minute + func CreateDomain(name, ignKey, volumeName, hostName, networkInterfaceName, ... string, ...) error + func CreateIgntion(pool, name, content string, client *Client) error + func CreateNetwork(name, domain, bridge, mode string, addresses []string, autostart bool, ...) error + func CreateVolume(volumeName, poolName, baseVolumeID, source, volumeFormat string, ...) error + func DeleteDomain(name string, client *Client) error + func DeleteNetwork(name string, client *Client) error + func DeleteVolume(name string, client *Client) error + func DomainExists(name string, client *Client) (bool, error) + func DomainStateString(state libvirt.DomainState) string + func HasDHCP(net libvirtxml.Network) bool + func LookupDomainByName(name string, client *Client) (*libvirt.Domain, error) + func NodeAddresses(dom *libvirt.Domain) ([]corev1.NodeAddress, error) + type Client struct + func BuildClient(URI string) (*Client, error) + func (c *Client) Close() error + type Config struct + URI string + type Network interface + GetXMLDesc func(flags libvirt.NetworkXMLFlags) (string, error) + type StreamIO struct + Stream libvirt.Stream + func NewStreamIO(s libvirt.Stream) *StreamIO + func (sio *StreamIO) Close() error + func (sio *StreamIO) Read(p []byte) (int, error) + func (sio *StreamIO) Write(p []byte) (int, error)