package
3.8.7+incompatible
Repository: https://github.com/hpcng/singularity.git
Documentation: pkg.go.dev
# Functions
CheckExt3Header checks if byte content contains a valid ext3 header and returns offset where ext3 partition begin.
CheckSquashfsHeader checks if byte content contains a valid squashfs header and returns offset where squashfs partition starts.
GetDriver returns the named image driver interface.
GetSquashfsComp checks if byte content contains a valid squashfs header and returns type of compression used.
Init initializes an image object based on given path.
IsReadOnlyFilesytem returns if the corresponding error is a read-only filesystem error or not.
NewPartitionReader searches and returns a reader for an image partition identified by name or by index, if index is less than 0 only partition with provided name will be returned if a matching entry is found.
NewSectionReader searches and returns a reader for an image section identified by name or by index, if index is less than 0 only section with provided name will be returned if a matching entry is found.
RegisterDriver registers an image driver by name.
ResolvePath returns a resolved absolute path.
# Constants
DataUsage defines flag for image/partition usable as data.
ENCRYPTSQUASHFS constant for encrypted squashfs format.
ErrNoPartition corresponds to an image partition not found.
ErrNoSection corresponds to an image section not found.
EXT3 constant for ext3 format.
FuseFeature means the driver use FUSE.
ImageFeature means the driver handle image mount setup.
OverlayFeature means the driver handle overlay mount.
OverlayUsage defines flag for image/partition usable as overlay.
RAW constant for raw format.
RootFs partition name.
RootFsUsage defines flag for image/partition usable as root filesystem.
SANDBOX constant for directory format.
SIF constant for sif format.
SIFDescInspectMetadataJSON is the name of the SIF descriptor holding the container metadata.
SIFDescOCIConfigJSON is the name of the SIF descriptor holding the OCI configuration.
SQUASHFS constant for squashfs format.
# Variables
ErrUnknownFormat represents an unknown image format error.
# Structs
DriverParams defines parameters passed to driver interface while starting it.
Image describes an image object, an image is composed of one or more partitions (eg: container root filesystem, overlay), image format like SIF contains descriptors pointing to chunk of data, chunks position and size are stored as image sections.
MountParams defines parameters passed to driver interface while mounting images.
Section identifies and locates a data section in image object.
# Interfaces
Driver defines the image driver interface to register.
# Type aliases
DriverFeature defines a feature type that a driver is supporting.
MountFunc defines mount function prototype.
No description provided by the author