certbot/certbot-apache/certbot_apache
Joona Hoikkala 9620cc75d4 [Apache v2] Allow initialization of ParserNode instances using metadata dictionary instead of required arguments (#7366)
Add metadata keyword argument to the ParserNode interface, allowing the initialization of the object from contents of the metadata - if the implementation allows it. As an example, Augeas implementation needs nothing more than the Augeas DOM path of a configuration directive to be able to populate the ParserNode instance with all data relevant to the DirectiveNode.

The checks also allow skipping the otherwise required keyword arguments if metadata is provided.

* Allow creating ParserNode instances using information from metadata dictionary

* Update certbot-apache/certbot_apache/interfaces.py

Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>

* Update certbot-apache/certbot_apache/interfaces.py

Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>

* Address review comments

* Fix filepath comment

* Update certbot-apache/certbot_apache/interfaces.py

Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2019-09-09 12:09:09 -07:00
..
augeas_lens Update Augeas lens to fix some Apache configuration parsing issues (#6438) 2018-10-31 09:34:14 -07:00
tests [Apache v2] Allow initialization of ParserNode instances using metadata dictionary instead of required arguments (#7366) 2019-09-09 12:09:09 -07:00
__init__.py s/Let's Encrypt/Certbot certbot-apache 2016-04-13 16:36:53 -07:00
apache_util.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
centos-options-ssl-apache.conf Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
configurator.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
constants.py Disable TLS session tickets for Apache 2.4.11+ (#7191) 2019-07-29 22:54:51 +03:00
display_ops.py [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
entrypoint.py Implements specific overrides for Fedora 29+ in Apache plugin (#6988) 2019-05-01 03:21:10 +03:00
http_01.py [Windows] Security model for files permissions - STEP 3d (#6968) 2019-07-03 16:20:43 -07:00
interfaces.py [Apache v2] Allow initialization of ParserNode instances using metadata dictionary instead of required arguments (#7366) 2019-09-09 12:09:09 -07:00
obj.py Fix Pylint upgrade issues 2018-05-16 20:37:39 +00:00
options-ssl-apache.conf Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
override_arch.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
override_centos.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
override_darwin.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
override_debian.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
override_fedora.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
override_gentoo.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
override_suse.py Revert disabling TLS session tickets in Apache (#7315) 2019-08-08 16:23:37 -07:00
parser.py Refactor augeas_configurator.py functionality to configurator.py and parser.py accordingly. (#7181) 2019-06-28 08:39:13 -07:00
parsernode_util.py [Apache v2] Allow initialization of ParserNode instances using metadata dictionary instead of required arguments (#7366) 2019-09-09 12:09:09 -07:00