grafeas / voucher

🎟 Voucher creates attestations for Binary Authorization
Apache License 2.0
73 stars 24 forks source link

v2/client: DRY + file split #42

Closed thepwagner closed 2 years ago

thepwagner commented 2 years ago

This standardizes the method for exchanging a voucher.Request for a voucher.Response, avoiding duplication between the Check() and Verify() functions.

There is one breaking change: SignImage() is a helper to create a client and request a response. Since it doesn't support authentication, I think it's of little value. Semver would suggest SignImage() should be deprecated until v3: I'm making a wild hunch that nobody is using it and opting to YOLO.