MCPcopy
hub / github.com/docker/docker-py / store

Method store

docker/credentials/store.py:46–55  ·  view source on GitHub ↗

Store credentials for `server`. Raises a `StoreError` if an error occurs.

(self, server, username, secret)

Source from the content-addressed store, hash-verified

44 return result
45
46 def store(self, server, username, secret):
47 """ Store credentials for `server`. Raises a `StoreError` if an error
48 occurs.
49 """
50 data_input = json.dumps({
51 'ServerURL': server,
52 'Username': username,
53 'Secret': secret
54 }).encode('utf-8')
55 return self._execute('store', data_input)
56
57 def erase(self, server):
58 """ Erase credentials for `server`. Raises a `StoreError` if an error

Callers

nothing calls this directly

Calls 1

_executeMethod · 0.95

Tested by

no test coverage detected