image

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package image opens a container image and yields its final filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Platforms

func Platforms(ref string) ([]string, error)

Platforms lists the platforms a registry reference offers (empty for a single-platform image), skipping attestation manifests.

Types

type Opened

type Opened struct {
	// FS is the final filesystem as a tar stream, whiteouts applied.
	FS io.ReadCloser
	// Digest is the image manifest digest.
	Digest string
	// Platform is the platform that was opened, when known.
	Platform string
	// Env is the image configuration's environment.
	Env []string
}

Opened is an image's flattened filesystem and what identifies it.

func Open

func Open(ref, platform string) (*Opened, error)

Open resolves ref and returns the image's flattened filesystem.

docker-archive:PATH   a tarball from `docker save`
anything else         a registry reference, e.g. php:8.3-fpm or ghcr.io/o/r@sha256:...

Jump to

Keyboard shortcuts

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