layersync

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportPartial

func ExportPartial(ctx context.Context, local *dockerapi.Client, ref string, missing []string) (io.ReadCloser, error)

ExportPartial builds a docker-load tar containing only missing layer entries plus manifest/config.

func Import

func Import(ctx context.Context, remote *dockerapi.Client, r io.Reader) error

Import loads image tar stream on remote daemon.

func IndexLayerDigests

func IndexLayerDigests(ctx context.Context, c *dockerapi.Client) (map[string]struct{}, error)

IndexLayerDigests returns set of layer diff IDs present on the daemon.

func MissingLayers

func MissingLayers(ctx context.Context, local, remote *dockerapi.Client, ref string) (missing []string, localInfo imagecmp.Info, err error)

MissingLayers returns ordered layer IDs from local image not in remote index.

func SyncImage

func SyncImage(ctx context.Context, local, remote *dockerapi.Client, ref string, layerSync bool) error

SyncImage transfers ref to remote using partial layers when possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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