Documentation ¶
Index ¶
- Constants
- func CreateEphemeralImages(vmi *v1.VirtualMachineInstance) error
- func GenerateContainers(vmi *v1.VirtualMachineInstance, podVolumeName string, binVolumeName string) []kubev1.Container
- func GenerateDiskTargetPathFromHostView(vmi *v1.VirtualMachineInstance, volumeIndex int) string
- func GenerateDiskTargetPathFromLauncherView(volumeIndex int) string
- func GenerateSocketPathFromHostView(vmi *v1.VirtualMachineInstance, volumeIndex int) string
- func GenerateVolumeMountDir(vmi *v1.VirtualMachineInstance) string
- func GetDiskTargetPartFromLauncherView(volumeIndex int) (string, error)
- func GetImage(root string, imagePath string) (string, error)
- func SetLocalDataOwner(user string)
- func SetLocalDirectory(dir string) error
- func VerifyImage(diskInfo *DiskInfo) error
- func VerifyQCOW2(diskInfo *DiskInfo) error
- type DiskInfo
Constants ¶
View Source
const (
DiskSourceFallbackPath = "/disk"
)
Variables ¶
This section is empty.
Functions ¶
func CreateEphemeralImages ¶ added in v0.20.0
func CreateEphemeralImages(vmi *v1.VirtualMachineInstance) error
func GenerateContainers ¶
func GenerateContainers(vmi *v1.VirtualMachineInstance, podVolumeName string, binVolumeName string) []kubev1.Container
The controller uses this function to generate the container specs for hosting the container registry disks.
func GenerateDiskTargetPathFromHostView ¶ added in v0.20.0
func GenerateDiskTargetPathFromHostView(vmi *v1.VirtualMachineInstance, volumeIndex int) string
func GenerateDiskTargetPathFromLauncherView ¶ added in v0.20.0
func GenerateSocketPathFromHostView ¶ added in v0.20.0
func GenerateSocketPathFromHostView(vmi *v1.VirtualMachineInstance, volumeIndex int) string
func GenerateVolumeMountDir ¶ added in v0.20.0
func GenerateVolumeMountDir(vmi *v1.VirtualMachineInstance) string
func GetDiskTargetPartFromLauncherView ¶ added in v0.20.0
GetDiskTargetPartFromLauncherView returns (path to disk image, image type, and error)
func SetLocalDirectory ¶
func VerifyImage ¶ added in v0.20.0
func VerifyQCOW2 ¶ added in v0.20.0
Types ¶
Click to show internal directories.
Click to hide internal directories.