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) 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) 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) }
func NewLibvirtDomainManager ¶
func NewLibvirtDomainManager(connection cli.Connection) (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) 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) 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)
Click to show internal directories.
Click to hide internal directories.