📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
voigtlaborg
/
wp-content
/
Name
Size
Perm
Actions
📁
themes
-
0755
🗑️
🏷️
🔒
📄
api.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
goods.php
173.77 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: api.cpython-312.pyc
� �2.a! � �p � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z G d� d � Zy) � N)�errors)�get_meta_dir)�METAFILE)�get_current_context_name)�#write_context_name_to_docker_config)�Contextc � � e Zd ZdZ edd� Ze dd�� Zed d�� Zed� � Z ed� � Z edd �� Zed � � Zedd�� Z y)� ContextAPIzfContext API. Contains methods for context management: create, list, remove, get, inspect. �default�swarmNc �: � |st j d� �|dk( rt j d� �t j |� }|rt j |� �d}|r|dk7 r|}t ||� }|j |||||�� |j � |S )aR Creates a new context. Returns: (Context): a Context object. Raises: :py:class:`docker.errors.MissingContextParameter` If a context name is not provided. :py:class:`docker.errors.ContextAlreadyExists` If a context with the name already exists. :py:class:`docker.errors.ContextException` If name is default. Example: >>> from docker.context import ContextAPI >>> ctx = ContextAPI.create_context(name='test') >>> print(ctx.Metadata) { "Name": "test", "Metadata": {}, "Endpoints": { "docker": { "Host": "unix:///var/run/docker.sock", "SkipTLSVerify": false } } } �namer z$"default" is a reserved context name�dockerr )�skip_tls_verify� def_namespace)r �MissingContextParameter�ContextExceptionr �load_context�ContextAlreadyExists�set_endpoint�save) �clsr �orchestrator�host�tls_cfg�default_namespacer �ctx�endpoints �4/usr/lib/python3/dist-packages/docker/context/api.py�create_contextzContextAPI.create_context s� � �>