overlay

package
v0.12.9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(ctx context.Context, basePaths []string, upperdirPath, workdirPath, target string, readonly bool) (err error)

Mount creates an overlay mount with `basePaths` at `target`.

If `upperdirPath != ""` the path will be created. On mount failure the created `upperdirPath` will be automatically cleaned up.

If `workdirPath != ""` the path will be created. On mount failure the created `workdirPath` will be automatically cleaned up.

Always creates `target`. On mount failure the created `target` will be automatically cleaned up.

func MountLayer added in v0.10.0

func MountLayer(
	ctx context.Context,
	layerPaths []string,
	upperdirPath, workdirPath, rootfsPath string,
	readonly bool,
) (err error)

MountLayer first enforces the security policy for the container's layer paths and then calls Mount to mount the layer paths as an overlayfs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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