MCPcopy
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
327def encode_header(auth):
328 auth_json = json.dumps(auth).encode('ascii')
329 return base64.urlsafe_b64encode(auth_json)
330
331
332def parse_auth(entries, raise_on_error=False):

Callers 1

get_config_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected