package validate

import "github.com/google/go-containerregistry/pkg/v1/validate"

Package validate provides methods for validating image correctness.

Index

Functions

func Image

func Image(img v1.Image) error

Image validates that img does not violate any invariants of the image format.

func Index

func Index(idx v1.ImageIndex) error

Index validates that idx does not violate any invariants of the index format.

func Layer

func Layer(layer v1.Layer) error

Layer validates that the values return by its methods are consistent with the contents returned by Compressed and Uncompressed.

Source Files

doc.go image.go index.go layer.go

Version
v0.2.0
Published
Dec 1, 2020
Platform
js/wasm
Imports
14 packages
Last checked
2 hours ago

Tools for package owners.