containers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 3

Documentation

Index

Constants

View Source
const MagicImageScratch = "scratch"

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, ref string) (v1.Image, error)

func NewLayer

func NewLayer(ctx context.Context, fs fullfs.FullFS, username string, platform *v1.Platform) (v1.Layer, error)

func NormaliseImage

func NormaliseImage(ctx context.Context, base v1.Image) (v1.Image, error)

NormaliseImage mutates the provided v1.Image to be OCI compliant v1.Image.

Check image-spec to see which properties are ported and which are dropped. https://github.com/opencontainers/image-spec/blob/main/config.md

func Push

func Push(ctx context.Context, img v1.Image, dst string) error

func Save

func Save(ctx context.Context, img v1.Image, dst, path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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