Documentation ¶
Index ¶
- func UnfinishedVMPodSelector(vm *corev1.VirtualMachine) metav1.ListOptions
- type MockVMService
- func (_m *MockVMService) DeleteVMPod(_param0 *v10.VirtualMachine) error
- func (_m *MockVMService) EXPECT() *_MockVMServiceRecorder
- func (_m *MockVMService) FetchVM(namespace string, vmName string) (*v10.VirtualMachine, bool, error)
- func (_m *MockVMService) GetRunningVMPods(_param0 *v10.VirtualMachine) (*v1.PodList, error)
- func (_m *MockVMService) PutVm(vm *v10.VirtualMachine) (*v10.VirtualMachine, error)
- func (_m *MockVMService) StartVMPod(_param0 *v10.VirtualMachine) error
- type TemplateService
- type VMService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnfinishedVMPodSelector ¶
func UnfinishedVMPodSelector(vm *corev1.VirtualMachine) metav1.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) DeleteVMPod ¶
func (_m *MockVMService) DeleteVMPod(_param0 *v10.VirtualMachine) error
func (*MockVMService) EXPECT ¶
func (_m *MockVMService) EXPECT() *_MockVMServiceRecorder
func (*MockVMService) FetchVM ¶
func (_m *MockVMService) FetchVM(namespace string, vmName string) (*v10.VirtualMachine, bool, error)
func (*MockVMService) GetRunningVMPods ¶
func (_m *MockVMService) GetRunningVMPods(_param0 *v10.VirtualMachine) (*v1.PodList, error)
func (*MockVMService) PutVm ¶
func (_m *MockVMService) PutVm(vm *v10.VirtualMachine) (*v10.VirtualMachine, error)
func (*MockVMService) StartVMPod ¶
func (_m *MockVMService) StartVMPod(_param0 *v10.VirtualMachine) error
type TemplateService ¶
type TemplateService interface {
RenderLaunchManifest(*v1.VirtualMachine) (*kubev1.Pod, error)
}
func NewTemplateService ¶
func NewTemplateService(launcherImage string, virtShareDir string, imagePullSecret string) (TemplateService, error)
type VMService ¶
type VMService interface { StartVMPod(*corev1.VirtualMachine) error DeleteVMPod(*corev1.VirtualMachine) error GetRunningVMPods(*corev1.VirtualMachine) (*v1.PodList, error) FetchVM(namespace string, vmName string) (*corev1.VirtualMachine, bool, error) PutVm(vm *corev1.VirtualMachine) (*corev1.VirtualMachine, error) }
func NewVMService ¶
func NewVMService(KubeCli kubecli.KubevirtClient, RestClient *rest.RESTClient, TemplateService TemplateService) VMService
Click to show internal directories.
Click to hide internal directories.