Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/docker-py
/ encode_header
Function
encode_header
docker/auth.py:327–329 ·
view source on GitHub ↗
(auth)
Source
from the content-addressed store, hash-verified
325
326
327
def
encode_header(auth):
328
auth_json = json.dumps(auth).encode(
'ascii'
)
329
return
base64.urlsafe_b64encode(auth_json)
330
331
332
def
parse_auth(entries, raise_on_error=False):
Callers
1
get_config_header
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected