Documentation ¶
Index ¶
- type DomainManager
- type LibvirtDomainManager
- func (l *LibvirtDomainManager) KillVM(vm *v1.VirtualMachine) error
- func (l *LibvirtDomainManager) ListAllDomains() ([]*api.Domain, error)
- func (l *LibvirtDomainManager) SignalShutdownVM(vm *v1.VirtualMachine) error
- func (l *LibvirtDomainManager) SyncVM(vm *v1.VirtualMachine) (*api.DomainSpec, error)
- type MockDomainManager
- func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder
- func (_m *MockDomainManager) KillVM(_param0 *v1.VirtualMachine) error
- func (_m *MockDomainManager) ListAllDomains() ([]*api.Domain, error)
- func (_m *MockDomainManager) SignalShutdownVM(_param0 *v1.VirtualMachine) error
- func (_m *MockDomainManager) SyncVM(_param0 *v1.VirtualMachine) (*api.DomainSpec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainManager ¶
type DomainManager interface { SyncVM(*v1.VirtualMachine) (*api.DomainSpec, error) KillVM(*v1.VirtualMachine) error SignalShutdownVM(*v1.VirtualMachine) 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) KillVM ¶
func (l *LibvirtDomainManager) KillVM(vm *v1.VirtualMachine) error
func (*LibvirtDomainManager) ListAllDomains ¶
func (l *LibvirtDomainManager) ListAllDomains() ([]*api.Domain, error)
func (*LibvirtDomainManager) SignalShutdownVM ¶
func (l *LibvirtDomainManager) SignalShutdownVM(vm *v1.VirtualMachine) error
func (*LibvirtDomainManager) SyncVM ¶
func (l *LibvirtDomainManager) SyncVM(vm *v1.VirtualMachine) (*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) EXPECT ¶
func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder
func (*MockDomainManager) KillVM ¶
func (_m *MockDomainManager) KillVM(_param0 *v1.VirtualMachine) error
func (*MockDomainManager) ListAllDomains ¶
func (_m *MockDomainManager) ListAllDomains() ([]*api.Domain, error)
func (*MockDomainManager) SignalShutdownVM ¶
func (_m *MockDomainManager) SignalShutdownVM(_param0 *v1.VirtualMachine) error
func (*MockDomainManager) SyncVM ¶
func (_m *MockDomainManager) SyncVM(_param0 *v1.VirtualMachine) (*api.DomainSpec, error)
Click to show internal directories.
Click to hide internal directories.