o
    ni                     @   sD   d dl mZ d dlmZ d dlmZ ddlmZ G dd deZdS )	    )Tuple)is_docker_installed)docker_image_exists   )AbstractRegistryc                   @   sj   e Zd ZdeddfddZdeeef fddZdefdd	Zd
edefddZ	e
deddfddZdS )AnonynmousRegistryurireturnNc                 C   s
   || _ dS )zInitialize the registry.Nr   )selfr    r   \/home/ubuntu/SoloSpeech/.venv/lib/python3.10/site-packages/wandb/sdk/launch/registry/anon.py__init__
   s   
zAnonynmousRegistry.__init__c                    s
   t d)z/Get the username and password for the registry.z2Anonymous registry does not require authentication)NotImplementedErrorr   r   r   r   get_username_password   s   z(AnonynmousRegistry.get_username_passwordc                    s   | j S )Nr
   r   r   r   r   get_repo_uri   s   zAnonynmousRegistry.get_repo_uri	image_uric                    s   t  sdS t|S )z)Check if an image exists in the registry.F)r   r   )r   r   r   r   r   check_image_exists   s   z%AnonynmousRegistry.check_image_existsconfigr   c                 C   s   | |d dS )Nr   r
   r   )clsr   r   r   r   from_config   s   zAnonynmousRegistry.from_config)__name__
__module____qualname__strr   r   r   r   boolr   classmethoddictr   r   r   r   r   r   	   s    r   N)	typingr   wandb.dockerr   wandb.sdk.launch.utilsr   abstractr   r   r   r   r   r   <module>   s
    