package validate

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

Package validate provides methods for validating image correctness.

Index

Functions

func Fast

func Fast(o *options)

Fast causes validate to skip reading and digesting layer bytes.

func Image

func Image(img v1.Image, opt ...Option) error

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

func Layer(layer v1.Layer, opt ...Option) error

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.