Skip to content

Update Keychain interface to accept repo #510

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

Merged
merged 4 commits into from
Sep 10, 2019

Conversation

jonjohnsonjr
Copy link
Collaborator

Fixes #495

Introduces authn.Target which both name.Repository and name.Registry implement, so this should be backwards compat.

@codecov-io
Copy link

codecov-io commented Sep 5, 2019

Codecov Report

Merging #510 into master will increase coverage by 0.27%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #510      +/-   ##
==========================================
+ Coverage   72.88%   73.15%   +0.27%     
==========================================
  Files          91       92       +1     
  Lines        3835     3904      +69     
==========================================
+ Hits         2795     2856      +61     
  Misses        689      689              
- Partials      351      359       +8
Impacted Files Coverage Δ
pkg/authn/helper.go 90.47% <ø> (ø) ⬆️
pkg/v1/google/keychain.go 100% <100%> (ø) ⬆️
pkg/v1/remote/write.go 63.67% <100%> (+0.32%) ⬆️
pkg/authn/multikeychain.go 80% <100%> (ø) ⬆️
pkg/v1/remote/layer.go 67.74% <100%> (ø) ⬆️
pkg/v1/remote/list.go 65.21% <100%> (ø) ⬆️
pkg/authn/k8schain/k8schain.go 63.79% <100%> (+4.96%) ⬆️
pkg/v1/remote/descriptor.go 80.74% <100%> (ø) ⬆️
pkg/v1/remote/delete.go 64.28% <100%> (ø) ⬆️
pkg/authn/keychain.go 82.5% <100%> (ø) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0cc78f...8a60c53. Read the comment docs.

)

type Target interface {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Target isn't a great name, document this and members?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Better idea than Target? Principal? Authority?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

authn.Target seems fine when qualified. I'm open to better suggestions.

@jonjohnsonjr jonjohnsonjr merged commit b02d448 into google:master Sep 10, 2019
@jonjohnsonjr jonjohnsonjr deleted the k8schain-target branch September 10, 2019 14:22
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.

k8schain: Support repo-level authentication
3 participants