package
1.57.1
Repository: https://github.com/containers/storage.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ChownPathByMaps walks the filesystem tree, changing the ownership information using the toContainer and toHost mappings, using them to replace on-disk owner UIDs and GIDs which are "host" values in the first map with UIDs and GIDs for "host" values from the second map which correspond to the same "container" IDs.
GetDriver initializes and returns the registered driver.
GetFSMagic returns the filesystem id given the path.
Mounted checks if the given path is mounted as the fs type.
MustRegister registers an InitFunc for the driver, or panics.
CreateFromTemplate creates a layer with the same contents and parent as another layer.
New creates the driver and initializes it at the specified root.
NewDefaultChecker returns a check that parses /proc/mountinfo to check if the specified path is mounted.
NewFsChecker returns a checker configured for the provided FsMagic.
NewNaiveDiffDriver returns a fully functional driver that wraps the given ProtoDriver and adds the capability of the following methods which it may or may not support on its own: Diff(id string, idMappings *idtools.IDMappings, parent string, parentMappings *idtools.IDMappings, mountLabel string) (io.ReadCloser, error) Changes(id string, idMappings *idtools.IDMappings, parent string, parentMappings *idtools.IDMappings, mountLabel string) ([]archive.Change, error) ApplyDiff(id, parent string, options ApplyDiffOpts) (size int64, err error) DiffSize(id string, idMappings *idtools.IDMappings, parent, parentMappings *idtools.IDMappings, mountLabel string) (size int64, err error).
NewNaiveLayerIDMapUpdater wraps the ProtoDriver in a LayerIDMapUpdater that uses ChownPathByMaps to update the ownerships in a layer's filesystem tree.
NewRefCounter returns a new RefCounter.
Register registers an InitFunc for the driver.
scanPriorDrivers returns an un-ordered scan of directories of prior storage drivers.

# Constants

DifferFsVerityDisabled means no fs-verity is used.
DifferFsVerityIfAvailable means fs-verity is used when supported by the underlying kernel and filesystem.
DifferFsVerityRequired means fs-verity is required.
DifferOutputFormatDir means the output is a directory and it will keep the original layout.
DifferOutputFormatFlat will store the files by their checksum, per pkg/chunked/internal/composefs.RegularFilePathForValidatedDigest.
FsMagicAcfs filesystem id for Acfs.
FsMagicAfs filesystem id for Afs.
FsMagicAufs filesystem id for Aufs.
FsMagicBtrfs filesystem id for Btrfs.
FsMagicCephFs filesystem id for Ceph.
FsMagicCIFS filesystem id for CIFS.
FsMagicCramfs filesystem id for Cramfs.
FsMagicEcryptfs filesystem id for eCryptfs.
FsMagicEROFS filesystem id for EROFS.
FsMagicExtfs filesystem id for Extfs.
FsMagicF2fs filesystem id for F2fs.
FsMagicFHGFS filesystem id for FHGFS.
FsMagicFUSE filesystem id for FUSE.
FsMagicGPFS filesystem id for GPFS.
FsMagicIBRIX filesystem id for IBRIX.
FsMagicJffs2Fs filesystem if for Jffs2Fs.
FsMagicJfs filesystem id for Jfs.
FsMagicKAFS filesystem id for KAFS.
FsMagicLUSTRE filesystem id for LUSTRE.
FsMagicNCP filesystem id for NCP.
FsMagicNFSD filesystem id for NFSD.
FsMagicNfsFs filesystem id for NfsFs.
FsMagicOCFS2 filesystem id for OCFS2.
FsMagicOverlay filesystem id for overlay.
FsMagicPANFS filesystem id for PANFS.
FsMagicPRLFS filesystem id for PRLFS.
FsMagicRAMFs filesystem id for RamFs.
FsMagicReiserFs filesystem id for ReiserFs.
FsMagicSMB2 filesystem id for SMB2.
FsMagicSmbFs filesystem id for SmbFs.
FsMagicSNFS filesystem id for SNFS.
FsMagicSquashFs filesystem id for SquashFs.
FsMagicTmpFs filesystem id for TmpFs.
FsMagicUnsupported is a predefined constant value other than a valid filesystem id.
FsMagicVBOXSF filesystem id for VBOXSF.
FsMagicVxFS filesystem id for VxFs.
FsMagicVXFS filesystem id for VXFS.
FsMagicXfs filesystem id for Xfs.
FsMagicZfs filesystem id for Zfs.

# Variables

ApplyUncompressedLayer defines the unpack method used by the graph driver.
ErrIncompatibleFS returned when file system is not supported.
ErrLayerUnknown returned when the specified layer is unknown by the driver.
ErrNotSupported returned when driver is not supported.
ErrPrerequisites returned when driver does not meet prerequisites.
FsNames maps filesystem id to name of the filesystem.
Slice of drivers that should be used in an order.

# Structs

ApplyDiffOpts contains optional arguments for ApplyDiff methods.
ApplyDiffWithDifferOpts contains optional arguments for ApplyDiffWithDiffer methods.
Capabilities defines a list of capabilities a driver may implement.
CreateOpts contains optional arguments for Create() and CreateReadWrite() methods.
DedupArgs contains the information to perform storage deduplication.
DedupResult contains the result of the Dedup() call.
DifferOptions is a part of the experimental Differ interface and should not be used from outside of c/storage.
DriverWithDifferOutput is the result of ApplyDiffWithDiffer This API is experimental and can be changed without bumping the major version number.
MountOpts contains optional arguments for Driver.Get() methods.
NaiveDiffDriver takes a ProtoDriver and adds the capability of the Diffing methods which it may or may not support on its own.
Options is used to initialize a graphdriver.
RefCounter is a generic counter for use by graphdriver Get/Put calls.

# Interfaces

AdditionalLayer represents a layer that is stored in the additional layer store This API is experimental and can be changed without bumping the major version number.
AdditionalLayerStoreDriver is the interface for driver that supports additional layer store functionality.
CapabilityDriver is the interface for layered file system drivers that can report on their Capabilities.
Checker makes checks on specified filesystems.
DiffDriver is the interface to use to implement graph diffs.
Differ defines the interface for using a custom differ.
DiffGetterDriver is the interface for layered file system drivers that provide a specialized function for getting file contents for tar-split.
Driver is the interface for layered/snapshot file system drivers.
DriverWithDiffer is the interface for direct diff access.
FileGetCloser extends the storage.FileGetter interface with a Close method for cleaning up.
LayerIDMapUpdater is the interface that implements ID map changes for layers.
ProtoDriver defines the basic capabilities of a driver.
TemplateDriver is just barely enough of a driver that we can implement a naive version of CreateFromTemplate on top of it.

# Type aliases

DifferFsVerity is a part of the experimental Differ interface and should not be used from outside of c/storage.
No description provided by the author
FsMagic unsigned id of the filesystem in use.
InitFunc initializes the storage driver.