package compare
import "github.com/google/go-containerregistry/pkg/v1/compare"
Package compare provides methods for comparing images, indexes, and layers.
Index ¶
- func Images(a, b v1.Image) error
- func Indexes(a, b v1.ImageIndex) error
- func Layers(a, b v1.Layer) error
Functions ¶
func Images ¶
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 ¶
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).
Source Files ¶
doc.go image.go index.go layer.go
- Version
- v0.20.3 (latest)
- Published
- Jan 15, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 16 hours ago –
Tools for package owners.