validate

package
v0.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 14 Imported by: 12

Documentation

Overview

Package validate provides methods for validating image correctness.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fast added in v0.5.1

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 added in v0.5.1

type Option func(*options)

Option is a functional option for validate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL