certbot_apache.display_ops

Contains UI methods for Apache operations.

certbot_apache.display_ops.select_vhost_multiple(vhosts)[source]

Select multiple Vhosts to install the certificate for

Parameters:vhosts (list of type Vhost) – Available Apache VirtualHosts
Returns:List of VirtualHosts
Return type:list`of type `~obj.Vhost
certbot_apache.display_ops._reversemap_vhosts(names, vhosts)[source]

Helper function for select_vhost_multiple for mapping string representations back to actual vhost objects

certbot_apache.display_ops.select_vhost(domain, vhosts)[source]

Select an appropriate Apache Vhost.

Parameters:vhosts (list of type Vhost) – Available Apache VirtualHosts
Returns:VirtualHost or None
Return type:Vhost or None
certbot_apache.display_ops._vhost_menu(domain, vhosts)[source]

Select an appropriate Apache Vhost.

Parameters:vhosts (list of type Vhost) – Available Apache Virtual Hosts
Returns:Display tuple - (‘code’, tag’)
Return type:tuple