ocifs

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

FileSystem is an implementation of the sandbox.FileSystem interface that merges OCI layers into a single view.

func New

func New(layers ...sandbox.FileSystem) *FileSystem

New constructs a file system which combines layers into a flattened view which stacks layers on each other.

The returned file system is read-only, it does not allow modifications of the layers that it was constructed from. This includes writes to files as well as modifcations of the directory structure.

For the OCI layer specification, see: https://github.com/opencontainers/image-spec/blob/main/layer.md

func (*FileSystem) Open

func (fsys *FileSystem) Open(name string, flags sandbox.OpenFlags, mode fs.FileMode) (sandbox.File, error)

Open satisfies the sandbox.FileSystem interface.

Jump to

Keyboard shortcuts

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