Closed matthewrobertson closed 1 year ago
@matthewrobertson should we pull this one in?
@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?
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 theFast
option enabled, so it verifies the existence of layers via HTTP HEAD requests. For layout and local images,Validate
is just an alias forFound
.We will use this function in the lifecycle to address https://github.com/buildpacks/lifecycle/issues/1044