octodns.manager
¶
- class octodns.manager.MainThreadExecutor[source]¶
Bases:
object
Dummy executor that runs things on the main thread during the invocation of submit, but still returns a future object with the result. This allows code to be written to handle async, even in the case where we don’t want to use multiple threads/workers and would prefer that things flow as if traditionally written.
- class octodns.manager.Manager(config_file, max_workers=None, include_meta=False, auto_arpa=False, enable_checksum=False)[source]¶
Bases:
object
- log = <Logger Manager (WARNING)>¶
- plan_log = <Logger Plan (WARNING)>¶
- __init__(config_file, max_workers=None, include_meta=False, auto_arpa=False, enable_checksum=False)[source]¶
- configured_sub_zones(zone_name)[source]¶
Accepts either UTF-8 or IDNA encoded zone name and returns the list of any configured sub-zones in IDNA form. E.g. for the following configured zones:
some.com. other.some.com. deep.thing.some.com.
- It would return
other deep.thing
- _preprocess_zones(zones, eligible_sources=None, sources=None)[source]¶
This may modify the passed in zone object, it should be ignored after the call and the zones returned from this function should be used instead.
- sync(eligible_zones=[], eligible_sources=[], eligible_targets=[], dry_run=True, force=False, plan_output_fh=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, checksum=None)[source]¶
- compare(a, b, zone)[source]¶
Compare zone data between 2 sources.
Note: only things supported by both sources will be considered