package cim
import "github.com/Microsoft/hcsshim/pkg/ociwclayer/cim"
Index ¶
- func ImportCimLayerFromTar(ctx context.Context, r io.Reader, layerPath, cimPath string, parentLayerPaths, parentLayerCimPaths []string) (_ int64, err error)
- func ImportSingleFileCimLayerFromTar(ctx context.Context, r io.Reader, layer *cimfs.BlockCIM, parentLayers []*cimfs.BlockCIM) (_ int64, err error)
Functions ¶
func ImportCimLayerFromTar ¶
func ImportCimLayerFromTar(ctx context.Context, r io.Reader, layerPath, cimPath string, parentLayerPaths, parentLayerCimPaths []string) (_ int64, err error)
ImportCimLayerFromTar reads a layer from an OCI layer tar stream and extracts it into the CIM format at the specified path. `layerPath` is the directory which can be used to store intermediate files generated during layer extraction (and these file are also used when extracting children layers of this layer) `cimPath` is the path to the CIM in which layer files must be stored. Note that region & object files are created when writing to a CIM, these files will be created next to the `cimPath`. `parentLayerCimPaths` are paths to the parent layer CIMs, ordered from highest to lowest, i.e the CIM at `parentLayerCimPaths[0]` will be the immediate parent of the layer that is being extracted here. `parentLayerPaths` are paths to the parent layer directories. Ordered from highest to lowest.
This function returns the total size of the layer's files, in bytes.
func ImportSingleFileCimLayerFromTar ¶
func ImportSingleFileCimLayerFromTar(ctx context.Context, r io.Reader, layer *cimfs.BlockCIM, parentLayers []*cimfs.BlockCIM) (_ int64, err error)
ImportSingleFileCimLayerFromTar reads a layer from an OCI layer tar stream and extracts it into the SingleFileCIM format.
Source Files ¶
- Version
- v0.13.0-rc.3
- Published
- Jan 10, 2025
- Platform
- windows/amd64
- Imports
- 17 packages
- Last checked
- 28 minutes ago –
Tools for package owners.