package image

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

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

Index

Functions

func CreateRuntimeBundle

func CreateRuntimeBundle(tarFile, dest, ref, root string) error

CreateRuntimeBundle walks through the given .tar file and creates an OCI runtime bundle in the given destination dest or returns an error if the unpacking failed.

func CreateRuntimeBundleLayout

func CreateRuntimeBundleLayout(src, dest, ref, root string) error

CreateRuntimeBundleLayout walks through the file tree given by src and creates an OCI runtime bundle in the given destination dest or returns an error if the unpacking failed.

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 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 string, refs []string, out *log.Logger) error

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

func ValidateLayout

func ValidateLayout(src string, refs []string, out *log.Logger) error

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

Source Files

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

Version
v0.5.0
Published
Sep 12, 2016
Platform
windows/amd64
Imports
19 packages
Last checked
11 minutes ago

Tools for package owners.