buildpacks / imgutil

Helpful utilities for working with images
Apache License 2.0
24 stars 41 forks source link

add Validate function #190

Closed matthewrobertson closed 1 year ago

matthewrobertson commented 1 year ago

This adds a new Validate function that can be used to validate image contents in a registry. For remote images, Validate invokes go-containerregistry's validate function with the Fast option enabled, so it verifies the existence of layers via HTTP HEAD requests. For layout and local images, Validate is just an alias for Found.

We will use this function in the lifecycle to address https://github.com/buildpacks/lifecycle/issues/1044

natalieparellano commented 1 year ago

@matthewrobertson should we pull this one in?

matthewrobertson commented 1 year ago

@natalieparellano yes I think it is good to do. I will also need to make a small change in lifecycle to start using this new function. But I am not sure how this project gets consumed by lifecycle... Once this is merged, can I just use it?