kubecli

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubevirtClientConfig added in v0.0.4

func GetKubevirtClientConfig() (*rest.Config, error)

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 (*MockKubevirtClient) AdmissionregistrationV1alpha1

func (_m *MockKubevirtClient) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface

func (*MockKubevirtClient) Apps

func (*MockKubevirtClient) AppsV1beta1

func (*MockKubevirtClient) AppsV1beta2 added in v0.0.3

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) AutoscalingV2beta1 added in v0.1.0

func (_m *MockKubevirtClient) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface

func (*MockKubevirtClient) Batch

func (*MockKubevirtClient) BatchV1

func (_m *MockKubevirtClient) BatchV1() v13.BatchV1Interface

func (*MockKubevirtClient) BatchV1beta1 added in v0.0.3

func (*MockKubevirtClient) BatchV2alpha1

func (*MockKubevirtClient) Certificates

func (*MockKubevirtClient) CertificatesV1beta1

func (_m *MockKubevirtClient) CertificatesV1beta1() v1beta13.CertificatesV1beta1Interface

func (*MockKubevirtClient) Core

func (*MockKubevirtClient) CoreV1

func (_m *MockKubevirtClient) CoreV1() v14.CoreV1Interface

func (*MockKubevirtClient) Discovery

func (*MockKubevirtClient) EXPECT

func (_m *MockKubevirtClient) EXPECT() *_MockKubevirtClientRecorder

func (*MockKubevirtClient) Extensions

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 (*MockKubevirtClient) PolicyV1beta1

func (*MockKubevirtClient) Rbac

func (*MockKubevirtClient) RbacV1 added in v0.0.3

func (_m *MockKubevirtClient) RbacV1() v16.RbacV1Interface

func (*MockKubevirtClient) RbacV1alpha1

func (*MockKubevirtClient) RbacV1beta1

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 (*MockKubevirtClient) SchedulingV1alpha1 added in v0.0.3

func (_m *MockKubevirtClient) SchedulingV1alpha1() v1alpha11.SchedulingV1alpha1Interface

func (*MockKubevirtClient) Settings

func (*MockKubevirtClient) SettingsV1alpha1

func (*MockKubevirtClient) Storage

func (*MockKubevirtClient) StorageV1

func (_m *MockKubevirtClient) StorageV1() v17.StorageV1Interface

func (*MockKubevirtClient) StorageV1beta1

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) Create

func (_m *MockMigrationInterface) Create(_param0 *v18.Migration) (*v18.Migration, error)

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 (*MockMigrationInterface) Update

func (_m *MockMigrationInterface) Update(_param0 *v18.Migration) (*v18.Migration, 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 (*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 (*MockReplicaSetInterface) List added in v0.0.3

func (*MockReplicaSetInterface) Update added in v0.0.3

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 (*MockVMInterface) Patch added in v0.1.0

func (_m *MockVMInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v18.VirtualMachine, error)

func (*MockVMInterface) SerialConsole added in v0.2.0

func (_m *MockVMInterface) SerialConsole(name string, device string, in io.Reader, out io.Writer) error

func (*MockVMInterface) Update

func (_m *MockVMInterface) Update(_param0 *v18.VirtualMachine) (*v18.VirtualMachine, error)

func (*MockVMInterface) VNC added in v0.2.0

func (_m *MockVMInterface) VNC(name string, in io.Reader, out io.Writer) 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
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachine, err error)
	SerialConsole(name string, device string, in io.Reader, out io.Writer) error
	VNC(name string, in io.Reader, out io.Writer) 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 VirtHandlerConn interface {
	NodeMigrationDetails(vm *virtv1.VirtualMachine) (*virtv1.MigrationHostInfo, error)
	ConnectionDetails() (ip string, port string, err error)
	ConsoleURI(vm *virtv1.VirtualMachine) (*url.URL, error)
	Pod() (pod *v1.Pod, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL