Documentation
¶
Overview ¶
Package filemap provides a way to create reproducible layers from a file system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶ added in v1.9.0
func Build(filemap []File) io.ReadCloser
Build a tarball from a filemap.
func Layer ¶
Layer creates a layer from a single file map.
These layers are reproducible and consistent.
A filemap is a path -> file content map representing a file system.
The compressed layer is staged as a file under tempDir, which must outlive the returned layer: go-containerregistry re-opens the layer contents for every digest and write access. Removing tempDir reclaims the temporary file.
Types ¶
Click to show internal directories.
Click to hide internal directories.