package validate
import "github.com/google/go-containerregistry/pkg/v1/validate"
Package validate provides methods for validating image correctness.
Index ¶
- func Fast(o *options)
- func Image(img v1.Image, opt ...Option) error
- func Index(idx v1.ImageIndex, opt ...Option) error
- func Layer(layer v1.Layer, opt ...Option) error
- type Option
Functions ¶
func Fast ¶
func Fast(o *options)
Fast causes validate to skip reading and digesting layer bytes.
func Image ¶
Image validates that img does not violate any invariants of the image format.
func Index ¶
func Index(idx v1.ImageIndex, opt ...Option) error
Index validates that idx does not violate any invariants of the index format.
func Layer ¶
Layer validates that the values return by its methods are consistent with the contents returned by Compressed and Uncompressed.
Types ¶
type Option ¶
type Option func(*options)
Option is a functional option for validate.
Source Files ¶
doc.go image.go index.go layer.go options.go
- Version
- v0.20.3 (latest)
- Published
- Jan 15, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 16 hours ago –
Tools for package owners.