package
4.3.0-rc.1
Repository: https://github.com/sylabs/singularity.git
Documentation: pkg.go.dev

# Functions

BundleUser returns a user struct for the specified user, from the bundle passwd file.
CreateLoop associates a file to loop device and returns path of loop device used and a closer to close the loop device.
CreateOverlay creates a writable overlay using a directory inside the OCI bundle.
CreateOverlay creates a writable overlay using tmpfs, mounting it over the bundle rootfs.
DeleteBundle deletes bundle directory.
DeleteOverlay deletes an overlay previously created using a directory inside the OCI bundle.
DeleteOverlayTmpfs unmounts and deletes a tmpfs backed overlay created with CreateOverlayTmpfs.
GenerateBundleConfig generates a minimal OCI bundle directory with the provided OCI configuration or a default one if there is no configuration.
PrepareOverlayTmpfs creates a tmpfs, mounted to the overlay/ directory in the bundle, but does not perform an overlay mount using it.
SaveBundleConfig creates config.json in OCI bundle directory and saves OCI configuration.

# Constants

RunScript is the default process argument.

# Type aliases

Config provides functions for accessing the runtime configuration (JSON) of a bundle.
Layers provides functions for accessing the layers directory of a bundle, which will hold any image layer directories that are created.
RootFs provides functions for accessing the rootfs directory of a bundle.
Volumes provides functions for accessing the volumes directory of a bundle, which will hold any volume directories that are created.