mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
docs(registry): shorten the NewDesktopAuthProvider comment
Signed-off-by: Alano Terblanche <[email protected]>
This commit is contained in:
committed by
Nicolas De loof
parent
233a89f405
commit
dee031bb1d
@@ -78,12 +78,8 @@ func newDesktopSession(name, serverAddress string, opts ...dockerhub.Option) *de
|
||||
}
|
||||
}
|
||||
|
||||
// NewDesktopAuthProvider returns an AuthProvider that resolves Docker Hub and
|
||||
// Docker Hub staging credentials from the Docker Desktop session, and falls
|
||||
// back to fallback for other registries or when there is no usable session.
|
||||
//
|
||||
// The OAuth access token is returned as the account's password, as containerd
|
||||
// treats an IdentityToken as a refresh token.
|
||||
// NewDesktopAuthProvider returns an AuthProvider that uses the Docker Desktop
|
||||
// session for Docker Hub, and fallback otherwise.
|
||||
func NewDesktopAuthProvider(fallback AuthProvider) AuthProvider {
|
||||
return &desktopAuthProvider{
|
||||
fallback: fallback,
|
||||
|
||||
Reference in New Issue
Block a user