Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDomain(ctx context.Context, libvirtClient *libvirtClient, v *vmConfig) (result *createDomainOutput, err error)
- func DeleteDomain(ctx context.Context, libvirtClient *libvirtClient, id string) (err error)
- func GetDomainCapabilities(conn *libvirt.Connect, emulatorbin string, arch string, machine string, ...) (*libvirtxml.DomainCaps, error)
- func NewLibvirtClient(libvirtCfg Config) (*libvirtClient, error)
- func NewProvider(config *Config) (provider.Provider, error)
- type Config
- type LaunchSecurityType
- type Manager
Constants ¶
View Source
const ( // The amount of retries to get the domain IP addresses GetDomainIPsRetries = 20 // The sleep time between retries to get the domain IP addresses GetDomainIPsSleep = time.Second * 3 )
Variables ¶
View Source
var ErrVolumeNotFound = errors.New("Domain not found")
ErrVolumeNotFound is returned when a domain is not found
Functions ¶
func CreateDomain ¶
func DeleteDomain ¶
func GetDomainCapabilities ¶
func GetDomainCapabilities(conn *libvirt.Connect, emulatorbin string, arch string, machine string, virttype string, flags uint32) (*libvirtxml.DomainCaps, error)
func NewLibvirtClient ¶
Types ¶
type LaunchSecurityType ¶
type LaunchSecurityType int
const ( NoLaunchSecurity LaunchSecurityType = iota SEV S390PV )
func GetLaunchSecurityType ¶
func GetLaunchSecurityType(uri string) (LaunchSecurityType, error)
Attempts to determine launchSecurity Type from domain capabilities and hardware Currently only supports SEV and S390PV
func (LaunchSecurityType) String ¶
func (l LaunchSecurityType) String() string
Click to show internal directories.
Click to hide internal directories.