nydus

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrependEmptyLayer added in v0.2.21

func PrependEmptyLayer(ctx context.Context, cs content.Store, manifestDesc ocispec.Descriptor) (ocispec.Descriptor, error)

PrependEmptyLayer modifies the original image manifest and config to prepend an empty layer This is done on purpose to force new shas for all the subsequent layers when unpacked by runtimes So that no layer reuse can be possible between stock OCI images and nydus-converted OCI images It returns the updated manifest descriptor

Types

type CacheRef added in v0.2.7

type CacheRef struct{}

type Driver

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

func New

func New(cfg map[string]string, platformMC platforms.MatchComparer) (*Driver, error)

func (*Driver) Convert

func (d *Driver) Convert(ctx context.Context, provider accelcontent.Provider, sourceRef string) (*ocispec.Descriptor, error)

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) Version

func (d *Driver) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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