Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultClientConfig(flags *pflag.FlagSet) clientcmd.ClientConfig
- func GetConfig() (*restclient.Config, error)
- func GetKubevirtClientConfig() (*rest.Config, error)
- func NewKubeVirtList(kubevirts ...v1.KubeVirt) *v1.KubeVirtList
- func NewMigrationList(migrations ...v1.VirtualMachineInstanceMigration) *v1.VirtualMachineInstanceMigrationList
- func NewMinimalKubeVirt(name string) *v1.KubeVirt
- func NewMinimalMigration(name string) *v1.VirtualMachineInstanceMigration
- func NewMinimalVM(name string) *v1.VirtualMachine
- func NewMinimalVirtualMachineInstanceReplicaSet(name string) *v1.VirtualMachineInstanceReplicaSet
- func NewVMList(vms ...v1.VirtualMachine) *v1.VirtualMachineList
- func NewVirtualMachineInstanceReplicaSetList(rss ...v1.VirtualMachineInstanceReplicaSet) *v1.VirtualMachineInstanceReplicaSetList
- func RequestFromConfig(config *rest.Config, vmi string, namespace string, resource string) (*http.Request, error)
- type AsyncSubresourceError
- type BinaryReadWriter
- type KubeVirtInterface
- type KubevirtClient
- func GetInvalidKubevirtClientFromClientConfig(cmdConfig clientcmd.ClientConfig) (KubevirtClient, error)
- func GetKubevirtClient() (KubevirtClient, error)
- func GetKubevirtClientFromFlags(master string, kubeconfig string) (KubevirtClient, error)
- func GetKubevirtClientFromRESTConfig(config *rest.Config) (KubevirtClient, error)
- func GetKubevirtSubresourceClient() (KubevirtClient, error)
- func GetKubevirtSubresourceClientFromFlags(master string, kubeconfig string) (KubevirtClient, error)
- func GetMockKubevirtClientFromClientConfig(cmdConfig clientcmd.ClientConfig) (KubevirtClient, error)
- type MockKubeVirtInterface
- func (_m *MockKubeVirtInterface) Create(instance *v111.KubeVirt) (*v111.KubeVirt, error)
- func (_m *MockKubeVirtInterface) Delete(name string, options *v11.DeleteOptions) error
- func (_m *MockKubeVirtInterface) EXPECT() *_MockKubeVirtInterfaceRecorder
- func (_m *MockKubeVirtInterface) Get(name string, options *v11.GetOptions) (*v111.KubeVirt, error)
- func (_m *MockKubeVirtInterface) List(opts *v11.ListOptions) (*v111.KubeVirtList, error)
- func (_m *MockKubeVirtInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.KubeVirt, error)
- func (_m *MockKubeVirtInterface) Update(_param0 *v111.KubeVirt) (*v111.KubeVirt, error)
- type MockKubevirtClient
- func (_m *MockKubevirtClient) Admissionregistration() v1beta1.AdmissionregistrationV1beta1Interface
- func (_m *MockKubevirtClient) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface
- func (_m *MockKubevirtClient) AdmissionregistrationV1beta1() v1beta1.AdmissionregistrationV1beta1Interface
- func (_m *MockKubevirtClient) Apps() v12.AppsV1Interface
- func (_m *MockKubevirtClient) AppsV1() v12.AppsV1Interface
- func (_m *MockKubevirtClient) AppsV1beta1() v1beta10.AppsV1beta1Interface
- func (_m *MockKubevirtClient) AppsV1beta2() v1beta2.AppsV1beta2Interface
- func (_m *MockKubevirtClient) Authentication() v13.AuthenticationV1Interface
- func (_m *MockKubevirtClient) AuthenticationV1() v13.AuthenticationV1Interface
- func (_m *MockKubevirtClient) AuthenticationV1beta1() v1beta11.AuthenticationV1beta1Interface
- func (_m *MockKubevirtClient) Authorization() v14.AuthorizationV1Interface
- func (_m *MockKubevirtClient) AuthorizationV1() v14.AuthorizationV1Interface
- func (_m *MockKubevirtClient) AuthorizationV1beta1() v1beta12.AuthorizationV1beta1Interface
- func (_m *MockKubevirtClient) Autoscaling() v15.AutoscalingV1Interface
- func (_m *MockKubevirtClient) AutoscalingV1() v15.AutoscalingV1Interface
- func (_m *MockKubevirtClient) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface
- func (_m *MockKubevirtClient) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface
- func (_m *MockKubevirtClient) Batch() v16.BatchV1Interface
- func (_m *MockKubevirtClient) BatchV1() v16.BatchV1Interface
- func (_m *MockKubevirtClient) BatchV1beta1() v1beta13.BatchV1beta1Interface
- func (_m *MockKubevirtClient) BatchV2alpha1() v2alpha1.BatchV2alpha1Interface
- func (_m *MockKubevirtClient) CdiClient() versioned0.Interface
- func (_m *MockKubevirtClient) Certificates() v1beta14.CertificatesV1beta1Interface
- func (_m *MockKubevirtClient) CertificatesV1beta1() v1beta14.CertificatesV1beta1Interface
- func (_m *MockKubevirtClient) Config() *rest.Config
- func (_m *MockKubevirtClient) Coordination() v1beta15.CoordinationV1beta1Interface
- func (_m *MockKubevirtClient) CoordinationV1beta1() v1beta15.CoordinationV1beta1Interface
- func (_m *MockKubevirtClient) Core() v17.CoreV1Interface
- func (_m *MockKubevirtClient) CoreV1() v17.CoreV1Interface
- func (_m *MockKubevirtClient) Discovery() discovery.DiscoveryInterface
- func (_m *MockKubevirtClient) DiscoveryClient() discovery.DiscoveryInterface
- func (_m *MockKubevirtClient) EXPECT() *_MockKubevirtClientRecorder
- func (_m *MockKubevirtClient) Events() v1beta16.EventsV1beta1Interface
- func (_m *MockKubevirtClient) EventsV1beta1() v1beta16.EventsV1beta1Interface
- func (_m *MockKubevirtClient) Extensions() v1beta17.ExtensionsV1beta1Interface
- func (_m *MockKubevirtClient) ExtensionsClient() clientset.Interface
- func (_m *MockKubevirtClient) ExtensionsV1beta1() v1beta17.ExtensionsV1beta1Interface
- func (_m *MockKubevirtClient) KubeVirt(namespace string) KubeVirtInterface
- func (_m *MockKubevirtClient) NetworkClient() versioned.Interface
- func (_m *MockKubevirtClient) Networking() v18.NetworkingV1Interface
- func (_m *MockKubevirtClient) NetworkingV1() v18.NetworkingV1Interface
- func (_m *MockKubevirtClient) Policy() v1beta18.PolicyV1beta1Interface
- func (_m *MockKubevirtClient) PolicyV1beta1() v1beta18.PolicyV1beta1Interface
- func (_m *MockKubevirtClient) Rbac() v19.RbacV1Interface
- func (_m *MockKubevirtClient) RbacV1() v19.RbacV1Interface
- func (_m *MockKubevirtClient) RbacV1alpha1() v1alpha10.RbacV1alpha1Interface
- func (_m *MockKubevirtClient) RbacV1beta1() v1beta19.RbacV1beta1Interface
- func (_m *MockKubevirtClient) ReplicaSet(namespace string) ReplicaSetInterface
- func (_m *MockKubevirtClient) RestClient() *rest.RESTClient
- func (_m *MockKubevirtClient) Scheduling() v1beta110.SchedulingV1beta1Interface
- func (_m *MockKubevirtClient) SchedulingV1alpha1() v1alpha11.SchedulingV1alpha1Interface
- func (_m *MockKubevirtClient) SchedulingV1beta1() v1beta110.SchedulingV1beta1Interface
- func (_m *MockKubevirtClient) SecClient() v1.SecurityV1Interface
- func (_m *MockKubevirtClient) ServerVersion() *ServerVersion
- func (_m *MockKubevirtClient) Settings() v1alpha12.SettingsV1alpha1Interface
- func (_m *MockKubevirtClient) SettingsV1alpha1() v1alpha12.SettingsV1alpha1Interface
- func (_m *MockKubevirtClient) Storage() v110.StorageV1Interface
- func (_m *MockKubevirtClient) StorageV1() v110.StorageV1Interface
- func (_m *MockKubevirtClient) StorageV1alpha1() v1alpha13.StorageV1alpha1Interface
- func (_m *MockKubevirtClient) StorageV1beta1() v1beta111.StorageV1beta1Interface
- func (_m *MockKubevirtClient) VirtualMachine(namespace string) VirtualMachineInterface
- func (_m *MockKubevirtClient) VirtualMachineInstance(namespace string) VirtualMachineInstanceInterface
- func (_m *MockKubevirtClient) VirtualMachineInstanceMigration(namespace string) VirtualMachineInstanceMigrationInterface
- type MockReplicaSetInterface
- func (_m *MockReplicaSetInterface) Create(_param0 *v111.VirtualMachineInstanceReplicaSet) (*v111.VirtualMachineInstanceReplicaSet, error)
- func (_m *MockReplicaSetInterface) Delete(name string, options *v11.DeleteOptions) error
- func (_m *MockReplicaSetInterface) EXPECT() *_MockReplicaSetInterfaceRecorder
- func (_m *MockReplicaSetInterface) Get(name string, options v11.GetOptions) (*v111.VirtualMachineInstanceReplicaSet, error)
- func (_m *MockReplicaSetInterface) GetScale(replicaSetName string, options v11.GetOptions) (*v10.Scale, error)
- func (_m *MockReplicaSetInterface) List(opts v11.ListOptions) (*v111.VirtualMachineInstanceReplicaSetList, error)
- func (_m *MockReplicaSetInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstanceReplicaSet, error)
- func (_m *MockReplicaSetInterface) Update(_param0 *v111.VirtualMachineInstanceReplicaSet) (*v111.VirtualMachineInstanceReplicaSet, error)
- func (_m *MockReplicaSetInterface) UpdateScale(replicaSetName string, scale *v10.Scale) (*v10.Scale, error)
- type MockStreamInterface
- type MockVMIPresetInterface
- func (_m *MockVMIPresetInterface) Create(_param0 *v111.VirtualMachineInstancePreset) (*v111.VirtualMachineInstancePreset, error)
- func (_m *MockVMIPresetInterface) Delete(name string, options *v11.DeleteOptions) error
- func (_m *MockVMIPresetInterface) EXPECT() *_MockVMIPresetInterfaceRecorder
- func (_m *MockVMIPresetInterface) Get(name string, options v11.GetOptions) (*v111.VirtualMachineInstancePreset, error)
- func (_m *MockVMIPresetInterface) List(opts v11.ListOptions) (*v111.VirtualMachineInstancePresetList, error)
- func (_m *MockVMIPresetInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstancePreset, error)
- func (_m *MockVMIPresetInterface) Update(_param0 *v111.VirtualMachineInstancePreset) (*v111.VirtualMachineInstancePreset, error)
- type MockVirtualMachineInstanceInterface
- func (_m *MockVirtualMachineInstanceInterface) Create(instance *v111.VirtualMachineInstance) (*v111.VirtualMachineInstance, error)
- func (_m *MockVirtualMachineInstanceInterface) Delete(name string, options *v11.DeleteOptions) error
- func (_m *MockVirtualMachineInstanceInterface) EXPECT() *_MockVirtualMachineInstanceInterfaceRecorder
- func (_m *MockVirtualMachineInstanceInterface) Get(name string, options *v11.GetOptions) (*v111.VirtualMachineInstance, error)
- func (_m *MockVirtualMachineInstanceInterface) List(opts *v11.ListOptions) (*v111.VirtualMachineInstanceList, error)
- func (_m *MockVirtualMachineInstanceInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstance, error)
- func (_m *MockVirtualMachineInstanceInterface) SerialConsole(name string, timeout time.Duration) (StreamInterface, error)
- func (_m *MockVirtualMachineInstanceInterface) Update(_param0 *v111.VirtualMachineInstance) (*v111.VirtualMachineInstance, error)
- func (_m *MockVirtualMachineInstanceInterface) VNC(name string) (StreamInterface, error)
- type MockVirtualMachineInstanceMigrationInterface
- func (_m *MockVirtualMachineInstanceMigrationInterface) Create(_param0 *v111.VirtualMachineInstanceMigration) (*v111.VirtualMachineInstanceMigration, error)
- func (_m *MockVirtualMachineInstanceMigrationInterface) Delete(name string, options *v11.DeleteOptions) error
- func (_m *MockVirtualMachineInstanceMigrationInterface) EXPECT() *_MockVirtualMachineInstanceMigrationInterfaceRecorder
- func (_m *MockVirtualMachineInstanceMigrationInterface) Get(name string, options *v11.GetOptions) (*v111.VirtualMachineInstanceMigration, error)
- func (_m *MockVirtualMachineInstanceMigrationInterface) List(opts *v11.ListOptions) (*v111.VirtualMachineInstanceMigrationList, error)
- func (_m *MockVirtualMachineInstanceMigrationInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstanceMigration, error)
- func (_m *MockVirtualMachineInstanceMigrationInterface) Update(_param0 *v111.VirtualMachineInstanceMigration) (*v111.VirtualMachineInstanceMigration, error)
- type MockVirtualMachineInterface
- func (_m *MockVirtualMachineInterface) Create(_param0 *v111.VirtualMachine) (*v111.VirtualMachine, error)
- func (_m *MockVirtualMachineInterface) Delete(name string, options *v11.DeleteOptions) error
- func (_m *MockVirtualMachineInterface) EXPECT() *_MockVirtualMachineInterfaceRecorder
- func (_m *MockVirtualMachineInterface) Get(name string, options *v11.GetOptions) (*v111.VirtualMachine, error)
- func (_m *MockVirtualMachineInterface) List(opts *v11.ListOptions) (*v111.VirtualMachineList, error)
- func (_m *MockVirtualMachineInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachine, error)
- func (_m *MockVirtualMachineInterface) Restart(name string) error
- func (_m *MockVirtualMachineInterface) Update(_param0 *v111.VirtualMachine) (*v111.VirtualMachine, error)
- type ReplicaSetInterface
- type RoundTripCallback
- type ServerVersion
- type StreamInterface
- type StreamOptions
- type VMIPresetInterface
- type VirtHandlerClient
- type VirtHandlerConn
- type VirtualMachineInstanceInterface
- type VirtualMachineInstanceMigrationInterface
- type VirtualMachineInterface
- type WebsocketRoundTripper
Constants ¶
const (
ApiGroupName = "/apis/" + v1.SubresourceGroupName
)
const (
WebsocketMessageBufferSize = 10240
)
Variables ¶
var GetKubevirtClientFromClientConfig = func(cmdConfig clientcmd.ClientConfig) (KubevirtClient, error) { config, err := cmdConfig.ClientConfig() if err != nil { return nil, err } return GetKubevirtClientFromRESTConfig(config) }
this function is defined as a closure so iut could be overwritten by unit tests
Functions ¶
func DefaultClientConfig ¶ added in v0.4.0
func DefaultClientConfig(flags *pflag.FlagSet) clientcmd.ClientConfig
DefaultClientConfig creates a clientcmd.ClientConfig with the following hierarchy:
Use the kubeconfig builder. The number of merges and overrides here gets a little crazy. Stay with me.
Merge the kubeconfig itself. This is done with the following hierarchy rules:
CommandLineLocation - this parsed from the command line, so it must be late bound. If you specify this, then no other kubeconfig files are merged. This file must exist.
If $KUBECONFIG is set, then it is treated as a list of files that should be merged.
HomeDirectoryLocation Empty filenames are ignored. Files with non-deserializable content produced errors. The first file to set a particular value or map key wins and the value or map key is never changed. This means that the first file to set CurrentContext will have its context preserved. It also means that if two files specify a "red-user", only values from the first file's red-user are used. Even non-conflicting entries from the second file's "red-user" are discarded.
Determine the context to use based on the first hit in this chain
command line argument - again, parsed from the command line, so it must be late bound
CurrentContext from the merged kubeconfig file
Empty is allowed at this stage
Determine the cluster info and auth info to use. At this point, we may or may not have a context. They are built based on the first hit in this chain. (run it twice, once for auth, once for cluster)
command line argument
If context is present, then use the context value
Empty is allowed
Determine the actual cluster info to use. At this point, we may or may not have a cluster info. Build each piece of the cluster info based on the chain:
command line argument
If cluster info is present and a value for the attribute is present, use it.
If you don't have a server location, bail.
Auth info is build using the same rules as cluster info, EXCEPT that you can only have one authentication technique per auth info. The following conditions result in an error:
If there are two conflicting techniques specified from the command line, fail.
If the command line does not specify one, and the auth info has conflicting techniques, fail.
If the command line specifies one and the auth info specifies another, honor the command line technique.
Use default values and potentially prompt for auth information
However, if it appears that we're running in a kubernetes cluster container environment, then run with the auth info kubernetes mounted for us. Specifically: The env vars KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT are set, and the file /var/run/secrets/kubernetes.io/serviceaccount/token exists and is not a directory.
Initially copied from https://github.com/kubernetes/kubernetes/blob/09f321c80bfc9bca63a5530b56d7a1a3ba80ba9b/pkg/kubectl/cmd/util/factory_client_access.go#L174
func GetConfig ¶ added in v0.4.0
func GetConfig() (*restclient.Config, error)
func GetKubevirtClientConfig ¶ added in v0.0.4
func NewKubeVirtList ¶ added in v0.12.0
func NewKubeVirtList(kubevirts ...v1.KubeVirt) *v1.KubeVirtList
func NewMigrationList ¶ added in v0.9.2
func NewMigrationList(migrations ...v1.VirtualMachineInstanceMigration) *v1.VirtualMachineInstanceMigrationList
func NewMinimalKubeVirt ¶ added in v0.12.0
func NewMinimalMigration ¶ added in v0.9.2
func NewMinimalMigration(name string) *v1.VirtualMachineInstanceMigration
func NewMinimalVM ¶ added in v0.6.1
func NewMinimalVM(name string) *v1.VirtualMachine
func NewMinimalVirtualMachineInstanceReplicaSet ¶ added in v0.6.1
func NewMinimalVirtualMachineInstanceReplicaSet(name string) *v1.VirtualMachineInstanceReplicaSet
func NewVMList ¶ added in v0.6.0
func NewVMList(vms ...v1.VirtualMachine) *v1.VirtualMachineList
func NewVirtualMachineInstanceReplicaSetList ¶ added in v0.6.1
func NewVirtualMachineInstanceReplicaSetList(rss ...v1.VirtualMachineInstanceReplicaSet) *v1.VirtualMachineInstanceReplicaSetList
Types ¶
type AsyncSubresourceError ¶ added in v0.8.0
type AsyncSubresourceError struct { StatusCode int // contains filtered or unexported fields }
func (*AsyncSubresourceError) Error ¶ added in v0.8.0
func (a *AsyncSubresourceError) Error() string
func (*AsyncSubresourceError) GetStatusCode ¶ added in v0.8.0
func (a *AsyncSubresourceError) GetStatusCode() int
type BinaryReadWriter ¶ added in v0.4.0
type KubeVirtInterface ¶ added in v0.12.0
type KubeVirtInterface interface { Get(name string, options *k8smetav1.GetOptions) (*v1.KubeVirt, error) List(opts *k8smetav1.ListOptions) (*v1.KubeVirtList, error) Create(instance *v1.KubeVirt) (*v1.KubeVirt, error) Update(*v1.KubeVirt) (*v1.KubeVirt, error) Delete(name string, options *k8smetav1.DeleteOptions) error Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.KubeVirt, err error) }
type KubevirtClient ¶
type KubevirtClient interface { VirtualMachineInstance(namespace string) VirtualMachineInstanceInterface VirtualMachineInstanceMigration(namespace string) VirtualMachineInstanceMigrationInterface ReplicaSet(namespace string) ReplicaSetInterface VirtualMachine(namespace string) VirtualMachineInterface KubeVirt(namespace string) KubeVirtInterface ServerVersion() *ServerVersion RestClient() *rest.RESTClient CdiClient() cdiclient.Interface NetworkClient() networkclient.Interface ExtensionsClient() extclient.Interface SecClient() secv1.SecurityV1Interface DiscoveryClient() discovery.DiscoveryInterface kubernetes.Interface Config() *rest.Config }
func GetInvalidKubevirtClientFromClientConfig ¶ added in v0.6.0
func GetInvalidKubevirtClientFromClientConfig(cmdConfig clientcmd.ClientConfig) (KubevirtClient, error)
GetInvalidKubevirtClientFromClientConfig is an entry point for testing case where client should be invalid
func GetKubevirtClient ¶
func GetKubevirtClient() (KubevirtClient, error)
func GetKubevirtClientFromFlags ¶
func GetKubevirtClientFromFlags(master string, kubeconfig string) (KubevirtClient, error)
func GetKubevirtClientFromRESTConfig ¶ added in v0.4.0
func GetKubevirtClientFromRESTConfig(config *rest.Config) (KubevirtClient, error)
func GetKubevirtSubresourceClient ¶ added in v0.4.0
func GetKubevirtSubresourceClient() (KubevirtClient, error)
func GetKubevirtSubresourceClientFromFlags ¶ added in v0.4.0
func GetKubevirtSubresourceClientFromFlags(master string, kubeconfig string) (KubevirtClient, error)
func GetMockKubevirtClientFromClientConfig ¶ added in v0.6.0
func GetMockKubevirtClientFromClientConfig(cmdConfig clientcmd.ClientConfig) (KubevirtClient, error)
GetMockKubevirtClientFromClientConfig is an entry point for testing, could be used to override GetKubevirtClientFromClientConfig
type MockKubeVirtInterface ¶ added in v0.12.0
type MockKubeVirtInterface struct {
// contains filtered or unexported fields
}
Mock of KubeVirtInterface interface
func NewMockKubeVirtInterface ¶ added in v0.12.0
func NewMockKubeVirtInterface(ctrl *gomock.Controller) *MockKubeVirtInterface
func (*MockKubeVirtInterface) Delete ¶ added in v0.12.0
func (_m *MockKubeVirtInterface) Delete(name string, options *v11.DeleteOptions) error
func (*MockKubeVirtInterface) EXPECT ¶ added in v0.12.0
func (_m *MockKubeVirtInterface) EXPECT() *_MockKubeVirtInterfaceRecorder
func (*MockKubeVirtInterface) Get ¶ added in v0.12.0
func (_m *MockKubeVirtInterface) Get(name string, options *v11.GetOptions) (*v111.KubeVirt, error)
func (*MockKubeVirtInterface) List ¶ added in v0.12.0
func (_m *MockKubeVirtInterface) List(opts *v11.ListOptions) (*v111.KubeVirtList, error)
type MockKubevirtClient ¶
type MockKubevirtClient struct {
// contains filtered or unexported fields
}
Mock of KubevirtClient interface
var MockKubevirtClientInstance *MockKubevirtClient
MockKubevirtClientInstance is a reference to the kubevirt client that could be manipulated by the test code
func NewMockKubevirtClient ¶
func NewMockKubevirtClient(ctrl *gomock.Controller) *MockKubevirtClient
func (*MockKubevirtClient) Admissionregistration ¶
func (_m *MockKubevirtClient) Admissionregistration() v1beta1.AdmissionregistrationV1beta1Interface
func (*MockKubevirtClient) AdmissionregistrationV1alpha1 ¶
func (_m *MockKubevirtClient) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface
func (*MockKubevirtClient) AdmissionregistrationV1beta1 ¶ added in v0.4.0
func (_m *MockKubevirtClient) AdmissionregistrationV1beta1() v1beta1.AdmissionregistrationV1beta1Interface
func (*MockKubevirtClient) Apps ¶
func (_m *MockKubevirtClient) Apps() v12.AppsV1Interface
func (*MockKubevirtClient) AppsV1 ¶ added in v0.4.0
func (_m *MockKubevirtClient) AppsV1() v12.AppsV1Interface
func (*MockKubevirtClient) AppsV1beta1 ¶
func (_m *MockKubevirtClient) AppsV1beta1() v1beta10.AppsV1beta1Interface
func (*MockKubevirtClient) AppsV1beta2 ¶ added in v0.0.3
func (_m *MockKubevirtClient) AppsV1beta2() v1beta2.AppsV1beta2Interface
func (*MockKubevirtClient) Authentication ¶
func (_m *MockKubevirtClient) Authentication() v13.AuthenticationV1Interface
func (*MockKubevirtClient) AuthenticationV1 ¶
func (_m *MockKubevirtClient) AuthenticationV1() v13.AuthenticationV1Interface
func (*MockKubevirtClient) AuthenticationV1beta1 ¶
func (_m *MockKubevirtClient) AuthenticationV1beta1() v1beta11.AuthenticationV1beta1Interface
func (*MockKubevirtClient) Authorization ¶
func (_m *MockKubevirtClient) Authorization() v14.AuthorizationV1Interface
func (*MockKubevirtClient) AuthorizationV1 ¶
func (_m *MockKubevirtClient) AuthorizationV1() v14.AuthorizationV1Interface
func (*MockKubevirtClient) AuthorizationV1beta1 ¶
func (_m *MockKubevirtClient) AuthorizationV1beta1() v1beta12.AuthorizationV1beta1Interface
func (*MockKubevirtClient) Autoscaling ¶
func (_m *MockKubevirtClient) Autoscaling() v15.AutoscalingV1Interface
func (*MockKubevirtClient) AutoscalingV1 ¶
func (_m *MockKubevirtClient) AutoscalingV1() v15.AutoscalingV1Interface
func (*MockKubevirtClient) AutoscalingV2beta1 ¶ added in v0.1.0
func (_m *MockKubevirtClient) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface
func (*MockKubevirtClient) AutoscalingV2beta2 ¶ added in v0.14.0
func (_m *MockKubevirtClient) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface
func (*MockKubevirtClient) Batch ¶
func (_m *MockKubevirtClient) Batch() v16.BatchV1Interface
func (*MockKubevirtClient) BatchV1 ¶
func (_m *MockKubevirtClient) BatchV1() v16.BatchV1Interface
func (*MockKubevirtClient) BatchV1beta1 ¶ added in v0.0.3
func (_m *MockKubevirtClient) BatchV1beta1() v1beta13.BatchV1beta1Interface
func (*MockKubevirtClient) BatchV2alpha1 ¶
func (_m *MockKubevirtClient) BatchV2alpha1() v2alpha1.BatchV2alpha1Interface
func (*MockKubevirtClient) CdiClient ¶ added in v0.8.0
func (_m *MockKubevirtClient) CdiClient() versioned0.Interface
func (*MockKubevirtClient) Certificates ¶
func (_m *MockKubevirtClient) Certificates() v1beta14.CertificatesV1beta1Interface
func (*MockKubevirtClient) CertificatesV1beta1 ¶
func (_m *MockKubevirtClient) CertificatesV1beta1() v1beta14.CertificatesV1beta1Interface
func (*MockKubevirtClient) Config ¶ added in v0.12.0
func (_m *MockKubevirtClient) Config() *rest.Config
func (*MockKubevirtClient) Coordination ¶ added in v0.14.0
func (_m *MockKubevirtClient) Coordination() v1beta15.CoordinationV1beta1Interface
func (*MockKubevirtClient) CoordinationV1beta1 ¶ added in v0.14.0
func (_m *MockKubevirtClient) CoordinationV1beta1() v1beta15.CoordinationV1beta1Interface
func (*MockKubevirtClient) Core ¶
func (_m *MockKubevirtClient) Core() v17.CoreV1Interface
func (*MockKubevirtClient) CoreV1 ¶
func (_m *MockKubevirtClient) CoreV1() v17.CoreV1Interface
func (*MockKubevirtClient) Discovery ¶
func (_m *MockKubevirtClient) Discovery() discovery.DiscoveryInterface
func (*MockKubevirtClient) DiscoveryClient ¶ added in v0.15.0
func (_m *MockKubevirtClient) DiscoveryClient() discovery.DiscoveryInterface
func (*MockKubevirtClient) EXPECT ¶
func (_m *MockKubevirtClient) EXPECT() *_MockKubevirtClientRecorder
func (*MockKubevirtClient) Events ¶ added in v0.4.0
func (_m *MockKubevirtClient) Events() v1beta16.EventsV1beta1Interface
func (*MockKubevirtClient) EventsV1beta1 ¶ added in v0.4.0
func (_m *MockKubevirtClient) EventsV1beta1() v1beta16.EventsV1beta1Interface
func (*MockKubevirtClient) Extensions ¶
func (_m *MockKubevirtClient) Extensions() v1beta17.ExtensionsV1beta1Interface
func (*MockKubevirtClient) ExtensionsClient ¶ added in v0.12.0
func (_m *MockKubevirtClient) ExtensionsClient() clientset.Interface
func (*MockKubevirtClient) ExtensionsV1beta1 ¶
func (_m *MockKubevirtClient) ExtensionsV1beta1() v1beta17.ExtensionsV1beta1Interface
func (*MockKubevirtClient) KubeVirt ¶ added in v0.12.0
func (_m *MockKubevirtClient) KubeVirt(namespace string) KubeVirtInterface
func (*MockKubevirtClient) NetworkClient ¶ added in v0.11.0
func (_m *MockKubevirtClient) NetworkClient() versioned.Interface
func (*MockKubevirtClient) Networking ¶
func (_m *MockKubevirtClient) Networking() v18.NetworkingV1Interface
func (*MockKubevirtClient) NetworkingV1 ¶
func (_m *MockKubevirtClient) NetworkingV1() v18.NetworkingV1Interface
func (*MockKubevirtClient) Policy ¶
func (_m *MockKubevirtClient) Policy() v1beta18.PolicyV1beta1Interface
func (*MockKubevirtClient) PolicyV1beta1 ¶
func (_m *MockKubevirtClient) PolicyV1beta1() v1beta18.PolicyV1beta1Interface
func (*MockKubevirtClient) Rbac ¶
func (_m *MockKubevirtClient) Rbac() v19.RbacV1Interface
func (*MockKubevirtClient) RbacV1 ¶ added in v0.0.3
func (_m *MockKubevirtClient) RbacV1() v19.RbacV1Interface
func (*MockKubevirtClient) RbacV1alpha1 ¶
func (_m *MockKubevirtClient) RbacV1alpha1() v1alpha10.RbacV1alpha1Interface
func (*MockKubevirtClient) RbacV1beta1 ¶
func (_m *MockKubevirtClient) RbacV1beta1() v1beta19.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() v1beta110.SchedulingV1beta1Interface
func (*MockKubevirtClient) SchedulingV1alpha1 ¶ added in v0.0.3
func (_m *MockKubevirtClient) SchedulingV1alpha1() v1alpha11.SchedulingV1alpha1Interface
func (*MockKubevirtClient) SchedulingV1beta1 ¶ added in v0.9.0
func (_m *MockKubevirtClient) SchedulingV1beta1() v1beta110.SchedulingV1beta1Interface
func (*MockKubevirtClient) SecClient ¶ added in v0.12.0
func (_m *MockKubevirtClient) SecClient() v1.SecurityV1Interface
func (*MockKubevirtClient) ServerVersion ¶ added in v0.6.0
func (_m *MockKubevirtClient) ServerVersion() *ServerVersion
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() v110.StorageV1Interface
func (*MockKubevirtClient) StorageV1 ¶
func (_m *MockKubevirtClient) StorageV1() v110.StorageV1Interface
func (*MockKubevirtClient) StorageV1alpha1 ¶ added in v0.4.0
func (_m *MockKubevirtClient) StorageV1alpha1() v1alpha13.StorageV1alpha1Interface
func (*MockKubevirtClient) StorageV1beta1 ¶
func (_m *MockKubevirtClient) StorageV1beta1() v1beta111.StorageV1beta1Interface
func (*MockKubevirtClient) VirtualMachine ¶ added in v0.6.1
func (_m *MockKubevirtClient) VirtualMachine(namespace string) VirtualMachineInterface
func (*MockKubevirtClient) VirtualMachineInstance ¶ added in v0.6.1
func (_m *MockKubevirtClient) VirtualMachineInstance(namespace string) VirtualMachineInstanceInterface
func (*MockKubevirtClient) VirtualMachineInstanceMigration ¶ added in v0.9.2
func (_m *MockKubevirtClient) VirtualMachineInstanceMigration(namespace string) VirtualMachineInstanceMigrationInterface
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 *v111.VirtualMachineInstanceReplicaSet) (*v111.VirtualMachineInstanceReplicaSet, error)
func (*MockReplicaSetInterface) Delete ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) Delete(name string, options *v11.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 v11.GetOptions) (*v111.VirtualMachineInstanceReplicaSet, error)
func (*MockReplicaSetInterface) GetScale ¶ added in v0.12.0
func (_m *MockReplicaSetInterface) GetScale(replicaSetName string, options v11.GetOptions) (*v10.Scale, error)
func (*MockReplicaSetInterface) List ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) List(opts v11.ListOptions) (*v111.VirtualMachineInstanceReplicaSetList, error)
func (*MockReplicaSetInterface) Patch ¶ added in v0.12.0
func (_m *MockReplicaSetInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstanceReplicaSet, error)
func (*MockReplicaSetInterface) Update ¶ added in v0.0.3
func (_m *MockReplicaSetInterface) Update(_param0 *v111.VirtualMachineInstanceReplicaSet) (*v111.VirtualMachineInstanceReplicaSet, error)
func (*MockReplicaSetInterface) UpdateScale ¶ added in v0.12.0
type MockStreamInterface ¶ added in v0.6.1
type MockStreamInterface struct {
// contains filtered or unexported fields
}
Mock of StreamInterface interface
func NewMockStreamInterface ¶ added in v0.6.1
func NewMockStreamInterface(ctrl *gomock.Controller) *MockStreamInterface
func (*MockStreamInterface) EXPECT ¶ added in v0.6.1
func (_m *MockStreamInterface) EXPECT() *_MockStreamInterfaceRecorder
func (*MockStreamInterface) Stream ¶ added in v0.6.1
func (_m *MockStreamInterface) Stream(options StreamOptions) error
type MockVMIPresetInterface ¶ added in v0.6.1
type MockVMIPresetInterface struct {
// contains filtered or unexported fields
}
Mock of VMIPresetInterface interface
func NewMockVMIPresetInterface ¶ added in v0.6.1
func NewMockVMIPresetInterface(ctrl *gomock.Controller) *MockVMIPresetInterface
func (*MockVMIPresetInterface) Create ¶ added in v0.6.1
func (_m *MockVMIPresetInterface) Create(_param0 *v111.VirtualMachineInstancePreset) (*v111.VirtualMachineInstancePreset, error)
func (*MockVMIPresetInterface) Delete ¶ added in v0.6.1
func (_m *MockVMIPresetInterface) Delete(name string, options *v11.DeleteOptions) error
func (*MockVMIPresetInterface) EXPECT ¶ added in v0.6.1
func (_m *MockVMIPresetInterface) EXPECT() *_MockVMIPresetInterfaceRecorder
func (*MockVMIPresetInterface) Get ¶ added in v0.6.1
func (_m *MockVMIPresetInterface) Get(name string, options v11.GetOptions) (*v111.VirtualMachineInstancePreset, error)
func (*MockVMIPresetInterface) List ¶ added in v0.6.1
func (_m *MockVMIPresetInterface) List(opts v11.ListOptions) (*v111.VirtualMachineInstancePresetList, error)
func (*MockVMIPresetInterface) Patch ¶ added in v0.6.1
func (_m *MockVMIPresetInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstancePreset, error)
func (*MockVMIPresetInterface) Update ¶ added in v0.6.1
func (_m *MockVMIPresetInterface) Update(_param0 *v111.VirtualMachineInstancePreset) (*v111.VirtualMachineInstancePreset, error)
type MockVirtualMachineInstanceInterface ¶ added in v0.6.1
type MockVirtualMachineInstanceInterface struct {
// contains filtered or unexported fields
}
Mock of VirtualMachineInstanceInterface interface
func NewMockVirtualMachineInstanceInterface ¶ added in v0.6.1
func NewMockVirtualMachineInstanceInterface(ctrl *gomock.Controller) *MockVirtualMachineInstanceInterface
func (*MockVirtualMachineInstanceInterface) Create ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) Create(instance *v111.VirtualMachineInstance) (*v111.VirtualMachineInstance, error)
func (*MockVirtualMachineInstanceInterface) Delete ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) Delete(name string, options *v11.DeleteOptions) error
func (*MockVirtualMachineInstanceInterface) EXPECT ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) EXPECT() *_MockVirtualMachineInstanceInterfaceRecorder
func (*MockVirtualMachineInstanceInterface) Get ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) Get(name string, options *v11.GetOptions) (*v111.VirtualMachineInstance, error)
func (*MockVirtualMachineInstanceInterface) List ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) List(opts *v11.ListOptions) (*v111.VirtualMachineInstanceList, error)
func (*MockVirtualMachineInstanceInterface) Patch ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstance, error)
func (*MockVirtualMachineInstanceInterface) SerialConsole ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) SerialConsole(name string, timeout time.Duration) (StreamInterface, error)
func (*MockVirtualMachineInstanceInterface) Update ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) Update(_param0 *v111.VirtualMachineInstance) (*v111.VirtualMachineInstance, error)
func (*MockVirtualMachineInstanceInterface) VNC ¶ added in v0.6.1
func (_m *MockVirtualMachineInstanceInterface) VNC(name string) (StreamInterface, error)
type MockVirtualMachineInstanceMigrationInterface ¶ added in v0.9.2
type MockVirtualMachineInstanceMigrationInterface struct {
// contains filtered or unexported fields
}
Mock of VirtualMachineInstanceMigrationInterface interface
func NewMockVirtualMachineInstanceMigrationInterface ¶ added in v0.9.2
func NewMockVirtualMachineInstanceMigrationInterface(ctrl *gomock.Controller) *MockVirtualMachineInstanceMigrationInterface
func (*MockVirtualMachineInstanceMigrationInterface) Create ¶ added in v0.9.2
func (_m *MockVirtualMachineInstanceMigrationInterface) Create(_param0 *v111.VirtualMachineInstanceMigration) (*v111.VirtualMachineInstanceMigration, error)
func (*MockVirtualMachineInstanceMigrationInterface) Delete ¶ added in v0.9.2
func (_m *MockVirtualMachineInstanceMigrationInterface) Delete(name string, options *v11.DeleteOptions) error
func (*MockVirtualMachineInstanceMigrationInterface) EXPECT ¶ added in v0.9.2
func (_m *MockVirtualMachineInstanceMigrationInterface) EXPECT() *_MockVirtualMachineInstanceMigrationInterfaceRecorder
func (*MockVirtualMachineInstanceMigrationInterface) Get ¶ added in v0.9.2
func (_m *MockVirtualMachineInstanceMigrationInterface) Get(name string, options *v11.GetOptions) (*v111.VirtualMachineInstanceMigration, error)
func (*MockVirtualMachineInstanceMigrationInterface) List ¶ added in v0.9.2
func (_m *MockVirtualMachineInstanceMigrationInterface) List(opts *v11.ListOptions) (*v111.VirtualMachineInstanceMigrationList, error)
func (*MockVirtualMachineInstanceMigrationInterface) Patch ¶ added in v0.9.2
func (_m *MockVirtualMachineInstanceMigrationInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachineInstanceMigration, error)
func (*MockVirtualMachineInstanceMigrationInterface) Update ¶ added in v0.9.2
func (_m *MockVirtualMachineInstanceMigrationInterface) Update(_param0 *v111.VirtualMachineInstanceMigration) (*v111.VirtualMachineInstanceMigration, error)
type MockVirtualMachineInterface ¶ added in v0.6.1
type MockVirtualMachineInterface struct {
// contains filtered or unexported fields
}
Mock of VirtualMachineInterface interface
func NewMockVirtualMachineInterface ¶ added in v0.6.1
func NewMockVirtualMachineInterface(ctrl *gomock.Controller) *MockVirtualMachineInterface
func (*MockVirtualMachineInterface) Create ¶ added in v0.6.1
func (_m *MockVirtualMachineInterface) Create(_param0 *v111.VirtualMachine) (*v111.VirtualMachine, error)
func (*MockVirtualMachineInterface) Delete ¶ added in v0.6.1
func (_m *MockVirtualMachineInterface) Delete(name string, options *v11.DeleteOptions) error
func (*MockVirtualMachineInterface) EXPECT ¶ added in v0.6.1
func (_m *MockVirtualMachineInterface) EXPECT() *_MockVirtualMachineInterfaceRecorder
func (*MockVirtualMachineInterface) Get ¶ added in v0.6.1
func (_m *MockVirtualMachineInterface) Get(name string, options *v11.GetOptions) (*v111.VirtualMachine, error)
func (*MockVirtualMachineInterface) List ¶ added in v0.6.1
func (_m *MockVirtualMachineInterface) List(opts *v11.ListOptions) (*v111.VirtualMachineList, error)
func (*MockVirtualMachineInterface) Patch ¶ added in v0.6.1
func (_m *MockVirtualMachineInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v111.VirtualMachine, error)
func (*MockVirtualMachineInterface) Restart ¶ added in v0.11.0
func (_m *MockVirtualMachineInterface) Restart(name string) error
func (*MockVirtualMachineInterface) Update ¶ added in v0.6.1
func (_m *MockVirtualMachineInterface) Update(_param0 *v111.VirtualMachine) (*v111.VirtualMachine, error)
type ReplicaSetInterface ¶ added in v0.0.3
type ReplicaSetInterface interface { Get(name string, options k8smetav1.GetOptions) (*v1.VirtualMachineInstanceReplicaSet, error) List(opts k8smetav1.ListOptions) (*v1.VirtualMachineInstanceReplicaSetList, error) Create(*v1.VirtualMachineInstanceReplicaSet) (*v1.VirtualMachineInstanceReplicaSet, error) Update(*v1.VirtualMachineInstanceReplicaSet) (*v1.VirtualMachineInstanceReplicaSet, error) Delete(name string, options *k8smetav1.DeleteOptions) error GetScale(replicaSetName string, options k8smetav1.GetOptions) (*autov1.Scale, error) UpdateScale(replicaSetName string, scale *autov1.Scale) (*autov1.Scale, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachineInstanceReplicaSet, err error) }
type RoundTripCallback ¶ added in v0.4.0
type ServerVersion ¶ added in v0.6.0
type ServerVersion struct {
// contains filtered or unexported fields
}
type StreamInterface ¶ added in v0.6.1
type StreamInterface interface {
Stream(options StreamOptions) error
}
type VMIPresetInterface ¶ added in v0.6.1
type VMIPresetInterface interface { Get(name string, options k8smetav1.GetOptions) (*v1.VirtualMachineInstancePreset, error) List(opts k8smetav1.ListOptions) (*v1.VirtualMachineInstancePresetList, error) Create(*v1.VirtualMachineInstancePreset) (*v1.VirtualMachineInstancePreset, error) Update(*v1.VirtualMachineInstancePreset) (*v1.VirtualMachineInstancePreset, error) Delete(name string, options *k8smetav1.DeleteOptions) error Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachineInstancePreset, err 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
type VirtualMachineInstanceInterface ¶ added in v0.6.1
type VirtualMachineInstanceInterface interface { Get(name string, options *k8smetav1.GetOptions) (*v1.VirtualMachineInstance, error) List(opts *k8smetav1.ListOptions) (*v1.VirtualMachineInstanceList, error) Create(instance *v1.VirtualMachineInstance) (*v1.VirtualMachineInstance, error) Update(*v1.VirtualMachineInstance) (*v1.VirtualMachineInstance, error) Delete(name string, options *k8smetav1.DeleteOptions) error Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachineInstance, err error) SerialConsole(name string, timeout time.Duration) (StreamInterface, error) VNC(name string) (StreamInterface, error) }
type VirtualMachineInstanceMigrationInterface ¶ added in v0.9.2
type VirtualMachineInstanceMigrationInterface interface { Get(name string, options *k8smetav1.GetOptions) (*v1.VirtualMachineInstanceMigration, error) List(opts *k8smetav1.ListOptions) (*v1.VirtualMachineInstanceMigrationList, error) Create(*v1.VirtualMachineInstanceMigration) (*v1.VirtualMachineInstanceMigration, error) Update(*v1.VirtualMachineInstanceMigration) (*v1.VirtualMachineInstanceMigration, error) Delete(name string, options *k8smetav1.DeleteOptions) error Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachineInstanceMigration, err error) }
type VirtualMachineInterface ¶ added in v0.6.1
type VirtualMachineInterface 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 Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachine, err error) Restart(name string) error }
VirtualMachineInterface provides convenience methods to work with virtual machines inside the cluster
type WebsocketRoundTripper ¶ added in v0.4.0
type WebsocketRoundTripper struct { Dialer *websocket.Dialer Do RoundTripCallback }