overlay

package
v1.21.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupContent added in v1.8.4

func CleanupContent(containerDir string) (Err error)

CleanupContent removes all temporary mountpoint and all content from directory

func CleanupMount added in v1.13.0

func CleanupMount(contentDir string) (Err error)

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

func RemoveTemp(contentDir string) error

RemoveTemp removes temporary mountpoint and all content from its parent directory

func TempDir added in v1.13.0

func TempDir(containerDir string, rootUID, rootGID int) (string, error)

TempDir generates an overlay Temp directory in the container content

func Unmount added in v1.13.0

func Unmount(contentDir string) error

Unmount the overlay mountpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL