Documentation ¶
Overview ¶
Package ociwclayer provides functions for importing and exporting Windows container layers from and to their OCI tar representation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportLayer ¶
ExportLayer writes an OCI layer tar stream from the provided on-disk layer. The caller must specify the parent layers, if any, ordered from lowest to highest layer.
The layer will be mounted for this process, so the caller should ensure that it is not currently mounted.
func ImportLayer ¶
ImportLayer reads a layer from an OCI layer tar stream and extracts it to the specified path. The caller must specify the parent layers, if any, ordered from lowest to highest layer.
The caller must ensure that the thread or process has acquired backup and restore privileges.
This function returns the total size of the layer's files, in bytes.
Types ¶
This section is empty.