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