package
1.5.0-rc.1
Repository: https://github.com/kubevirt/kubevirt.git
Documentation: pkg.go.dev

# Functions

CreateVirtualMachineExport serves as a wrapper to create the virtualMachineExport object and, if needed, do error handling.
DeleteVirtualMachineExport serves as a wrapper to delete the virtualMachineExport object.
DownloadVirtualMachineExport handles the process of downloading the requested volume from a VirtualMachineExport object.
GetHTTPClient assigns the default, non-mocked HTTP client.
GetManifestUrlsFromVirtualMachineExport retrieves the manifest URLs from VirtualMachineExport status.
GetUrlFromVirtualMachineExport inspects the VirtualMachineExport status to fetch the extected URL.
HandleHTTPGetRequest generates the GET request with proper certificate handling.
NewVirtualMachineExportCommand returns a cobra.Command to handle the export process.
RunPortForward is the actual function that runs the port-forward.
WaitForVirtualMachineExport waits for the VirtualMachineExport status and external links to be ready.

# Constants

Available vmexport functions.
DefaultProcessingWaitTotal is the default maximum time used to wait for a virtualMachineExport to be ready.
ErrIncompatibleExportType serves as error message when an export kind is provided with an incompatible argument.
ErrIncompatibleExportTypeManifest serves as error message when a PVC kind is defined when getting manifest.
ErrIncompatibleFlag serves as error message when an incompatible flag is used.
ErrInvalidValue ensures that the value provided in a flag is one of the acceptable values.
ErrRequiredExportType serves as error message when no export kind is provided.
ErrRequiredFlag serves as error message when a mandatory flag is missing.
Possible output format for volumes.
Available vmexport flags.
Possible output format for manifests.

# Variables

GetHTTPClientFn allows overriding the default http client (useful for unit testing).
HandleHTTPGetRequestFn allows overriding the default http GET request handler (useful for unit testing).
RunPortForwardFn allows overriding the default port-forwarder (useful for unit testing).
WaitForVirtualMachineExportFn allows overriding the function to wait for the export object to be ready (useful for unit testing).

# Structs