validate

package
v0.0.0-...-fbd76f2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package validate provides methods for validating image correctness.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Jump to

Keyboard shortcuts

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