ociarchive

package
v0.0.0-...-60fc604 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package ociarchive works with tar archives whose contents comply with the OCI Image Layout Specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(r io.Reader) (image.Index, error)

Load loads an image index from a tar archive whose contents comply with the OCI Image Layout Specification.

The current implementation of Load buffers all of the archive's blobs in memory, and requires that all blobs referenced by manifests appear in the archive itself without requiring downloads from URLs.

func WriteImage

func WriteImage(img image.Image, w io.Writer) error

WriteImage writes a single container image as a tar archive whose contents comply with the OCI Image Layout Specification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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