Documentation
¶
Index ¶
- Constants
- type DomainManager
- type LibvirtDomainManager
- func (l *LibvirtDomainManager) CancelVMIMigration(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) DeleteVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) Exec(domainName, command string, args []string, timeoutSeconds int32) (string, error)
- func (l *LibvirtDomainManager) FinalizeVirtualMachineMigration(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) FreezeVMI(vmi *v1.VirtualMachineInstance, unfreezeTimeoutSeconds int32) error
- func (l *LibvirtDomainManager) GetDomainStats() ([]*stats.DomainStats, error)
- func (l *LibvirtDomainManager) GetFilesystems() ([]v1.VirtualMachineInstanceFileSystem, error)
- func (l *LibvirtDomainManager) GetGuestInfo() (v1.VirtualMachineInstanceGuestAgentInfo, error)
- func (l *LibvirtDomainManager) GetGuestOSInfo() *api.GuestOSInfo
- func (l *LibvirtDomainManager) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error)
- func (l *LibvirtDomainManager) GuestPing(domainName string) error
- func (l *LibvirtDomainManager) HotplugHostDevices(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) InterfacesStatus() []api.InterfaceStatus
- func (l *LibvirtDomainManager) KillVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) ListAllDomains() ([]*api.Domain, error)
- func (l *LibvirtDomainManager) MarkGracefulShutdownVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) MemoryDump(vmi *v1.VirtualMachineInstance, dumpPath string) error
- func (l *LibvirtDomainManager) MigrateVMI(vmi *v1.VirtualMachineInstance, options *cmdclient.MigrationOptions) error
- func (l *LibvirtDomainManager) PauseVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) PrepareMigrationTarget(vmi *v1.VirtualMachineInstance, allowEmulation bool, ...) error
- func (l *LibvirtDomainManager) SignalShutdownVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) SoftRebootVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) SyncVMI(vmi *v1.VirtualMachineInstance, allowEmulation bool, ...) (*api.DomainSpec, error)
- func (l *LibvirtDomainManager) UnfreezeVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) UnpauseVMI(vmi *v1.VirtualMachineInstance) error
- type MockDomainManager
- func (_m *MockDomainManager) CancelVMIMigration(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) DeleteVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder
- func (_m *MockDomainManager) Exec(_param0 string, _param1 string, _param2 []string, _param3 int32) (string, error)
- func (_m *MockDomainManager) FinalizeVirtualMachineMigration(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) FreezeVMI(_param0 *v1.VirtualMachineInstance, _param1 int32) error
- func (_m *MockDomainManager) GetDomainStats() ([]*stats.DomainStats, error)
- func (_m *MockDomainManager) GetFilesystems() ([]v1.VirtualMachineInstanceFileSystem, error)
- func (_m *MockDomainManager) GetGuestInfo() (v1.VirtualMachineInstanceGuestAgentInfo, error)
- func (_m *MockDomainManager) GetGuestOSInfo() *api.GuestOSInfo
- func (_m *MockDomainManager) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error)
- func (_m *MockDomainManager) GuestPing(_param0 string) error
- func (_m *MockDomainManager) HotplugHostDevices(vmi *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) InterfacesStatus() []api.InterfaceStatus
- func (_m *MockDomainManager) KillVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) ListAllDomains() ([]*api.Domain, error)
- func (_m *MockDomainManager) MarkGracefulShutdownVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) MemoryDump(vmi *v1.VirtualMachineInstance, dumpPath string) error
- func (_m *MockDomainManager) MigrateVMI(_param0 *v1.VirtualMachineInstance, _param1 *cmd_client.MigrationOptions) error
- func (_m *MockDomainManager) PauseVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) PrepareMigrationTarget(_param0 *v1.VirtualMachineInstance, _param1 bool, ...) error
- func (_m *MockDomainManager) SignalShutdownVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) SoftRebootVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) SyncVMI(_param0 *v1.VirtualMachineInstance, _param1 bool, ...) (*api.DomainSpec, error)
- func (_m *MockDomainManager) UnfreezeVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) UnpauseVMI(_param0 *v1.VirtualMachineInstance) error
Constants ¶
const ( PCI_RESOURCE_PREFIX = "PCI_RESOURCE" MDEV_RESOURCE_PREFIX = "MDEV_PCI_RESOURCE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainManager ¶
type DomainManager interface { SyncVMI(*v1.VirtualMachineInstance, bool, *cmdv1.VirtualMachineOptions) (*api.DomainSpec, error) PauseVMI(*v1.VirtualMachineInstance) error UnpauseVMI(*v1.VirtualMachineInstance) error FreezeVMI(*v1.VirtualMachineInstance, int32) error UnfreezeVMI(*v1.VirtualMachineInstance) error SoftRebootVMI(*v1.VirtualMachineInstance) error KillVMI(*v1.VirtualMachineInstance) error DeleteVMI(*v1.VirtualMachineInstance) error SignalShutdownVMI(*v1.VirtualMachineInstance) error MarkGracefulShutdownVMI(*v1.VirtualMachineInstance) error ListAllDomains() ([]*api.Domain, error) MigrateVMI(*v1.VirtualMachineInstance, *cmdclient.MigrationOptions) error PrepareMigrationTarget(*v1.VirtualMachineInstance, bool, *cmdv1.VirtualMachineOptions) error GetDomainStats() ([]*stats.DomainStats, error) CancelVMIMigration(*v1.VirtualMachineInstance) error GetGuestInfo() (v1.VirtualMachineInstanceGuestAgentInfo, error) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error) GetFilesystems() ([]v1.VirtualMachineInstanceFileSystem, error) FinalizeVirtualMachineMigration(*v1.VirtualMachineInstance) error HotplugHostDevices(vmi *v1.VirtualMachineInstance) error InterfacesStatus() []api.InterfaceStatus GetGuestOSInfo() *api.GuestOSInfo Exec(string, string, []string, int32) (string, error) GuestPing(string) error MemoryDump(vmi *v1.VirtualMachineInstance, dumpPath string) error }
func NewLibvirtDomainManager ¶
func NewLibvirtDomainManager(connection cli.Connection, virtShareDir, ephemeralDiskDir string, agentStore *agentpoller.AsyncAgentStore, ovmfPath string, ephemeralDiskCreator ephemeraldisk.EphemeralDiskCreatorInterface) (DomainManager, error)
type LibvirtDomainManager ¶
type LibvirtDomainManager struct {
// contains filtered or unexported fields
}
func (*LibvirtDomainManager) CancelVMIMigration ¶ added in v0.16.0
func (l *LibvirtDomainManager) CancelVMIMigration(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) DeleteVMI ¶ added in v0.8.0
func (l *LibvirtDomainManager) DeleteVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) FinalizeVirtualMachineMigration ¶ added in v0.40.0
func (l *LibvirtDomainManager) FinalizeVirtualMachineMigration(vmi *v1.VirtualMachineInstance) error
FinalizeVirtualMachineMigration finalized the migration after the migration has completed and vmi is running on target pod.
func (*LibvirtDomainManager) FreezeVMI ¶ added in v0.44.1
func (l *LibvirtDomainManager) FreezeVMI(vmi *v1.VirtualMachineInstance, unfreezeTimeoutSeconds int32) error
func (*LibvirtDomainManager) GetDomainStats ¶ added in v0.15.0
func (l *LibvirtDomainManager) GetDomainStats() ([]*stats.DomainStats, error)
func (*LibvirtDomainManager) GetFilesystems ¶ added in v0.28.0
func (l *LibvirtDomainManager) GetFilesystems() ([]v1.VirtualMachineInstanceFileSystem, error)
GetFilesystems return the full list of filesystems on the guest machine
func (*LibvirtDomainManager) GetGuestInfo ¶ added in v0.27.0
func (l *LibvirtDomainManager) GetGuestInfo() (v1.VirtualMachineInstanceGuestAgentInfo, error)
GetGuestInfo queries the agent store and return the aggregated data from Guest agent
func (*LibvirtDomainManager) GetGuestOSInfo ¶ added in v0.36.4
func (l *LibvirtDomainManager) GetGuestOSInfo() *api.GuestOSInfo
GetGuestOSInfo returns the Guest OS version and architecture
func (*LibvirtDomainManager) GetUsers ¶ added in v0.28.0
func (l *LibvirtDomainManager) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error)
GetUsers return the full list of users on the guest machine
func (*LibvirtDomainManager) GuestPing ¶ added in v0.44.1
func (l *LibvirtDomainManager) GuestPing(domainName string) error
func (*LibvirtDomainManager) HotplugHostDevices ¶ added in v0.50.0
func (l *LibvirtDomainManager) HotplugHostDevices(vmi *v1.VirtualMachineInstance) error
HotplugHostDevices attach host-devices to running domain, currently only SRIOV host-devices are supported. This operation runs in the background, only one hotplug operation can occur at a time.
func (*LibvirtDomainManager) InterfacesStatus ¶ added in v0.36.4
func (l *LibvirtDomainManager) InterfacesStatus() []api.InterfaceStatus
InterfacesStatus returns the interfaces Guest Agent reported
func (*LibvirtDomainManager) KillVMI ¶ added in v0.6.1
func (l *LibvirtDomainManager) KillVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) ListAllDomains ¶
func (l *LibvirtDomainManager) ListAllDomains() ([]*api.Domain, error)
func (*LibvirtDomainManager) MarkGracefulShutdownVMI ¶ added in v0.29.0
func (l *LibvirtDomainManager) MarkGracefulShutdownVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) MemoryDump ¶ added in v0.54.0
func (l *LibvirtDomainManager) MemoryDump(vmi *v1.VirtualMachineInstance, dumpPath string) error
func (*LibvirtDomainManager) MigrateVMI ¶ added in v0.9.2
func (l *LibvirtDomainManager) MigrateVMI(vmi *v1.VirtualMachineInstance, options *cmdclient.MigrationOptions) error
func (*LibvirtDomainManager) PauseVMI ¶ added in v0.24.0
func (l *LibvirtDomainManager) PauseVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) PrepareMigrationTarget ¶ added in v0.9.2
func (l *LibvirtDomainManager) PrepareMigrationTarget( vmi *v1.VirtualMachineInstance, allowEmulation bool, options *cmdv1.VirtualMachineOptions, ) error
PrepareMigrationTarget the target pod environment before the migration is initiated
func (*LibvirtDomainManager) SignalShutdownVMI ¶ added in v0.6.1
func (l *LibvirtDomainManager) SignalShutdownVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) SoftRebootVMI ¶ added in v0.48.0
func (l *LibvirtDomainManager) SoftRebootVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) SyncVMI ¶ added in v0.6.1
func (l *LibvirtDomainManager) SyncVMI(vmi *v1.VirtualMachineInstance, allowEmulation bool, options *cmdv1.VirtualMachineOptions) (*api.DomainSpec, error)
func (*LibvirtDomainManager) UnfreezeVMI ¶ added in v0.44.1
func (l *LibvirtDomainManager) UnfreezeVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) UnpauseVMI ¶ added in v0.24.0
func (l *LibvirtDomainManager) UnpauseVMI(vmi *v1.VirtualMachineInstance) error
type MockDomainManager ¶
type MockDomainManager struct {
// contains filtered or unexported fields
}
Mock of DomainManager interface
func NewMockDomainManager ¶
func NewMockDomainManager(ctrl *gomock.Controller) *MockDomainManager
func (*MockDomainManager) CancelVMIMigration ¶ added in v0.16.0
func (_m *MockDomainManager) CancelVMIMigration(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) DeleteVMI ¶ added in v0.8.0
func (_m *MockDomainManager) DeleteVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) EXPECT ¶
func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder
func (*MockDomainManager) FinalizeVirtualMachineMigration ¶ added in v0.40.0
func (_m *MockDomainManager) FinalizeVirtualMachineMigration(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) FreezeVMI ¶ added in v0.44.1
func (_m *MockDomainManager) FreezeVMI(_param0 *v1.VirtualMachineInstance, _param1 int32) error
func (*MockDomainManager) GetDomainStats ¶ added in v0.15.0
func (_m *MockDomainManager) GetDomainStats() ([]*stats.DomainStats, error)
func (*MockDomainManager) GetFilesystems ¶ added in v0.28.0
func (_m *MockDomainManager) GetFilesystems() ([]v1.VirtualMachineInstanceFileSystem, error)
func (*MockDomainManager) GetGuestInfo ¶ added in v0.27.0
func (_m *MockDomainManager) GetGuestInfo() (v1.VirtualMachineInstanceGuestAgentInfo, error)
func (*MockDomainManager) GetGuestOSInfo ¶ added in v0.36.4
func (_m *MockDomainManager) GetGuestOSInfo() *api.GuestOSInfo
func (*MockDomainManager) GetUsers ¶ added in v0.28.0
func (_m *MockDomainManager) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error)
func (*MockDomainManager) GuestPing ¶ added in v0.44.1
func (_m *MockDomainManager) GuestPing(_param0 string) error
func (*MockDomainManager) HotplugHostDevices ¶ added in v0.50.0
func (_m *MockDomainManager) HotplugHostDevices(vmi *v1.VirtualMachineInstance) error
func (*MockDomainManager) InterfacesStatus ¶ added in v0.36.4
func (_m *MockDomainManager) InterfacesStatus() []api.InterfaceStatus
func (*MockDomainManager) KillVMI ¶ added in v0.6.1
func (_m *MockDomainManager) KillVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) ListAllDomains ¶
func (_m *MockDomainManager) ListAllDomains() ([]*api.Domain, error)
func (*MockDomainManager) MarkGracefulShutdownVMI ¶ added in v0.29.0
func (_m *MockDomainManager) MarkGracefulShutdownVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) MemoryDump ¶ added in v0.54.0
func (_m *MockDomainManager) MemoryDump(vmi *v1.VirtualMachineInstance, dumpPath string) error
func (*MockDomainManager) MigrateVMI ¶ added in v0.9.2
func (_m *MockDomainManager) MigrateVMI(_param0 *v1.VirtualMachineInstance, _param1 *cmd_client.MigrationOptions) error
func (*MockDomainManager) PauseVMI ¶ added in v0.24.0
func (_m *MockDomainManager) PauseVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) PrepareMigrationTarget ¶ added in v0.9.2
func (_m *MockDomainManager) PrepareMigrationTarget(_param0 *v1.VirtualMachineInstance, _param1 bool, _param2 *v10.VirtualMachineOptions) error
func (*MockDomainManager) SignalShutdownVMI ¶ added in v0.6.1
func (_m *MockDomainManager) SignalShutdownVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) SoftRebootVMI ¶ added in v0.48.0
func (_m *MockDomainManager) SoftRebootVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) SyncVMI ¶ added in v0.6.1
func (_m *MockDomainManager) SyncVMI(_param0 *v1.VirtualMachineInstance, _param1 bool, _param2 *v10.VirtualMachineOptions) (*api.DomainSpec, error)
func (*MockDomainManager) UnfreezeVMI ¶ added in v0.44.1
func (_m *MockDomainManager) UnfreezeVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) UnpauseVMI ¶ added in v0.24.0
func (_m *MockDomainManager) UnpauseVMI(_param0 *v1.VirtualMachineInstance) error
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |