containerd/remotes/docker
Akihiro Suda 97623ab0cd
remotes/docker: allow fetching "refresh token" (aka "identity token")
The new AuthorizerOpt `WithFetchRefreshToken` allows fetching "refresh token"
(aka "identity token", "offline token").

For HTTP GET mode (`FetchToken`), `offline_token=true` is set in the request.
https://docs.docker.com/registry/spec/auth/token/#requesting-a-token

For HTTP POST mode (`FetchTokenWithOAuth`), `access_type=offline` is set in the request.
https://docs.docker.com/registry/spec/auth/oauth/#getting-a-token

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-12-27 15:19:45 +09:00
..
auth remotes/docker: allow fetching "refresh token" (aka "identity token") 2021-12-27 15:19:45 +09:00
config remotes/docker/config: allow setting custom AuthorizerOpts 2021-12-24 18:17:40 +09:00
schema1 schema1: reject ambiguous documents 2021-11-15 12:00:42 -08:00
authorizer.go remotes/docker: allow fetching "refresh token" (aka "identity token") 2021-12-27 15:19:45 +09:00
converter.go bugfix: support application/octet-stream during pull 2018-12-29 13:58:36 +08:00
errcode.go docs: Various typo found by codespell 2020-12-22 13:22:16 +08:00
errdesc.go Add distribution subpkgs to core 2019-10-07 13:38:12 -04:00
fetcher_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
fetcher.go feat: Errorf usage 2021-12-13 14:31:53 +08:00
handler_test.go Add unit test for func in remotes/docker/handler.go 2020-05-28 16:54:33 +08:00
handler.go remotes: support cross-repo-push 2019-06-13 09:51:46 +08:00
httpreadseeker.go feat: Errorf usage 2021-12-13 14:31:53 +08:00
pusher_test.go Add unit test for func in remotes/docker/pusher.go 2021-01-19 16:24:27 +08:00
pusher.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
registry_test.go Use net.IP.IsLoopback() to match loopback addresses 2021-03-15 09:57:01 +05:30
registry.go Merge pull request #5160 from MadhavJivrajani/master 2021-03-17 09:37:17 -04:00
resolver_test.go remotes/docker: allow fetching "refresh token" (aka "identity token") 2021-12-27 15:19:45 +09:00
resolver.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
scope_test.go Export repository scope helper functions 2020-10-06 10:49:01 +09:00
scope.go Export repository scope helper functions 2020-10-06 10:49:01 +09:00
status.go Fix PushHandler cannot push image that contains duplicated blobs 2021-04-20 14:00:53 +09:00