HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/__pycache__/ecr.cpython-310.pyc
o

.&�a��@s`ddlmZddlmZddlmZddlZdd�Zdd�ZGd	d
�d
e�Z	Gdd�de�Z
dS)
�)�BasicCommand)�!create_client_from_parsed_globals)�	b64decodeNcCs|�dt�dS)Nzbuilding-command-table.ecr)�register�_inject_commands)�cli�r�;/usr/lib/python3/dist-packages/awscli/customizations/ecr.py�register_ecr_commandssr
cKst|�|d<t|�|d<dS)N�	get-login�get-login-password)�ECRLogin�ECRGetLoginPassword)�
command_table�session�kwargsrrr	rsrc
@sZeZdZdZdZe�d�Zddddd�d	d
d	dddd
d�ddddd	ddd�gZdd�Z	dS)r
zLog in with 'docker login'rzecr/get-login_description.rstzregistry-idszbA list of AWS account IDs that correspond to the Amazon ECR registries that you want to log in to.F�+)�name�	help_text�required�nargsz
include-email�
store_true�
include_emailTaESpecify if the '-e' flag should be included in the 'docker login' command.  The '-e' option has been deprecated and is removed in Docker version 17.06 and later.  You must specify --no-include-email if you're using Docker version 17.06 or later.  The default behavior is to include the '-e' flag in the 'docker login' output.)r�action�
group_name�dest�defaultrrzno-include-emailzInclude email arg�store_false)rrrrrrrc
Cs�t|jd|�}|js|��}n|j|jd�}|dD]9}t|d���}|�d�\}}ddd|d	|g}	|jr=|	�d
dg�|	�	|d�t
j�d
�
|	��t
j�d�qdS)N�ecr)�registryIds�authorizationData�authorizationToken�:�docker�loginz-uz-pz-e�none�
proxyEndpoint� �
r)r�_session�registry_ids�get_authorization_tokenr�decode�splitr�extend�append�sys�stdout�write�join)
�self�parsed_args�parsed_globals�
ecr_client�result�auth�
auth_token�username�password�commandrrr	�	_run_mainEs$�
�zECRLogin._run_mainN)
�__name__�
__module__�__qualname__�__doc__�NAMEr�	FROM_FILE�DESCRIPTION�	ARG_TABLEr>rrrr	r
s6
����"r
c@s&eZdZdZdZe�d�Zdd�ZdS)rz?Get a password to be used with container clients such as Dockerrz&ecr/get-login-password_description.rstc	Cs\t|jd|�}|��}|dd}t|d���}|�d�\}}tj�|�tj�d�dS)Nrr rr!r"r()	rr)r+rr,r-r0r1r2)	r4r5r6r7r8r9r:�_r<rrr	r>`s�zECRGetLoginPassword._run_mainN)	r?r@rArBrCrrDrEr>rrrr	rYs�r)�awscli.customizations.commandsr�awscli.customizations.utilsr�base64rr0r
rr
rrrrr	�<module>s<