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
Click to show internal directories.
Click to hide internal directories.