Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Validate function #190

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

matthewrobertson
Copy link
Contributor

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 buildpacks/lifecycle#1044

Signed-off-by: Matthew Robertson <mattrobertson@google.com>
@natalieparellano
Copy link
Member

@matthewrobertson should we pull this one in?

@matthewrobertson
Copy link
Contributor Author

matthewrobertson commented Apr 4, 2023

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants