overlay

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 14 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 GenerateStructure added in v1.22.2

func GenerateStructure(containerDir, containerID, name string, rootUID, rootGID int) (string, error)

GenerateStructure generates an overlay directory structure for container 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