Documentation
¶
Index ¶
- Constants
- func CreateEphemeralImages(vmi *v1.VirtualMachineInstance) error
- func GenerateContainers(vmi *v1.VirtualMachineInstance, podVolumeName string, binVolumeName string) []kubev1.Container
- func GetDiskTargetPartFromLauncherView(volumeIndex int) (string, error)
- func GetDiskTargetPathFromHostView(vmi *v1.VirtualMachineInstance, volumeIndex int) (string, error)
- func GetDiskTargetPathFromLauncherView(volumeIndex int) string
- func GetImage(root string, imagePath string) (string, error)
- func GetLegacyVolumeMountDirOnHost(vmi *v1.VirtualMachineInstance) string
- func GetVolumeMountDirOnGuest(vmi *v1.VirtualMachineInstance) string
- func GetVolumeMountDirOnHost(vmi *v1.VirtualMachineInstance) (string, bool, error)
- func SetKubeletPodsDirectory(dir string)
- func SetLocalDirectory(dir string) error
- func VerifyImage(diskInfo *DiskInfo) error
- func VerifyQCOW2(diskInfo *DiskInfo) error
- type DiskInfo
- type SocketPathGetter
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 GetDiskTargetPartFromLauncherView ¶ added in v0.20.0
GetDiskTargetPartFromLauncherView returns (path to disk image, image type, and error)
func GetDiskTargetPathFromHostView ¶ added in v0.29.0
func GetDiskTargetPathFromHostView(vmi *v1.VirtualMachineInstance, volumeIndex int) (string, error)
func GetDiskTargetPathFromLauncherView ¶ added in v0.29.0
func GetLegacyVolumeMountDirOnHost ¶ added in v0.29.0
func GetLegacyVolumeMountDirOnHost(vmi *v1.VirtualMachineInstance) string
func GetVolumeMountDirOnGuest ¶ added in v0.29.0
func GetVolumeMountDirOnGuest(vmi *v1.VirtualMachineInstance) string
func GetVolumeMountDirOnHost ¶ added in v0.29.0
func GetVolumeMountDirOnHost(vmi *v1.VirtualMachineInstance) (string, bool, error)
func SetKubeletPodsDirectory ¶ added in v0.30.0
func SetKubeletPodsDirectory(dir string)
func SetLocalDirectory ¶
func VerifyImage ¶ added in v0.20.0
func VerifyQCOW2 ¶ added in v0.20.0
Types ¶
type SocketPathGetter ¶ added in v0.30.6
type SocketPathGetter func(vmi *v1.VirtualMachineInstance, volumeIndex int) (string, error)
func NewSocketPathGetter ¶ added in v0.30.6
func NewSocketPathGetter(baseDir string) SocketPathGetter
NewSocketPathGetter get the socket pat of a containerDisk. For testing a baseDir can be provided which can for instance point to /tmp.
Click to show internal directories.
Click to hide internal directories.