[Feature] support notation login#218
Conversation
e3bc8b8 to
9699d69
Compare
d0f53d4 to
2f02aa0
Compare
d5bc151 to
ccdb1dd
Compare
|
@shizhMSFT @binbin-li maybe we could split long PR like this one into multiple smaller PRs in the future to enhance the readability? (there are 20 files been added/updated in this PR) Please suggest if you think otherwise. |
You're right. I didn't expect this PR would be so large at the beginning. I would split long PRs next time. |
pkg/dockerconfig/config.go
Outdated
| @@ -0,0 +1,115 @@ | |||
| package dockerconfig | |||
There was a problem hiding this comment.
We can merge the dockerconfig package into a single file docker.go in the config package.
c97998f to
3caa631
Compare
go.mod
Outdated
| github.com/opencontainers/go-digest v1.0.0 | ||
| github.com/urfave/cli/v2 v2.10.3 | ||
| oras.land/oras-go/v2 v2.0.0-20220620164807-8b2a54608a94 | ||
| oras.land/oras-go/v2 v2.0.0-alpha |
There was a problem hiding this comment.
We need to upgrade oras-go to rc.1 in the next PR.
There was a problem hiding this comment.
Sure, I'll bump it up in a seperate PR
When referring to PR #119 , do you mean #223 ? @SteveLasker |
#119 is an issue. It must be a typo and refers to #223. @binbin-li Could you update this PR to reflect #223? |
95e8c75 to
7085fc0
Compare
Working on it. |
066cfa4 to
7a2547c
Compare
|
Updated as #223 defined.
|
SteveLasker
left a comment
There was a problem hiding this comment.
thanks @binbin-li
LGTM
8af7cc5 to
41f9bca
Compare
Signed-off-by: Binbin Li <libinbin@microsoft.com>
Signed-off-by: Binbin Li <libinbin@microsoft.com>
Signed-off-by: Binbin Li <libinbin@microsoft.com>
Signed-off-by: Binbin Li <libinbin@microsoft.com>
Signed-off-by: Binbin Li <libinbin@microsoft.com>
41f9bca to
e705d73
Compare
* feat: support notation login * refactor: Refactor for readablity * chore: refactor registry.go * feat: update CMDs to be consistent with specs * chore: refactor load config logic Signed-off-by: Binbin Li <libinbin@microsoft.com>
What?
Add support for logging in/out. Related Issue: #119
Work need to be done:
Directorypkg to manipulate the config file once it's ready to be useTest?
test plan:
3.1 user types username/password explicitly. [expect: user-typed credential is used]
3.2 user doesn't type username/password. [expect: saved credential is used]
4.1 both credHelpers and credsStore are configured. [expect: only credHeplers is honored]
4.2 only credsStore is configured. [expect: credsStore is honored]
5.1 both credHelpers and credsStore are configured. [expect: only credHeplers is honored]
5.2 only credsStore is configured. [expect: credsStore is honored]
Signed-off-by: Binbin Li libinbin@microsoft.com