This repository has been archived by the owner on Apr 7, 2024. It is now read-only.
v0.2.0
New Features
- Introduce new public APIs and data types:
NewDefaultNativeStore()
detects the platform-default docker credentials helper and returns a native storeDynamicStore
is exported for config-file-based storesServerAddressFromRegistry
andServerAddressFromHostname
create the proper keys for credentials store, especially for handlingdocker.io
scenarios
- Introduce a new option
DetectDefaultNativeStore
inStoreOptions
- BREAKING CHANGE: The default value of
DetectDefaultNativeStore
isfalse
, which was equivalently set totrue
in previous versions. Details can be found in #73
- BREAKING CHANGE: The default value of
Other Changes
- Remove dependency on
github.com/docker/docker-credential-helpers
- Support context cancelling for native stores
- BREAKING CHANGE:
NewStore
andNewStoreFromDocker
returns*DynamicStore
instead ofStore
- Return more user-friendly error message when invoking
docker-credential-desktop.exe
in WSL2 while Docker Desktop is not running
Detailed Commits
- feat: add package client, the Program type and its related operations by @wangxiaoxuan273 in #68
- fix: added back handling no credentials error by @wangxiaoxuan273 in #74
- feat!: add
NewDefaultNativeStore
andDynamicStore.IsAuthConfigured
by @Wwwsylvia in #73 - refactor!: rename
DetectDefaultCredsStore
toDetectDefaultNativeStore
by @Wwwsylvia in #75 - feat: expose registry name mapping methods by @wangxiaoxuan273 in #76
- fix: use a better error message on WSL by @wangxiaoxuan273 in #77
Full Changelog: v0.1.1...v0.2.0