client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateVirtualMachine(vm *kubevirtapiv1.VirtualMachine) error
	GetVirtualMachine(namespace string, name string) (*kubevirtapiv1.VirtualMachine, error)
	UpdateVirtualMachine(namespace string, name string, vm *kubevirtapiv1.VirtualMachine, data []byte) error
	DeleteVirtualMachine(namespace string, name string) error

	CreateDataVolume(vm *cdiv1.DataVolume) error
	GetDataVolume(namespace string, name string) (*cdiv1.DataVolume, error)
	UpdateDataVolume(namespace string, name string, dv *cdiv1.DataVolume, data []byte) error
	DeleteDataVolume(namespace string, name string) error
}

func NewClient

func NewClient(cfg *restclient.Config) (Client, error)

New creates our client wrapper object for the actual kubeVirt and kubernetes clients we use.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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