image

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 4 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image interface {
	Layer
	Manifest(ctx context.Context) (*ocispec.Manifest, error)
	Config(ctx context.Context) (Layer, error)
	Layers(ctx context.Context) ([]Layer, error)
}

func Copy

func Copy(ctx context.Context, dst Sink, src Source, ref string) (Image, error)

type Layer

type Layer interface {
	Descriptor() ocispec.Descriptor
	Content(ctx context.Context) (io.ReadCloser, error)
}

func AsWriteLayers

func AsWriteLayers(ctx context.Context, img Image) ([]Layer, error)

AsWriteLayers spreads the given Image to all layers. The first layer will be the config, then the 'regular' layers and finally the image manifest.

type Sink

type Sink interface {
	Push(ctx context.Context, ref string, img Image) error
}

type Source

type Source interface {
	Resolve(ctx context.Context, ref string) (Image, error)
}

Jump to

Keyboard shortcuts

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