Documentation ¶
Index ¶
- func GetKubevirtClientConfig() (*rest.Config, error)
- type KubevirtClient
- type MigrationInterface
- type MockKubevirtClient
- func (_m *MockKubevirtClient) Admissionregistration() v1alpha1.AdmissionregistrationV1alpha1Interface
- func (_m *MockKubevirtClient) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface
- func (_m *MockKubevirtClient) Apps() v1beta2.AppsV1beta2Interface
- func (_m *MockKubevirtClient) AppsV1beta1() v1beta1.AppsV1beta1Interface
- func (_m *MockKubevirtClient) AppsV1beta2() v1beta2.AppsV1beta2Interface
- func (_m *MockKubevirtClient) Authentication() v10.AuthenticationV1Interface
- func (_m *MockKubevirtClient) AuthenticationV1() v10.AuthenticationV1Interface
- func (_m *MockKubevirtClient) AuthenticationV1beta1() v1beta10.AuthenticationV1beta1Interface
- func (_m *MockKubevirtClient) Authorization() v11.AuthorizationV1Interface
- func (_m *MockKubevirtClient) AuthorizationV1() v11.AuthorizationV1Interface
- func (_m *MockKubevirtClient) AuthorizationV1beta1() v1beta11.AuthorizationV1beta1Interface
- func (_m *MockKubevirtClient) Autoscaling() v12.AutoscalingV1Interface
- func (_m *MockKubevirtClient) AutoscalingV1() v12.AutoscalingV1Interface
- func (_m *MockKubevirtClient) AutoscalingV2alpha1() v2alpha1.AutoscalingV2alpha1Interface
- func (_m *MockKubevirtClient) Batch() v13.BatchV1Interface
- func (_m *MockKubevirtClient) BatchV1() v13.BatchV1Interface
- func (_m *MockKubevirtClient) BatchV1beta1() v1beta12.BatchV1beta1Interface
- func (_m *MockKubevirtClient) BatchV2alpha1() v2alpha10.BatchV2alpha1Interface
- func (_m *MockKubevirtClient) Certificates() v1beta13.CertificatesV1beta1Interface
- func (_m *MockKubevirtClient) CertificatesV1beta1() v1beta13.CertificatesV1beta1Interface
- func (_m *MockKubevirtClient) Core() v14.CoreV1Interface
- func (_m *MockKubevirtClient) CoreV1() v14.CoreV1Interface
- func (_m *MockKubevirtClient) Discovery() discovery.DiscoveryInterface
- func (_m *MockKubevirtClient) EXPECT() *_MockKubevirtClientRecorder
- func (_m *MockKubevirtClient) Extensions() v1beta14.ExtensionsV1beta1Interface
- func (_m *MockKubevirtClient) ExtensionsV1beta1() v1beta14.ExtensionsV1beta1Interface
- func (_m *MockKubevirtClient) Migration(namespace string) MigrationInterface
- func (_m *MockKubevirtClient) Networking() v15.NetworkingV1Interface
- func (_m *MockKubevirtClient) NetworkingV1() v15.NetworkingV1Interface
- func (_m *MockKubevirtClient) Policy() v1beta15.PolicyV1beta1Interface
- func (_m *MockKubevirtClient) PolicyV1beta1() v1beta15.PolicyV1beta1Interface
- func (_m *MockKubevirtClient) Rbac() v16.RbacV1Interface
- func (_m *MockKubevirtClient) RbacV1() v16.RbacV1Interface
- func (_m *MockKubevirtClient) RbacV1alpha1() v1alpha10.RbacV1alpha1Interface
- func (_m *MockKubevirtClient) RbacV1beta1() v1beta16.RbacV1beta1Interface
- func (_m *MockKubevirtClient) ReplicaSet(namespace string) ReplicaSetInterface
- func (_m *MockKubevirtClient) RestClient() *rest.RESTClient
- func (_m *MockKubevirtClient) Scheduling() v1alpha11.SchedulingV1alpha1Interface
- func (_m *MockKubevirtClient) SchedulingV1alpha1() v1alpha11.SchedulingV1alpha1Interface
- func (_m *MockKubevirtClient) Settings() v1alpha12.SettingsV1alpha1Interface
- func (_m *MockKubevirtClient) SettingsV1alpha1() v1alpha12.SettingsV1alpha1Interface
- func (_m *MockKubevirtClient) Storage() v17.StorageV1Interface
- func (_m *MockKubevirtClient) StorageV1() v17.StorageV1Interface
- func (_m *MockKubevirtClient) StorageV1beta1() v1beta17.StorageV1beta1Interface
- func (_m *MockKubevirtClient) VM(namespace string) VMInterface
- type MockMigrationInterface
- func (_m *MockMigrationInterface) Create(_param0 *v18.Migration) (*v18.Migration, error)
- func (_m *MockMigrationInterface) Delete(name string, options *v1.DeleteOptions) error
- func (_m *MockMigrationInterface) EXPECT() *_MockMigrationInterfaceRecorder
- func (_m *MockMigrationInterface) Get(name string, options v1.GetOptions) (*v18.Migration, error)
- func (_m *MockMigrationInterface) List(opts v1.ListOptions) (*v18.MigrationList, error)
- func (_m *MockMigrationInterface) Update(_param0 *v18.Migration) (*v18.Migration, error)
- type MockReplicaSetInterface
- func (_m *MockReplicaSetInterface) Create(_param0 *v18.VirtualMachineReplicaSet) (*v18.VirtualMachineReplicaSet, error)
- func (_m *MockReplicaSetInterface) Delete(name string, options *v1.DeleteOptions) error
- func (_m *MockReplicaSetInterface) EXPECT() *_MockReplicaSetInterfaceRecorder
- func (_m *MockReplicaSetInterface) Get(name string, options v1.GetOptions) (*v18.VirtualMachineReplicaSet, error)
- func (_m *MockReplicaSetInterface) List(opts v1.ListOptions) (*v18.VirtualMachineReplicaSetList, error)
- func (_m *MockReplicaSetInterface) Update(_param0 *v18.VirtualMachineReplicaSet) (*v18.VirtualMachineReplicaSet, error)
- type MockVMInterface
- func (_m *MockVMInterface) Create(_param0 *v18.VirtualMachine) (*v18.VirtualMachine, error)
- func (_m *MockVMInterface) Delete(name string, options *v1.DeleteOptions) error
- func (_m *MockVMInterface) EXPECT() *_MockVMInterfaceRecorder
- func (_m *MockVMInterface) Get(name string, options v1.GetOptions) (*v18.VirtualMachine, error)
- func (_m *MockVMInterface) List(opts v1.ListOptions) (*v18.VirtualMachineList, error)
- func (_m *MockVMInterface) Update(_param0 *v18.VirtualMachine) (*v18.VirtualMachine, error)
- type ReplicaSetInterface
- type VMInterface
- type VirtHandlerClient
- type VirtHandlerConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubevirtClientConfig ¶ added in v0.0.4
Types ¶
type KubevirtClient ¶
type KubevirtClient interface { VM(namespace string) VMInterface Migration(namespace string) MigrationInterface ReplicaSet(namespace string) ReplicaSetInterface RestClient() *rest.RESTClient kubernetes.Interface }
func GetKubevirtClient ¶
func GetKubevirtClient() (KubevirtClient, error)
func GetKubevirtClientFromFlags ¶
func GetKubevirtClientFromFlags(master string, kubeconfig string) (KubevirtClient, error)
type MigrationInterface ¶
type MigrationInterface interface { Get(name string, options k8smetav1.GetOptions) (*v1.Migration, error) List(opts k8smetav1.ListOptions) (*v1.MigrationList, error) Create(*v1.Migration) (*v1.Migration, error) Update(*v1.Migration) (*v1.Migration, error) Delete(name string, options *k8smetav1.DeleteOptions) error }
type MockKubevirtClient ¶
type MockKubevirtClient struct {
// contains filtered or unexported fields
}
Mock of KubevirtClient interface
func NewMockKubevirtClient ¶
func NewMockKubevirtClient(ctrl *gomock.Controller) *MockKubevirtClient
func (*MockKubevirtClient) Admissionregistration ¶
func (_m *MockKubevirtClient) Admissionregistration() v1alpha1.AdmissionregistrationV1alpha1Interface
func (*MockKubevirtClient) AdmissionregistrationV1alpha1 ¶
func (_m *MockKubevirtClient) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface
func (*MockKubevirtClient) Apps ¶
func (_m *MockKubevirtClient) Apps() v1beta2.AppsV1beta2Interface
func (*MockKubevirtClient) AppsV1beta1 ¶
func (_m *MockKubevirtClient) AppsV1beta1() v1beta1.AppsV1beta1Interface
func (*MockKubevirtClient) AppsV1beta2 ¶ added in v0.0.3
func (_m *MockKubevirtClient) AppsV1beta2() v1beta2.AppsV1beta2Interface
func (*MockKubevirtClient) Authentication ¶
func (_m *MockKubevirtClient) Authentication() v10.AuthenticationV1Interface
func (*MockKubevirtClient) AuthenticationV1 ¶
func (_m *MockKubevirtClient) AuthenticationV1() v10.AuthenticationV1Interface
func (*MockKubevirtClient) AuthenticationV1beta1 ¶
func (_m *MockKubevirtClient) AuthenticationV1beta1() v1beta10.AuthenticationV1beta1Interface
func (*MockKubevirtClient) Authorization ¶
func (_m *MockKubevirtClient) Authorization() v11.AuthorizationV1Interface
func (*MockKubevirtClient) AuthorizationV1 ¶
func (_m *MockKubevirtClient) AuthorizationV1() v11.AuthorizationV1Interface
func (*MockKubevirtClient) AuthorizationV1beta1 ¶
func (_m *MockKubevirtClient) AuthorizationV1beta1() v1beta11.AuthorizationV1beta1Interface
func (*MockKubevirtClient) Autoscaling ¶
func (_m *MockKubevirtClient) Autoscaling() v12.AutoscalingV1Interface
func (*MockKubevirtClient) AutoscalingV1 ¶
func (_m *MockKubevirtClient) AutoscalingV1() v12.AutoscalingV1Interface
func (*MockKubevirtClient) AutoscalingV2alpha1 ¶
func (_m *MockKubevirtClient) AutoscalingV2alpha1() v2alpha1.AutoscalingV2alpha1Interface
func (*MockKubevirtClient) Batch ¶
func (_m *MockKubevirtClient) Batch() v13.BatchV1Interface
func (*MockKubevirtClient) BatchV1 ¶
func (_m *MockKubevirtClient) BatchV1() v13.BatchV1Interface
func (*MockKubevirtClient) BatchV1beta1 ¶ added in v0.0.3
func (_m *MockKubevirtClient) BatchV1beta1() v1beta12.BatchV1beta1Interface
func (*MockKubevirtClient) BatchV2alpha1 ¶
func (_m *MockKubevirtClient) BatchV2alpha1() v2alpha10.BatchV2alpha1Interface
func (*MockKubevirtClient) Certificates ¶
func (_m *MockKubevirtClient) Certificates() v1beta13.CertificatesV1beta1Interface
func (*MockKubevirtClient) CertificatesV1beta1 ¶
func (_m *MockKubevirtClient) CertificatesV1beta1() v1beta13.CertificatesV1beta1Interface
func (*MockKubevirtClient) Core ¶
func (_m *MockKubevirtClient) Core() v14.CoreV1Interface
func (*MockKubevirtClient) CoreV1 ¶
func (_m *MockKubevirtClient) CoreV1() v14.CoreV1Interface
func (*MockKubevirtClient) Discovery ¶
func (_m *MockKubevirtClient) Discovery() discovery.DiscoveryInterface
func (*MockKubevirtClient) EXPECT ¶
func (_m *MockKubevirtClient) EXPECT() *_MockKubevirtClientRecorder
func (*MockKubevirtClient) Extensions ¶
func (_m *MockKubevirtClient) Extensions() v1beta14.ExtensionsV1beta1Interface
func (*MockKubevirtClient) ExtensionsV1beta1 ¶
func (_m *MockKubevirtClient) ExtensionsV1beta1() v1beta14.ExtensionsV1beta1Interface
func (*MockKubevirtClient) Migration ¶
func (_m *MockKubevirtClient) Migration(namespace string) MigrationInterface
func (*MockKubevirtClient) Networking ¶
func (_m *MockKubevirtClient) Networking() v15.NetworkingV1Interface
func (*MockKubevirtClient) NetworkingV1 ¶
func (_m *MockKubevirtClient) NetworkingV1() v15.NetworkingV1Interface
func (*MockKubevirtClient) Policy ¶
func (_m *MockKubevirtClient) Policy() v1beta15.PolicyV1beta1Interface
func (*MockKubevirtClient) PolicyV1beta1 ¶
func (_m *MockKubevirtClient) PolicyV1beta1() v1beta15.PolicyV1beta1Interface
func (*MockKubevirtClient) Rbac ¶
func (_m *MockKubevirtClient) Rbac() v16.RbacV1Interface
func (*MockKubevirtClient) RbacV1 ¶ added in v0.0.3
func (_m *MockKubevirtClient) RbacV1() v16.RbacV1Interface
func (*MockKubevirtClient) RbacV1alpha1 ¶
func (_m *MockKubevirtClient) RbacV1alpha1() v1alpha10.RbacV1alpha1Interface
func (*MockKubevirtClient) RbacV1beta1 ¶
func (_m *MockKubevirtClient) RbacV1beta1() v1beta16.RbacV1beta1Interface
func (*MockKubevirtClient) ReplicaSet ¶ added in v0.0.3
func (_m *MockKubevirtClient) ReplicaSet(namespace string) ReplicaSetInterface
func (*MockKubevirtClient) RestClient ¶
func (_m *MockKubevirtClient) RestClient() *rest.RESTClient
func (*MockKubevirtClient) Scheduling ¶ added in v0.0.3
func (_m *MockKubevirtClient) Scheduling() v1alpha11.SchedulingV1alpha1Interface
func (*MockKubevirtClient) SchedulingV1alpha1 ¶ added in v0.0.3
func (_m *MockKubevirtClient) SchedulingV1alpha1() v1alpha11.SchedulingV1alpha1Interface
func (*MockKubevirtClient) Settings ¶
func (_m *MockKubevirtClient) Settings() v1alpha12.SettingsV1alpha1Interface
func (*MockKubevirtClient) SettingsV1alpha1 ¶
func (_m *MockKubevirtClient) SettingsV1alpha1() v1alpha12.SettingsV1alpha1Interface
func (*MockKubevirtClient) Storage ¶
func (_m *MockKubevirtClient) Storage() v17.StorageV1Interface
func (*MockKubevirtClient) StorageV1 ¶
func (_m *MockKubevirtClient) StorageV1() v17.StorageV1Interface
func (*MockKubevirtClient) StorageV1beta1 ¶
func (_m *MockKubevirtClient) StorageV1beta1() v1beta17.StorageV1beta1Interface
func (*MockKubevirtClient) VM ¶
func (_m *MockKubevirtClient) VM(namespace string) VMInterface
type MockMigrationInterface ¶
type MockMigrationInterface struct {
// contains filtered or unexported fields
}
Mock of MigrationInterface interface
func NewMockMigrationInterface ¶
func NewMockMigrationInterface(ctrl *gomock.Controller) *MockMigrationInterface
func (*MockMigrationInterface) Delete ¶
func (_m *MockMigrationInterface) Delete(name string, options *v1.DeleteOptions) error
func (*MockMigrationInterface) EXPECT ¶
func (_m *MockMigrationInterface) EXPECT() *_MockMigrationInterfaceRecorder
func (*MockMigrationInterface) Get ¶
func (_m *MockMigrationInterface) Get(name string, options v1.GetOptions) (*v18.Migration, error)
func (*MockMigrationInterface) List ¶
func (_m *MockMigrationInterface) List(opts v1.ListOptions) (*v18.MigrationList, error)
type MockReplicaSetInterface ¶ added in v0.0.3
type MockReplicaSetInterface struct {
// contains filtered or unexported fields
}
Mock of ReplicaSetInterface interface
func NewMockReplicaSetInterface ¶ added in v0.0.3
func NewMockReplicaSetInterface(ctrl *gomock.Controller) *MockReplicaSetInterface
func (*MockReplicaSetInterface) Create ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) Create(_param0 *v18.VirtualMachineReplicaSet) (*v18.VirtualMachineReplicaSet, error)
func (*MockReplicaSetInterface) Delete ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) Delete(name string, options *v1.DeleteOptions) error
func (*MockReplicaSetInterface) EXPECT ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) EXPECT() *_MockReplicaSetInterfaceRecorder
func (*MockReplicaSetInterface) Get ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) Get(name string, options v1.GetOptions) (*v18.VirtualMachineReplicaSet, error)
func (*MockReplicaSetInterface) List ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) List(opts v1.ListOptions) (*v18.VirtualMachineReplicaSetList, error)
func (*MockReplicaSetInterface) Update ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) Update(_param0 *v18.VirtualMachineReplicaSet) (*v18.VirtualMachineReplicaSet, error)
type MockVMInterface ¶
type MockVMInterface struct {
// contains filtered or unexported fields
}
Mock of VMInterface interface
func NewMockVMInterface ¶
func NewMockVMInterface(ctrl *gomock.Controller) *MockVMInterface
func (*MockVMInterface) Create ¶
func (_m *MockVMInterface) Create(_param0 *v18.VirtualMachine) (*v18.VirtualMachine, error)
func (*MockVMInterface) Delete ¶
func (_m *MockVMInterface) Delete(name string, options *v1.DeleteOptions) error
func (*MockVMInterface) EXPECT ¶
func (_m *MockVMInterface) EXPECT() *_MockVMInterfaceRecorder
func (*MockVMInterface) Get ¶
func (_m *MockVMInterface) Get(name string, options v1.GetOptions) (*v18.VirtualMachine, error)
func (*MockVMInterface) List ¶
func (_m *MockVMInterface) List(opts v1.ListOptions) (*v18.VirtualMachineList, error)
func (*MockVMInterface) Update ¶
func (_m *MockVMInterface) Update(_param0 *v18.VirtualMachine) (*v18.VirtualMachine, error)
type ReplicaSetInterface ¶ added in v0.0.3
type ReplicaSetInterface interface { Get(name string, options k8smetav1.GetOptions) (*v1.VirtualMachineReplicaSet, error) List(opts k8smetav1.ListOptions) (*v1.VirtualMachineReplicaSetList, error) Create(*v1.VirtualMachineReplicaSet) (*v1.VirtualMachineReplicaSet, error) Update(*v1.VirtualMachineReplicaSet) (*v1.VirtualMachineReplicaSet, error) Delete(name string, options *k8smetav1.DeleteOptions) error }
type VMInterface ¶
type VMInterface interface { Get(name string, options k8smetav1.GetOptions) (*v1.VirtualMachine, error) List(opts k8smetav1.ListOptions) (*v1.VirtualMachineList, error) Create(*v1.VirtualMachine) (*v1.VirtualMachine, error) Update(*v1.VirtualMachine) (*v1.VirtualMachine, error) Delete(name string, options *k8smetav1.DeleteOptions) error }
type VirtHandlerClient ¶ added in v0.0.3
type VirtHandlerClient interface {
ForNode(nodeName string) VirtHandlerConn
}
func NewVirtHandlerClient ¶ added in v0.0.3
func NewVirtHandlerClient(client KubevirtClient) VirtHandlerClient
type VirtHandlerConn ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.