Documentation ¶
Index ¶
- type DomainManager
- type LibvirtDomainManager
- func (l *LibvirtDomainManager) DeleteVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) KillVMI(vmi *v1.VirtualMachineInstance) error
- func (l *LibvirtDomainManager) ListAllDomains() ([]*api.Domain, error)
- func (l *LibvirtDomainManager) MigrateVMI(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)
- type MockDomainManager
- func (_m *MockDomainManager) DeleteVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder
- func (_m *MockDomainManager) KillVMI(_param0 *v1.VirtualMachineInstance) error
- func (_m *MockDomainManager) ListAllDomains() ([]*api.Domain, error)
- func (_m *MockDomainManager) MigrateVMI(_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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainManager ¶
type DomainManager interface { SyncVMI(*v1.VirtualMachineInstance, bool) (*api.DomainSpec, error) KillVMI(*v1.VirtualMachineInstance) error DeleteVMI(*v1.VirtualMachineInstance) error SignalShutdownVMI(*v1.VirtualMachineInstance) error ListAllDomains() ([]*api.Domain, error) MigrateVMI(*v1.VirtualMachineInstance) error PrepareMigrationTarget(*v1.VirtualMachineInstance, bool) error }
func NewLibvirtDomainManager ¶
func NewLibvirtDomainManager(connection cli.Connection, virtShareDir string, notifier *eventsclient.NotifyClient, lessPVCSpaceToleration int) (DomainManager, error)
type LibvirtDomainManager ¶
type LibvirtDomainManager struct {
// contains filtered or unexported fields
}
func (*LibvirtDomainManager) DeleteVMI ¶ added in v0.8.0
func (l *LibvirtDomainManager) DeleteVMI(vmi *v1.VirtualMachineInstance) error
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) MigrateVMI ¶ added in v0.9.2
func (l *LibvirtDomainManager) MigrateVMI(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) (*api.DomainSpec, 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) DeleteVMI ¶ added in v0.8.0
func (_m *MockDomainManager) DeleteVMI(_param0 *v1.VirtualMachineInstance) error
func (*MockDomainManager) EXPECT ¶
func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder
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) MigrateVMI ¶ added in v0.9.2
func (_m *MockDomainManager) MigrateVMI(_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) (*api.DomainSpec, 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. |
Click to show internal directories.
Click to hide internal directories.