-
Notifications
You must be signed in to change notification settings - Fork 29
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
Lift configfile #757
Lift configfile #757
Conversation
There's no point in storing it, as it's never reused.
Rather than assuming that users of CredentialStore will know to call Init after instantiation, the CredentialStore's dependency on a Docker *ConfigFile is made explicit by requiring it to be passed to the constructor. Now we need never worry that a user will forget to call Init, and it removes the awkward pattern of New-then-Init.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ewollesen The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm Looks like a good refactor |
// CredentialStore for registry credentials such as ~/.docker/config.json. | ||
type CredentialStore struct { | ||
directory string | ||
// DockerCredentialStore for Docker registry credentials, like ~/.docker/config.json. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all fine, but I don't like docker in the name. I was trying to hide that. We don't have to be stuck with docker forever.
We may want to revisit this PR as bundle pulling failed due to 401 unauthorized access. |
This reverts commit de9c0be.
Two smallish changes:
and: