ociwclayer

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: MIT Imports: 10 Imported by: 0

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

func ExportLayer(w io.Writer, path string, parentLayerPaths []string) error

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

func ImportLayer(r io.Reader, path string, parentLayerPaths []string) (int64, error)

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.

Jump to

Keyboard shortcuts

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