Documentation
¶
Index ¶
Constants ¶
View Source
const ( // URI for running in test mode TestURI = "test:///default" // Known domain states DomainRunning = "running" DomainNoState = "unknown" DomainBlocked = "blocked" DomainPaused = "paused" DomainShutdown = "shutdown" DomainCrashed = "crashed" DomainPMSuspended = "pmsuspended" DomainShutOff = "shutoff" Name = "libvirt" // Name of the provider. )
Variables ¶
View Source
var ( ErrConnectionClosed = errors.New("libvirt connection is closed") ErrDomainExists = errors.New("the domain exists already") ErrDomainNotFound = fmt.Errorf("domain %w", errs.ErrNotFound) ErrPoolNotFound = fmt.Errorf("storage pool %w", errs.ErrNotFound) )
Functions ¶
func ConfigSpec ¶
ConfigSpec returns the HCL spec for the libvirt provider configuration.
func ModifyMountFsAvailability ¶
func ModifyMountFsAvailability(fn mountFsAvailabilityFn)
ModifyMountFsAvailability is provided for testing to override the available filesystems for guest mounts.
Types ¶
Click to show internal directories.
Click to hide internal directories.