# 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).