ociwclayer

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 11 Imported by: 3

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 ExportLayerToTar

func ExportLayerToTar(ctx context.Context, w io.Writer, path string, parentLayerPaths []string) error

ExportLayerToTar 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 ImportLayerFromTar

func ImportLayerFromTar(ctx context.Context, r io.Reader, path string, parentLayerPaths []string) (int64, error)

ImportLayerFromTar 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL