...

Package compare

import "github.com/google/go-containerregistry/internal/compare"
Overview
Index

Overview ▾

Package compare provides methods for comparing images, indexes, and layers.

func Images

func Images(a, b v1.Image) error

Images compares the given images to each other and returns an error if they differ.

func Indexes

func Indexes(a, b v1.ImageIndex) error

Indexes compares the given indexes to each other and returns an error if they differ.

func Layers

func Layers(a, b v1.Layer) error

Layers compares the given layers to each other and returns an error if they differ. Note that this does not compare the actual contents (by calling Compressed or Uncompressed).