utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachConsole

func AttachConsole(stdinReader, stdoutReader *io.PipeReader, stdinWriter, stdoutWriter *io.PipeWriter, message string, resChan <-chan error) (err error)

AttachConsole attaches stdin and stdout to the console in -> stdinWriter | stdinReader -> console out <- stdoutReader | stdoutWriter <- console

func GetExportVolumeFormat added in v0.59.0

func GetExportVolumeFormat(url string, format exportv1.ExportVolumeFormat) []exportv1.VirtualMachineExportVolumeFormat

func GetVMEStatus added in v0.59.0

func HandlePodList added in v1.1.0

func HandlePodList(k8sClient *fakek8sclient.Clientset, podName string)

func HandleSecretGet added in v0.59.0

func HandleSecretGet(k8sClient *fakek8sclient.Clientset, secretName string)

func HandleServiceGet added in v1.1.0

func HandleServiceGet(k8sClient *fakek8sclient.Clientset, serviceName string, port int)

func HandleVMExportCreate added in v0.59.0

func HandleVMExportCreate(client *kubevirtfake.Clientset, vme *exportv1.VirtualMachineExport)

func HandleVMExportGet added in v0.59.0

func HandleVMExportGet(client *kubevirtfake.Clientset, vme *exportv1.VirtualMachineExport, vmexportName string)

func VMExportSpecLocalObjectResource added in v0.59.1

func VMExportSpecLocalObjectResource(name, namespace, secretName string, source *v1.TypedLocalObjectReference) *exportv1.VirtualMachineExport

func VMExportSpecPVC added in v0.59.1

func VMExportSpecPVC(name, namespace, resourceName, secretName string) *exportv1.VirtualMachineExport

func VMExportSpecSnapshot added in v0.59.1

func VMExportSpecSnapshot(name, namespace, resourceName, secretName string) *exportv1.VirtualMachineExport

func VMExportSpecVM added in v0.59.1

func VMExportSpecVM(name, namespace, resourceName, secretName string) *exportv1.VirtualMachineExport

Types

type AtomicBool added in v0.56.0

type AtomicBool struct {
	Lock *sync.Mutex
	// contains filtered or unexported fields
}

func (*AtomicBool) False added in v0.56.0

func (b *AtomicBool) False()

func (*AtomicBool) IsTrue added in v0.56.0

func (b *AtomicBool) IsTrue() bool

func (*AtomicBool) True added in v0.56.0

func (b *AtomicBool) True()

Jump to

Keyboard shortcuts

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