Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/docker/docker-py
/ add_auth
Method
add_auth
docker/auth.py:305–306 ·
view source on GitHub ↗
(self, reg, data)
Source
from the content-addressed store, hash-verified
303
return
auth_data
304
305
def
add_auth(self, reg, data):
306
self[
'auths'
][reg] = data
307
308
309
def
resolve_authconfig(authconfig, registry=None, credstore_env=None):
Callers
5
test_get_all_credentials_with_auths_entries
Method · 0.80
test_get_all_credentials_with_empty_auths_entry
Method · 0.80
test_get_all_credentials_credstore_overrides_auth_entry
Method · 0.80
test_get_all_credentials_3_sources
Method · 0.80
login
Method · 0.80
Calls
no outgoing calls
Tested by
4
test_get_all_credentials_with_auths_entries
Method · 0.64
test_get_all_credentials_with_empty_auths_entry
Method · 0.64
test_get_all_credentials_credstore_overrides_auth_entry
Method · 0.64
test_get_all_credentials_3_sources
Method · 0.64