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

# Functions

No description provided by the author
DefaultStoreOptions returns the default storage ops for containers.
No description provided by the author
ParseIDMapping takes idmappings and subuid and subgid maps and returns a storage mapping.
ReloadConfigurationFile parses the specified configuration file and overrides the configuration in storeOptions.
No description provided by the author
Save overwrites the tomlConfig in storage.conf with the given conf.
SetDefaultConfigFilePath sets the default configuration to the specified path.
StorageConfig is used to retrieve the storage.conf toml in order to overwrite it.
UpdateOptions should be called iff container engine received a SIGHUP, otherwise use DefaultStoreOptions.

# Constants

No description provided by the author

# Variables

ErrContainerDataIncorrectSize describes a container which has a big data item which looks like its size has changed, likely because it's been modified somehow.
ErrContainerDataMissing describes a container which is missing a big data item.
ErrContainerImageMissing describes a container which claims to be based on an image that we don't know about.
ErrContainerUnknown indicates that there was no container with the specified name or ID.
ErrDigestUnknown indicates that we were unable to compute the digest of a specified item.
ErrDuplicateID indicates that an ID which is to be assigned to a new item is already being used.
ErrDuplicateImageNames indicates that the read-only store uses the same name for multiple images.
ErrDuplicateLayerNames indicates that the read-only store uses the same name for multiple layers.
ErrDuplicateName indicates that a name which is to be assigned to a new item is already being used.
ErrImageDataIncorrectSize describes an image which has a big data item which looks like its size has changed, likely because it's been modified somehow.
ErrImageDataMissing describes an image which is missing a big data item.
ErrImageLayerMissing describes an image which claims to have a layer that we don't know about.
ErrImageUnknown indicates that there was no image with the specified name or ID.
ErrImageUsedByContainer is returned when the caller attempts to delete an image that is a container's image.
ErrIncompleteOptions is returned when the caller attempts to initialize a Store without providing required information.
ErrInvalidBigDataName indicates that the name for a big data item is not acceptable; it may be empty.
ErrInvalidMappings is returned when the specified mappings are invalid.
ErrLayerContentModified describes a layer which contains contents which should not be there, or for which ownership/permissions/dates have been changed.
ErrLayerDataMissing describes a layer which is missing a big data item.
ErrLayerHasChildren is returned when the caller attempts to delete a layer that has children.
ErrLayerIncorrectContentDigest describes a layer for which the contents of one or more files which were added in the layer appear to have changed.
ErrLayerIncorrectContentSize describes a layer for which regenerating the diff that was used to populate the layer produced a diff of a different size.
ErrLayerMissing describes a layer which is the missing parent of a layer.
ErrLayerNotMounted is returned when the requested information can only be computed for a mounted layer, and the layer is not mounted.
ErrLayerUnaccounted describes a layer that is present in the lower-level storage driver, but which is not known to or managed by the higher-level driver-agnostic logic.
ErrLayerUnknown indicates that there was no layer with the specified name or ID.
ErrLayerUnreferenced describes a layer which is not used by any image or container.
ErrLayerUsedByContainer is returned when the caller attempts to delete a layer that is a container's layer.
ErrLayerUsedByImage is returned when the caller attempts to delete a layer that is an image's top layer.
ErrLoadError indicates that there was an initialization error.
ErrNoAvailableIDs is returned when there are not enough unused IDS within the user namespace.
ErrNotAContainer is returned when the caller attempts to delete a container that isn't a container.
ErrNotALayer is returned when the caller attempts to delete a layer that isn't a layer.
ErrNotAnID is returned when the caller attempts to read or write metadata from an item that doesn't exist.
ErrNotAnImage is returned when the caller attempts to delete an image that isn't an image.
ErrNotSupported is returned when the requested functionality is not supported.
ErrParentIsContainer is returned when a caller attempts to create a layer as a child of a container's layer.
ErrParentUnknown indicates that we didn't record the ID of the parent of the specified layer.
ErrSizeUnknown is returned when the caller asks for the size of a big data item, but the Store couldn't determine the answer.
ErrStoreIsReadOnly is returned when the caller makes a call to a read-only store that would require modifying its contents.

# Structs

AutoUserNsOptions defines how to automatically create a user namespace.
IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container.
StoreOptions is used for passing initialization options to GetStore(), for initializing a Store object and the underlying storage that it controls.
TOML-friendly explicit tables used for conversions.