Documentation ¶
Index ¶
- func CleanupContent(containerDir string) (Err error)
- func CleanupMount(contentDir string) (Err error)
- func Mount(contentDir, source, dest string, rootUID, rootGID int, graphOptions []string) (mount specs.Mount, Err error)
- func MountReadOnly(contentDir, source, dest string, rootUID, rootGID int, graphOptions []string) (mount specs.Mount, Err error)
- func RemoveTemp(contentDir string) error
- func TempDir(containerDir string, rootUID, rootGID int) (string, error)
- func Unmount(contentDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupContent ¶ added in v1.8.4
CleanupContent removes all temporary mountpoint and all content from directory
func CleanupMount ¶ added in v1.13.0
CleanupMount removes all temporary mountpoint content
func Mount ¶ added in v1.13.0
func Mount(contentDir, source, dest string, rootUID, rootGID int, graphOptions []string) (mount specs.Mount, Err error)
Mount creates a subdir of the contentDir based on the source directory from the source system. It then mounts up the source directory on to the generated mount point and returns the mount point to the caller.
func MountReadOnly ¶ added in v1.17.0
func MountReadOnly(contentDir, source, dest string, rootUID, rootGID int, graphOptions []string) (mount specs.Mount, Err error)
MountReadOnly creates a subdir of the contentDir based on the source directory from the source system. It then mounts up the source directory on to the generated mount point and returns the mount point to the caller. Note that no upper layer will be created rendering it a read-only mount
func RemoveTemp ¶
RemoveTemp removes temporary mountpoint and all content from its parent directory
Types ¶
This section is empty.