HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/__pycache__/ecr.cpython-38.pyc
U

<�^��@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)Zcli�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)Z
command_tableZsession�kwargsrrrrsrc
@sZeZdZdZdZe�d�Zddddd�d	d
d	dddd
d�ddddd	ddd�gZdd�Z	dS)rzLog in with 'docker login'r
zecr/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 argZstore_false)rrrrrrrc
Cs�t|jd|�}|js|��}n|j|jd�}|dD]r}t|d���}|�d�\}}ddd|d	|g}	|jrz|	�d
dg�|	�	|d�t
j�d
�
|	��t
j�d�q4dS)N�ecr)ZregistryIds�authorizationData�authorizationToken�:ZdockerZloginz-uz-pz-eZnoneZ
proxyEndpoint� �
r)r�_sessionZregistry_ids�get_authorization_tokenr�decode�splitr�extend�append�sys�stdout�write�join)
�self�parsed_args�parsed_globals�
ecr_client�result�auth�
auth_tokenZusername�passwordZcommandrrr�	_run_mainEs(�
�zECRLogin._run_mainN)
�__name__�
__module__�__qualname__�__doc__�NAMEr�	FROM_FILE�DESCRIPTIONZ	ARG_TABLEr2rrrrrs4
����"rc@s&eZdZdZdZe�d�Zdd�ZdS)r
z?Get a password to be used with container clients such as Dockerrz&ecr/get-login-password_description.rstc	Cs\t|jd|�}|��}|dd}t|d���}|�d�\}}tj�|�tj�d�dS)Nrrrrrr)	rr r!rr"r#r&r'r()	r*r+r,r-r.r/r0�_r1rrrr2`s�zECRGetLoginPassword._run_mainN)	r3r4r5r6r7rr8r9r2rrrrr
Ys�r
)Zawscli.customizations.commandsrZawscli.customizations.utilsr�base64rr&r	rrr
rrrr�<module>
s<