utils

package
v0.59.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 18 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 HandleSecretGet added in v0.59.0

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

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 VMExportSpec added in v0.59.0

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

func WaitExportCompleteDefault added in v0.59.0

func WaitExportCompleteError added in v0.59.0

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