MCPcopy Index your code
hub / github.com/docker/docker-py / get_tls_dir

Function get_tls_dir

docker/context/config.py:68–72  ·  view source on GitHub ↗
(name=None, endpoint="")

Source from the content-addressed store, hash-verified

66
67
68def get_tls_dir(name=None, endpoint=""):
69 context_dir = get_context_dir()
70 if name:
71 return os.path.join(context_dir, "tls", get_context_id(name), endpoint)
72 return os.path.join(context_dir, "tls")
73
74
75def get_context_host(path=None, tls=False):

Callers 2

_load_certsMethod · 0.85
saveMethod · 0.85

Calls 3

get_context_dirFunction · 0.85
get_context_idFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected