tarball

package
v0.0.0-...-fbd76f2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

README

legacy/tarball

GoDoc

This package implements support for writing legacy tarballs, as described here.

Documentation

Overview

Package tarball provides facilities for writing v1 docker images (https://github.com/moby/moby/blob/master/image/spec/v1.md) from/to a tarball on-disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultiWrite

func MultiWrite(refToImage map[name.Reference]v1.Image, w io.Writer) error

MultiWrite writes the contents of each image to the provided reader, in the V1 image tarball format. The contents are written in the following format: One manifest.json file at the top level containing information about several images. One repositories file mapping from the image <registry>/<repo name> to <tag> to the id of the top most layer. For every layer, a directory named with the layer ID is created with the following contents:

layer.tar - The uncompressed layer tarball.
<layer id>.json- Layer metadata json.
VERSION- Schema version string. Always set to "1.0".

One file for the config blob, named after its SHA.

func Write

func Write(ref name.Reference, img v1.Image, w io.Writer) error

Write is a wrapper to write a single image in V1 format and tag to a tarball.

Types

This section is empty.

Jump to

Keyboard shortcuts

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