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

# Functions

CreateAttacher attaches the stdin, stdout, and stderr to the container shell.
GetImageInfo gets the image info based on the information on KubeVirt CR.
NewGuestfsShellCommand returns a cobra.Command for starting libguestfs-tool pod and attach it to a pvc.
SetImage sets the image name based on the information retrieved by the KubeVirt server.

# Constants

KvmDevice defines the resource as in pkg/virt-controller/services/template.go, but we don't import the package to avoid compile conflicts when the os is windows.

# Variables

Following variables allow overriding the default functions (useful for unit testing).

# Structs

K8sClient holds the information of the Kubernetes client.