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) FinalizeVirtualMachineMigration(vmi *v1.VirtualMachineInstance) 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) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error)
- 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) MigrateVMI(vmi *v1.VirtualMachineInstance, options *cmdclient.MigrationOptions) error
- func (l *LibvirtDomainManager) PauseVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) PrepareMigrationTarget(vmi *v1.VirtualMachineInstance, useEmulation bool) error
- func (l *LibvirtDomainManager) SignalShutdownVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) SyncVMI(vmi *v1.VirtualMachineInstance, useEmulation bool, ...) (*api.DomainSpec, 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) FinalizeVirtualMachineMigration(_param0 *v1.VirtualMachineInstance) 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) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error)
- 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) 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) SyncVMI(_param0 *v1.VirtualMachineInstance, _param1 bool, ...) (*api.DomainSpec, error)
- func (_m *MockDomainManager) UnpauseVMI(_param0 *v1.VirtualMachineInstance) error
Constants ¶
View Source
const ( LibvirtLocalConnectionPort = 22222 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 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) 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 }
func NewLibvirtDomainManager ¶
func NewLibvirtDomainManager(connection cli.Connection, virtShareDir string, notifier *eventsclient.Notifier, lessPVCSpaceToleration int, agentStore *agentpoller.AsyncAgentStore, ovmfPath string) (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 apply all post-migration changes on the domain.
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) 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) 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) 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, useEmulation bool) error
Prepares the target pod environment by executing the preStartHook
func (*LibvirtDomainManager) SignalShutdownVMI ¶ added in v0.6.1
func (l *LibvirtDomainManager) SignalShutdownVMI(vmi *v1.VirtualMachineInstance) error
func (*LibvirtDomainManager) SyncVMI ¶ added in v0.6.1
func (l *LibvirtDomainManager) SyncVMI(vmi *v1.VirtualMachineInstance, useEmulation bool, options *cmdv1.VirtualMachineOptions) (*api.DomainSpec, 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) 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) GetUsers ¶ added in v0.28.0
func (_m *MockDomainManager) GetUsers() ([]v1.VirtualMachineInstanceGuestOSUser, error)
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) 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) error
func (*MockDomainManager) SignalShutdownVMI ¶ added in v0.6.1
func (_m *MockDomainManager) SignalShutdownVMI(_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) UnpauseVMI ¶ added in v0.24.0
func (_m *MockDomainManager) UnpauseVMI(_param0 *v1.VirtualMachineInstance) error
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. |
dhcp
* 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. |
dhcpv6
* 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. |
Click to show internal directories.
Click to hide internal directories.