diff

package
v0.0.0-...-2440f66 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Changes

func Changes(ctx context.Context, appendMount func(path string), withPaths []string, withoutPaths []string, changeFn fs.ChangeFunc, upperdir, upperdirView, base string) error

Changes is continuty's `fs.Change`-like method but leverages overlayfs's "upperdir" for computing the diff. "upperdirView" is overlayfs mounted view of the upperdir that doesn't contain whiteouts. This is used for computing changes under opaque directories.

func Diff

func Diff(ctx context.Context, appendMount func(path string), withPaths []string, withoutPaths []string, writer io.Writer, lowerDirs, upperDir string) error

func GetOverlayLayers

func GetOverlayLayers(m mount.Mount) ([]string, error)

GetOverlayLayers returns all layer directories of an overlayfs mount.

func GetUpperdir

func GetUpperdir(lower, upper []mount.Mount) (string, error)

GetUpperdir parses the passed mounts and identifies the directory that contains diff between upper and lower.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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