imagecmp

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterUnchanged

func FilterUnchanged(ctx context.Context, local, remote *dockerapi.Client, refs []string, skipUnchanged bool) (needTransfer []string, skipped []string, err error)

FilterUnchanged returns refs that differ between local and remote.

func SameImage

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

SameImage reports whether local and remote have the same image ID for ref.

Types

type Info

type Info struct {
	ID     string
	Layers []string
}

Info holds resolved image identity and layer chain.

func ResolveImageRef

func ResolveImageRef(ctx context.Context, c *dockerapi.Client, ref string) (Info, error)

ResolveImageRef inspects ref and returns image ID and RootFS layers.

Jump to

Keyboard shortcuts

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