molecule

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OverlayMountOptions = "index=off,xino=on,userxattr"

Functions

func Umount

func Umount(dest string) error

Default Umount passes "" and uses /run/atomfs metadir, see RuntimeDir().

func UmountWithMetadir

func UmountWithMetadir(dest, metadirArg string) error

Types

type Molecule

type Molecule struct {
	// Atoms is the list of atoms in this Molecule. The first element in
	// this list is the top most layer in the overlayfs.
	Atoms []ispec.Descriptor
	// contains filtered or unexported fields
}

func BuildMoleculeFromOCI

func BuildMoleculeFromOCI(opts MountOCIOpts) (Molecule, error)

func (Molecule) MetadataPath

func (m Molecule) MetadataPath() (string, error)

func (Molecule) Mount

func (m Molecule) Mount(dest string) error

Mount mounts an overlay at dest, with writeable overlay as per m.config

func (Molecule) MountedAtomsPath

func (m Molecule) MountedAtomsPath(parts ...string) (string, error)

type MountOCIOpts

type MountOCIOpts struct {
	OCIDir                 string
	Tag                    string
	Target                 string
	AddWriteableOverlay    bool
	WriteableOverlayPath   string
	AllowMissingVerityData bool
	MetadataDir            string
}

func (MountOCIOpts) AtomsPath

func (c MountOCIOpts) AtomsPath(parts ...string) string

func (MountOCIOpts) WriteToFile

func (c MountOCIOpts) WriteToFile(filename string) error

Jump to

Keyboard shortcuts

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