Skip to content
New issue

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

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

Already on GitHub? # to your account

Refactor Trillian client with exported methods #1454

Merged
merged 1 commit into from
May 2, 2023

Conversation

haydentherapper
Copy link
Contributor

This allows the Trillian client to be used in other parts of the codebase besides the api package. The changes included exporting the Response fields and all but one of the struct methods. Also removed ranges since these weren't used outside the api package.

Summary

Release Note

Documentation

This allows the Trillian client to be used in other parts of the
codebase besides the api package. The changes included exporting the
Response fields and all but one of the struct methods. Also removed
ranges since these weren't used outside the api package.

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
@haydentherapper haydentherapper requested a review from a team as a code owner April 27, 2023 23:46
@haydentherapper
Copy link
Contributor Author

Context is starting work on creating a stable checkpoint, where a goroutine outside of the api package will periodically fetch the latest checkpoint.

@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Merging #1454 (af6f1f5) into main (fb19879) will decrease coverage by 0.05%.
The diff coverage is 69.03%.

@@            Coverage Diff             @@
##             main    #1454      +/-   ##
==========================================
- Coverage   64.35%   64.31%   -0.05%     
==========================================
  Files          82       82              
  Lines        7873     7864       -9     
==========================================
- Hits         5067     5058       -9     
  Misses       2159     2159              
  Partials      647      647              
Flag Coverage Δ
e2etests 47.64% <69.03%> (-0.04%) ⬇️
unittests 43.28% <0.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/api/tlog.go 39.02% <45.00%> (ø)
pkg/util/trillian_client.go 66.17% <70.47%> (ø)
pkg/api/entries.go 64.87% <78.57%> (ø)
pkg/api/api.go 64.28% <100.00%> (ø)
pkg/api/public_key.go 28.57% <100.00%> (-8.93%) ⬇️

@haydentherapper haydentherapper marked this pull request as draft April 28, 2023 00:09
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

Lgtm
Thanks

@haydentherapper
Copy link
Contributor Author

Moved to draft because I'm not certain I need this yet.

@haydentherapper haydentherapper marked this pull request as ready for review May 2, 2023 17:43
@haydentherapper
Copy link
Contributor Author

Ready for review!

@bobcallaway bobcallaway merged commit 46ac0b2 into sigstore:main May 2, 2023
@github-actions github-actions bot added this to the v1.1.0 milestone May 2, 2023
@haydentherapper haydentherapper deleted the tc-refactor branch May 2, 2023 19:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants