Skip to content

Hook

lacme.challenges.providers.hook

Hook-based DNS provider for DNS-01 challenges.

Delegates record creation and deletion to external scripts invoked via :func:asyncio.create_subprocess_exec.

HookDNSProvider

DNS provider that calls external scripts for record management.

Satisfies :class:~lacme.challenges.dns01.DNSProvider.

Commands receive the domain and TXT record value as positional arguments. If a command is provided as a string it is split using :func:shlex.split.

create_txt_record async
create_txt_record(domain: str, value: str) -> None

Run the create hook with domain and value as arguments.

delete_txt_record async
delete_txt_record(domain: str, value: str) -> None

Run the delete hook with domain and value as arguments.