uncompressed

package
v0.0.0-...-3d2dcd1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package uncompressed implemented an uncompressed layer based container store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

An Bundle is an OCI runtime bundle. Its root filesystem is a temporary extraction of its image's cached layers.

func (Bundle) Cleanup

func (b Bundle) Cleanup() error

Cleanup the OCI bundle.

func (Bundle) Path

func (b Bundle) Path() string

Path to the OCI bundle.

type Bundler

type Bundler struct {
	// contains filtered or unexported fields
}

A Bundler prepares OCI runtime bundles for use by an OCI runtime. It creates the bundle's rootfs by extracting the supplied image's uncompressed layer tarballs.

func NewBundler

func NewBundler(root string) *Bundler

NewBundler returns a an OCI runtime bundler that creates a bundle's rootfs by extracting uncompressed layer tarballs.

func (*Bundler) Bundle

func (c *Bundler) Bundle(ctx context.Context, i ociv1.Image, id string, o ...spec.Option) (store.Bundle, error)

Bundle returns an OCI bundle ready for use by an OCI runtime.

type RuntimeSpecWriter

type RuntimeSpecWriter interface {
	// Write and write an OCI runtime spec to the supplied path.
	Write(path string, o ...spec.Option) error
}

A RuntimeSpecWriter writes an OCI runtime spec to the supplied path.

type RuntimeSpecWriterFn

type RuntimeSpecWriterFn func(path string, o ...spec.Option) error

A RuntimeSpecWriterFn allows a function to satisfy RuntimeSpecCreator.

func (RuntimeSpecWriterFn) Write

func (fn RuntimeSpecWriterFn) Write(path string, o ...spec.Option) error

Write an OCI runtime spec to the supplied path.

type TarballApplicator

type TarballApplicator interface {
	// Apply the supplied tarball - an OCI filesystem layer - to the supplied
	// root directory. Applying all of an image's layers, in the correct order,
	// should produce the image's "flattened" filesystem.
	Apply(ctx context.Context, tb io.Reader, root string) error
}

A TarballApplicator applies (i.e. extracts) an OCI layer tarball. https://github.com/opencontainers/image-spec/blob/v1.0/layer.md

Jump to

Keyboard shortcuts

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