Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDirOwner ¶
func ChangeDirOwner(pod IPodInfo, drv IVolumeMount, ctrId string, vol *hostapi.ContainerVolumeMount) error
func GetRuntimeVolumeMountPropagation ¶
func GetRuntimeVolumeMountPropagation(input apis.ContainerMountPropagation) runtimeapi.MountPropagation
func RegisterDriver ¶
func RegisterDriver(drv IVolumeMount)
Types ¶
type IPodInfo ¶
type IPodInfo interface { GetVolumesDir() string GetVolumesOverlayDir() string GetDisks() []*desc.SGuestDisk GetDiskMountPoint(disk storageman.IDisk) string }
type IVolumeMount ¶
type IVolumeMount interface { GetType() apis.ContainerVolumeMountType GetRuntimeMountHostPath(pod IPodInfo, ctrId string, vm *hostapi.ContainerVolumeMount) (string, error) Mount(pod IPodInfo, ctrId string, vm *hostapi.ContainerVolumeMount) error Unmount(pod IPodInfo, ctrId string, vm *hostapi.ContainerVolumeMount) error }
func GetDriver ¶
func GetDriver(typ apis.ContainerVolumeMountType) IVolumeMount
Click to show internal directories.
Click to hide internal directories.