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

Method get

docker/models/plugins.py:152–168  ·  view source on GitHub ↗

Gets a plugin. Args: name (str): The name of the plugin. Returns: (:py:class:`Plugin`): The plugin. Raises: :py:class:`docker.errors.NotFound` If the plugin does not exist. :py:class:`docker.errors.APIErr

(self, name)

Source from the content-addressed store, hash-verified

150 return self.get(name)
151
152 def get(self, name):
153 """
154 Gets a plugin.
155
156 Args:
157 name (str): The name of the plugin.
158
159 Returns:
160 (:py:class:`Plugin`): The plugin.
161
162 Raises:
163 :py:class:`docker.errors.NotFound` If the plugin does not
164 exist.
165 :py:class:`docker.errors.APIError`
166 If the server returns an error.
167 """
168 return self.prepare_model(self.client.api.inspect_plugin(name))
169
170 def install(self, remote_name, local_name=None):
171 """

Callers 5

createMethod · 0.95
installMethod · 0.95
nameMethod · 0.45
enabledMethod · 0.45
settingsMethod · 0.45

Calls 2

prepare_modelMethod · 0.80
inspect_pluginMethod · 0.80

Tested by

no test coverage detected