Package layer is package for managing read-only and read-write mounts on the union file system driver. Read-only mounts are referenced using a content hash and are protected from mutation in the exposed interface. The tar format is used to create read-only layers and export both read-only and writable layers. The exported tar data for a read-only layer should match the tar used to create the layer.
This section is empty.
View Sourcevar ( ErrLayerDoesNotExist = errors.New("layer does not exist") ErrLayerNotRetained = errors.New("layer not retained") ErrMountDoesNotExist = errors.New("mount does not exist") ErrMountNameConflict = errors.New("mount already exists with name") ErrMaxDepthExceeded = errors.New("max depth exceeded") )
EmptyLayer is a layer that corresponds to empty tar.
IsEmpty returns true if the layer is an EmptyLayer
func ReleaseAndLog ΒΆReleaseAndLog releases the provided layer from the given layer store, logging any error and release metadata
type ChainID = digest.Digest
ChainID is the content-addressable ID of a layer.
CreateChainID returns ID for a layerDigest slice.
Deprecated: use identity.ChainID.
CreateRWLayerOpts contains optional arguments to be passed to CreateRWLayer
DescribableStore represents a layer store capable of storing descriptors for layers.
type DiffID = digest.Digest
DiffID is the hash of an individual layer tar.
const DigestSHA256EmptyTar DiffID = "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
DigestSHA256EmptyTar is the canonical sha256 digest of empty tar file - (1024 NULL bytes)
Layer represents a read-only layer
Metadata holds information about a read-only layer
MountInit is a function to initialize a writable mount. Changes made here will not be included in the Tar stream of the RWLayer.
RWLayer represents a layer which is read and writable
type Store interface { Register(io.Reader, ChainID) (Layer, error) Get(ChainID) (Layer, error) Map() map[ChainID]Layer Release(Layer) ([]Metadata, error) CreateRWLayer(id string, parent ChainID, opts *CreateRWLayerOpts) (RWLayer, error) GetRWLayer(id string) (RWLayer, error) GetMountID(id string) (string, error) ReleaseRWLayer(RWLayer) ([]Metadata, error) Cleanup() error DriverStatus() [][2]string DriverName() string }
Store represents a backend for managing both read-only and read-write layers.
NewStoreFromOptions creates a new Store instance
StoreOptions are the options used to create a new Store instance
TarStreamer represents an object which may have its contents exported as a tar stream.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4