Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
docker
/
models
/
__pycache__
/
Filename :
configs.cpython-310.pyc
back
Copy
o �2.a� � @ s@ d dl mZ ddlmZmZ G dd� de�ZG dd� de�ZdS ) � )� APIClient� )�Model� Collectionc @ s0 e Zd ZdZdZdd� Zedd� �Zdd� Zd S ) �Configz A config.�IDc C s d| j j� d| j� d�S )N�<z: 'z'>)� __class__�__name__�name��self� r �7/usr/lib/python3/dist-packages/docker/models/configs.py�__repr__ s zConfig.__repr__c C s | j d d S )N�Spec�Name)�attrsr r r r r s zConfig.namec C s | j j�| j�S )z� Remove this config. Raises: :py:class:`docker.errors.APIError` If config failed to remove. )�client�api� remove_config�idr r r r �remove s z Config.removeN) r � __module__�__qualname__�__doc__�id_attributer �propertyr r r r r r r s r c @ s6 e Zd ZdZeZdd� Zejje_dd� Z dd� Z dS ) �ConfigCollectionzConfigs on the Docker server.c K s | j jjdi |��}| �|�S )Nr )r r � create_config� prepare_model)r �kwargs�objr r r �create s zConfigCollection.createc C s | � | jj�|��S )ac Get a config. Args: config_id (str): Config ID. Returns: (:py:class:`Config`): The config. Raises: :py:class:`docker.errors.NotFound` If the config does not exist. :py:class:`docker.errors.APIError` If the server returns an error. )r r r �inspect_config)r � config_idr r r �get$ s zConfigCollection.getc s&