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) 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) InterfacesStatus(domainInterfaces []api.Interface) []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) 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) 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) 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) InterfacesStatus(domainInterfaces []api.Interface) []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) 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) UnfreezeVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) UnpauseVMI(_param0 *v1.VirtualMachineInstance) error
Constants ¶
View Source
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) error UnfreezeVMI(*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 InterfacesStatus(domainInterfaces []api.Interface) []api.InterfaceStatus GetGuestOSInfo() *api.GuestOSInfo Exec(string, string, []string, int32) (string, error) GuestPing(string) error }
func NewLibvirtDomainManager ¶
func NewLibvirtDomainManager(connection cli.Connection, virtShareDir string, notifier *eventsclient.Notifier, lessPVCSpaceToleration int, minimumPVCReserveBytes uint64, 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) 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) InterfacesStatus ¶ added in v0.36.4
func (l *LibvirtDomainManager) InterfacesStatus(domainInterfaces []api.Interface) []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) 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
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) SyncVMI ¶ added in v0.6.1
func (l *LibvirtDomainManager) SyncVMI(vmi *v1.VirtualMachineInstance, useEmulation 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) 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) InterfacesStatus ¶ added in v0.36.4
func (_m *MockDomainManager) InterfacesStatus(domainInterfaces []api.Interface) []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) 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) 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. |
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.