class PluginCollection(Collection): (source)
Undocumented
Method | create |
Create a new plugin. |
Method | get |
Gets a plugin. |
Method | install |
Pull and install a plugin. |
Method | list |
List plugins installed on the server. |
Inherited from Collection
:
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | prepare |
Create a model from a set of attributes. |
Class Variable | model |
Undocumented |
Instance Variable | client |
Undocumented |
docker.models.resource.Collection.create
Create a new plugin. Args: name (string): The name of the plugin. The ``:latest`` tag is optional, and is the default if omitted. plugin_data_dir (string): Path to the plugin data directory. Plugin data directory must contain the ``config.json`` manifest file and the ``rootfs`` directory. gzip (bool): Compress the context using gzip. Default: False Returns: (:py:class:`Plugin`): The newly created plugin.
docker.models.resource.Collection.get
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.APIError` If the server returns an error.
Pull and install a plugin. Args: remote_name (string): Remote reference for the plugin to install. The ``:latest`` tag is optional, and is the default if omitted. local_name (string): Local name for the pulled plugin. The ``:latest`` tag is optional, and is the default if omitted. Optional. Returns: (:py:class:`Plugin`): The installed plugin Raises: :py:class:`docker.errors.APIError` If the server returns an error.
docker.models.resource.Collection.list
List plugins installed on the server. Returns: (list of :py:class:`Plugin`): The plugins. Raises: :py:class:`docker.errors.APIError` If the server returns an error.