package image

import "github.com/opencontainers/image-spec/image"

Package image defines methods for validating, and unpacking OCI images.

Index

Functions

func Unpack

func Unpack(tarFile, dest, ref string) error

Unpack walks through the given .tar file and using the layers specified in the manifest pointed to by the given ref and unpacks all layers in the given destination directory or returns an error if the unpacking failed.

func UnpackLayout

func UnpackLayout(src, dest, ref string) error

UnpackLayout walks through the file tree given given by src and using the layers specified in the manifest pointed to by the given ref and unpacks all layers in the given destination directory or returns an error if the unpacking failed.

func Validate

func Validate(tarFile, ref string) error

Validate walks through the given .tar file and validates the manifest pointed to by the given ref or returns an error if the validation failed.

func ValidateLayout

func ValidateLayout(src, ref string) error

ValidateLayout walks through the file tree given by src and validates the manifest pointed to by the given ref or returns an error if the validation failed.

Source Files

descriptor.go doc.go image.go manifest.go walker.go

Version
v0.2.0
Published
May 31, 2016
Platform
js/wasm
Imports
15 packages
Last checked
52 minutes ago

Tools for package owners.