Documentation ¶
Index ¶
- func UnfinishedVMPodSelector(vm *corev1.VM) v1.ListOptions
- type MockVMService
- func (_m *MockVMService) DeleteMigrationTargetPods(_param0 *v10.Migration) error
- func (_m *MockVMService) DeleteVMPod(_param0 *v10.VM) error
- func (_m *MockVMService) EXPECT() *_MockVMServiceRecorder
- func (_m *MockVMService) FetchMigration(migrationName string) (*v10.Migration, bool, error)
- func (_m *MockVMService) FetchVM(vmName string) (*v10.VM, bool, error)
- func (_m *MockVMService) GetMigrationJob(migration *v10.Migration) (*v1.Pod, bool, error)
- func (_m *MockVMService) GetRunningMigrationPods(_param0 *v10.Migration) (*v1.PodList, error)
- func (_m *MockVMService) GetRunningVMPods(_param0 *v10.VM) (*v1.PodList, error)
- func (_m *MockVMService) SetupMigration(migration *v10.Migration, vm *v10.VM) error
- func (_m *MockVMService) StartMigration(migration *v10.Migration, vm *v10.VM, sourceNode *v1.Node, targetNode *v1.Node, ...) error
- func (_m *MockVMService) StartVMPod(_param0 *v10.VM) error
- func (_m *MockVMService) UpdateMigration(migration *v10.Migration) error
- type TemplateService
- type VMService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnfinishedVMPodSelector ¶
func UnfinishedVMPodSelector(vm *corev1.VM) v1.ListOptions
Types ¶
type MockVMService ¶
type MockVMService struct {
// contains filtered or unexported fields
}
Mock of VMService interface
func NewMockVMService ¶
func NewMockVMService(ctrl *gomock.Controller) *MockVMService
func (*MockVMService) DeleteMigrationTargetPods ¶
func (_m *MockVMService) DeleteMigrationTargetPods(_param0 *v10.Migration) error
func (*MockVMService) DeleteVMPod ¶
func (_m *MockVMService) DeleteVMPod(_param0 *v10.VM) error
func (*MockVMService) EXPECT ¶
func (_m *MockVMService) EXPECT() *_MockVMServiceRecorder
func (*MockVMService) FetchMigration ¶
func (*MockVMService) GetMigrationJob ¶
func (*MockVMService) GetRunningMigrationPods ¶
func (*MockVMService) GetRunningVMPods ¶
func (*MockVMService) SetupMigration ¶
func (*MockVMService) StartMigration ¶
func (*MockVMService) StartVMPod ¶
func (_m *MockVMService) StartVMPod(_param0 *v10.VM) error
func (*MockVMService) UpdateMigration ¶
func (_m *MockVMService) UpdateMigration(migration *v10.Migration) error
type TemplateService ¶
type TemplateService interface { RenderLaunchManifest(*v1.VM) (*kubev1.Pod, error) RenderMigrationJob(*v1.VM, *kubev1.Node, *kubev1.Node, *kubev1.Pod) (*kubev1.Pod, error) }
func NewTemplateService ¶
func NewTemplateService(launcherImage string) (TemplateService, error)
type VMService ¶
type VMService interface { StartVMPod(*corev1.VM) error DeleteVMPod(*corev1.VM) error GetRunningVMPods(*corev1.VM) (*v1.PodList, error) DeleteMigrationTargetPods(*corev1.Migration) error GetRunningMigrationPods(*corev1.Migration) (*v1.PodList, error) SetupMigration(migration *corev1.Migration, vm *corev1.VM) error UpdateMigration(migration *corev1.Migration) error FetchVM(vmName string) (*corev1.VM, bool, error) FetchMigration(migrationName string) (*corev1.Migration, bool, error) StartMigration(migration *corev1.Migration, vm *corev1.VM, sourceNode *v1.Node, targetNode *v1.Node, targetPod *v1.Pod) error GetMigrationJob(migration *corev1.Migration) (*v1.Pod, bool, error) }
func NewVMService ¶
func NewVMService() VMService
Click to show internal directories.
Click to hide internal directories.