Documentation
¶
Overview ¶
Package libvirt provides VM domain operations by running virsh commands inside the virt-launcher container via the Podman exec API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomainName ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListDomains ¶
type DomainInfo ¶
type DomainInfo struct {
Name string
State DomainState
CPUs int
MaxMemKiB uint64
UsedMemKiB uint64
}
type DomainState ¶
type DomainState string
const ( StateRunning DomainState = "running" StatePaused DomainState = "paused" StateShutOff DomainState = "shut off" StateShutting DomainState = "in shutdown" StateCrashed DomainState = "crashed" StateUnknown DomainState = "unknown" )
Click to show internal directories.
Click to hide internal directories.