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 tighter-scoped function types in /client #292

Conversation

AlCutter
Copy link
Collaborator

@AlCutter AlCutter commented Nov 6, 2024

This PR adapts the client package to use tighter scoped functions for fetching different types of log artifact, as opposed to the more generic "fetchURL" approach it previously took.

These tighter function signatures match the ones in #281, allowing personality authors to directly use storage instances when e.g. building off-line proof bundles etc.

#278

Copy link
Contributor

@mhutchinson mhutchinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial thoughts.

client/client.go Outdated Show resolved Hide resolved
client/client.go Outdated Show resolved Hide resolved
@AlCutter AlCutter force-pushed the client_more_specific_fetch_interfaces_playground branch from f67d27d to 6aefffa Compare November 6, 2024 17:19
Copy link
Contributor

@mhutchinson mhutchinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of re-wiring, but I think it's worth it. It'll be nice to not need to copy and paste that http/https/file handler another time.

client/client.go Outdated Show resolved Hide resolved
client/client.go Outdated Show resolved Hide resolved
client/client.go Outdated Show resolved Hide resolved
internal/hammer/hammer.go Outdated Show resolved Hide resolved
integration/storage_uniformity_test.go Show resolved Hide resolved
@AlCutter AlCutter marked this pull request as ready for review November 7, 2024 10:34
@AlCutter AlCutter force-pushed the client_more_specific_fetch_interfaces_playground branch from d91000d to 24e30e6 Compare November 7, 2024 11:00
@AlCutter AlCutter force-pushed the client_more_specific_fetch_interfaces_playground branch from 97b8537 to ff459f1 Compare November 7, 2024 11:25
@AlCutter AlCutter merged commit fb28144 into transparency-dev:main Nov 7, 2024
14 checks passed
@AlCutter AlCutter deleted the client_more_specific_fetch_interfaces_playground branch November 7, 2024 12:18
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.

2 participants