overlay

package
v0.0.0-...-674084c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Overlay

type Overlay struct {
	// contains filtered or unexported fields
}

Overlay is a read-only filesystem formed with a list of layers representing diffs. It is designed to behave like a filesystem such as those used in containers. The layers are given uppermost first (at index 0).

https://www.kernel.org/doc/Documentation/filesystems/overlayfs.txt

is the inspiration for OCI image layers:

> An overlay filesystem combines two filesystems - an 'upper' filesystem > and a 'lower' filesystem. When a name exists in both filesystems, the > object in the 'upper' filesystem is visible while the object in the > 'lower' filesystem is either hidden or, in the case of directories, > merged with the 'upper' object.

func New

func New(layers ...http.FileSystem) *Overlay

New constructs an overlay filesystem given the layers

func (*Overlay) Open

func (o *Overlay) Open(p string) (http.File, error)

Open implements http.FileSystem#Open for the overlay filesystem

Jump to

Keyboard shortcuts

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