containerd/remotes/docker
Brian Goff e84a84a5a9 Add function to set custom auth scope in context
Currently auth.docker.io uses a custom auth scope for (docker) plugins
`repository(plugin):<repo>:<perms>`.
This makes it impossible to use containerd distribution tooling to fetch
plugins without also supplying a totally custom authorizer.

This changes allows clients to set the correct scope on the context.
It's a little bit nasty but "works".

I'm also a bit suspect of some a couple of these unexported context
functrions. Before the primary one used `contextWithRepositoryScope`
overwrites any scope value and there is another one that appends the
scope value.
With this change they both append...

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2019-09-18 11:29:16 -07:00
..
schema1 fix: polish log to make more clear 2019-06-20 20:46:26 +08:00
auth.go fix: linter issue 2019-01-23 22:54:51 +08:00
authorizer.go remotes: remove unnecessary string formatting 2019-08-05 02:16:57 +08:00
converter.go bugfix: support application/octet-stream during pull 2018-12-29 13:58:36 +08:00
fetcher_test.go Update resolver to handle endpoint configuration 2019-07-16 11:28:23 -07:00
fetcher.go Update resolver to handle endpoint configuration 2019-07-16 11:28:23 -07:00
handler_test.go remotes: add distribution labels to blob data 2019-03-12 13:42:54 +08:00
handler.go remotes: support cross-repo-push 2019-06-13 09:51:46 +08:00
httpreadseeker.go Fix typos 2018-09-07 16:59:42 +08:00
pusher.go Merge pull request #3515 from fuweid/me-remove-comment-line 2019-08-09 09:21:36 -04:00
registry_test.go Update resolver to handle endpoint configuration 2019-07-16 11:28:23 -07:00
registry.go Update resolver to handle endpoint configuration 2019-07-16 11:28:23 -07:00
resolver_test.go Update resolver to handle endpoint configuration 2019-07-16 11:28:23 -07:00
resolver.go Prevent push by tag for sub-manifests 2019-07-31 15:19:44 -07:00
scope_test.go Add function to set custom auth scope in context 2019-09-18 11:29:16 -07:00
scope.go Add function to set custom auth scope in context 2019-09-18 11:29:16 -07:00
status.go Licence header added 2018-02-19 10:32:26 +09:00