File: //usr/local/CyberCP/lib/python3.10/site-packages/docker/models/__pycache__/plugins.cpython-310.pyc
o
�hS � @ s@ d dl mZ ddlmZmZ G dd� de�ZG dd� de�ZdS ) � )�errors� )�
Collection�Modelc @ st e Zd ZdZdd� Zedd� �Zedd� �Zedd � �Zd
d� Z dd
d�Z
ddd�Zdd� Zddd�Z
ddd�ZdS )�Pluginz!
A plugin on the server.
c C s d| j j� d| j� d�S )N�<z: 'z'>)� __class__�__name__�name��self� r
�H/usr/local/CyberCP/lib/python3.10/site-packages/docker/models/plugins.py�__repr__ s zPlugin.__repr__c C � | j �d�S )z$
The plugin's name.
�Name��attrs�getr r
r
r r
� zPlugin.namec C r )z0
Whether the plugin is enabled.
�Enabledr r r
r
r �enabled r zPlugin.enabledc C r )zG
A dictionary representing the plugin's configuration.
�Settingsr r r
r
r �settings r zPlugin.settingsc C � | j j�| j|� | �� dS )a
Update the plugin's settings.
Args:
options (dict): A key-value mapping of options.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
N)�client�api�configure_pluginr
�reload)r �optionsr
r
r � configure! � zPlugin.configureFc C r )z�
Disable the plugin.
Args:
force (bool): Force disable. Default: False
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
N)r r �disable_pluginr
r �r �forcer
r
r �disable/ s zPlugin.disable� c C r )z�
Enable the plugin.
Args:
timeout (int): Timeout in seconds. Default: 0
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
N)r r �
enable_pluginr
r )r �timeoutr
r
r �enable>