package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/docker/docker-ce.git
Documentation: pkg.go.dev
# Functions
CreateChainID returns ID for a layerDigest slice.
IsEmpty returns true if the layer is an EmptyLayer.
LogReleaseMetadata logs a metadata array, uses this to ensure consistent logging for release metadata.
NewFSMetadataStore returns an instance of a metadata store which is backed by files on disk using the provided root as the root of metadata files.
NewStoreFromGraphDriver creates a new Store instance using the provided metadata store and graph driver.
NewStoreFromOptions creates a new Store instance.
ReleaseAndLog releases the provided layer from the given layer store, logging any error and release metadata.
# Constants
DigestSHA256EmptyTar is the canonical sha256 digest of empty tar file - (1024 NULL bytes).
# Variables
EmptyLayer is a layer that corresponds to empty tar.
ErrActiveMount is used when an operation on a mount is attempted but the layer is still mounted and the operation cannot be performed.
ErrLayerDoesNotExist is used when an operation is attempted on a layer which does not exist.
ErrLayerNotRetained is used when a release is attempted on a layer which is not retained.
ErrMaxDepthExceeded is used when a layer is attempted to be created which would result in a layer depth greater than the 125 max.
ErrMountDoesNotExist is used when an operation is attempted on a mount layer which does not exist.
ErrMountNameConflict is used when a mount is attempted to be created but there is already a mount with the name used for creation.
ErrNotMounted is used when requesting an active mount but the layer is not mounted.
ErrNotSupported is used when the action is not supported on the current host operating system.
# Structs
CreateRWLayerOpts contains optional arguments to be passed to CreateRWLayer.
Metadata holds information about a read-only layer.
StoreOptions are the options used to create a new Store instance.
# Interfaces
DescribableStore represents a layer store capable of storing descriptors for layers.
Layer represents a read-only layer.
MetadataStore represents a backend for persisting metadata about layers and providing the metadata for restoring a Store.
MetadataTransaction represents functions for setting layer metadata with a single transaction.
RWLayer represents a layer which is read and writable.
Store represents a backend for managing both read-only and read-write layers.
TarStreamer represents an object which may have its contents exported as a tar stream.