veneer

package module
v0.0.0-...-7da9988 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

veneer

A library for representing OCI image layers in an abstract filesystem, without requiring the presence of a container runtime.

Future

Currently veneer takes a naive approach of achieving compatibility with afero by copying files from layer tarballs to whatever filesystem backend is passed. In the future the tarball itself could be used as the filesystem backend to avoid the overhead of copying all files.

Dependencies

veneer heavily relies on and is influenced by afero and go-containerregistry.

License

veneer is under the Apache 2.0 license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageFs

func ImageFs(img v1.Image, fs afero.Fs) error

ImageFs builds the full filesystem for the image.

func LayerFs

func LayerFs(layer v1.Layer, fs afero.Fs) error

LayerFs builds the filesystem for an image layer.

func Walk

func Walk(layers []v1.Layer, f FileOperator) error

Walk walks the filesystem of image layers.

Types

type FileOperator

type FileOperator func(*tar.Header, io.Reader) error

A FileOperator performs operations on a file in a tarball.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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