summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/knot_resolver_manager/cli/__init__.py5
-rw-r--r--python/knot_resolver_manager/cli/__main__.py4
-rw-r--r--python/knot_resolver_manager/client/__init__.py5
-rw-r--r--python/knot_resolver_manager/client/__main__.py4
-rw-r--r--python/knot_resolver_manager/client/command.py (renamed from python/knot_resolver_manager/cli/command.py)6
-rw-r--r--python/knot_resolver_manager/client/commands/cache.py (renamed from python/knot_resolver_manager/cli/cmd/cache.py)4
-rw-r--r--python/knot_resolver_manager/client/commands/completion.py (renamed from python/knot_resolver_manager/cli/cmd/completion.py)2
-rw-r--r--python/knot_resolver_manager/client/commands/config.py (renamed from python/knot_resolver_manager/cli/cmd/config.py)2
-rw-r--r--python/knot_resolver_manager/client/commands/convert.py (renamed from python/knot_resolver_manager/cli/cmd/convert.py)6
-rw-r--r--python/knot_resolver_manager/client/commands/help.py (renamed from python/knot_resolver_manager/cli/cmd/help.py)2
-rw-r--r--python/knot_resolver_manager/client/commands/metrics.py (renamed from python/knot_resolver_manager/cli/cmd/metrics.py)2
-rw-r--r--python/knot_resolver_manager/client/commands/reload.py (renamed from python/knot_resolver_manager/cli/cmd/reload.py)2
-rw-r--r--python/knot_resolver_manager/client/commands/schema.py (renamed from python/knot_resolver_manager/cli/cmd/schema.py)4
-rw-r--r--python/knot_resolver_manager/client/commands/stop.py (renamed from python/knot_resolver_manager/cli/cmd/stop.py)2
-rw-r--r--python/knot_resolver_manager/client/commands/validate.py (renamed from python/knot_resolver_manager/cli/cmd/validate.py)6
-rw-r--r--python/knot_resolver_manager/client/kresctl.py (renamed from python/knot_resolver_manager/cli/kresctl.py)2
-rw-r--r--python/knot_resolver_manager/client/main.py (renamed from python/knot_resolver_manager/cli/main.py)8
-rw-r--r--python/knot_resolver_manager/controller/__init__.py (renamed from python/knot_resolver_manager/kresd_controller/__init__.py)6
-rw-r--r--python/knot_resolver_manager/controller/interface.py (renamed from python/knot_resolver_manager/kresd_controller/interface.py)8
-rw-r--r--python/knot_resolver_manager/controller/registered_workers.py (renamed from python/knot_resolver_manager/kresd_controller/registered_workers.py)4
-rw-r--r--python/knot_resolver_manager/controller/supervisord/__init__.py (renamed from python/knot_resolver_manager/kresd_controller/supervisord/__init__.py)10
-rw-r--r--python/knot_resolver_manager/controller/supervisord/config_file.py (renamed from python/knot_resolver_manager/kresd_controller/supervisord/config_file.py)8
-rw-r--r--python/knot_resolver_manager/controller/supervisord/plugin/fast_rpcinterface.py (renamed from python/knot_resolver_manager/kresd_controller/supervisord/plugin/fast_rpcinterface.py)0
-rw-r--r--python/knot_resolver_manager/controller/supervisord/plugin/manager_integration.py (renamed from python/knot_resolver_manager/kresd_controller/supervisord/plugin/manager_integration.py)0
-rw-r--r--python/knot_resolver_manager/controller/supervisord/plugin/notifymodule.c (renamed from python/knot_resolver_manager/kresd_controller/supervisord/plugin/notifymodule.c)0
-rw-r--r--python/knot_resolver_manager/controller/supervisord/plugin/patch_logger.py (renamed from python/knot_resolver_manager/kresd_controller/supervisord/plugin/patch_logger.py)0
-rw-r--r--python/knot_resolver_manager/controller/supervisord/plugin/sd_notify.py (renamed from python/knot_resolver_manager/kresd_controller/supervisord/plugin/sd_notify.py)2
-rw-r--r--python/knot_resolver_manager/controller/supervisord/supervisord.conf.j2 (renamed from python/knot_resolver_manager/kresd_controller/supervisord/supervisord.conf.j2)8
-rw-r--r--python/knot_resolver_manager/manager/__init__.py1
-rw-r--r--python/knot_resolver_manager/manager/__main__.py (renamed from python/knot_resolver_manager/__main__.py)2
-rw-r--r--python/knot_resolver_manager/manager/config_store.py (renamed from python/knot_resolver_manager/config_store.py)4
-rw-r--r--python/knot_resolver_manager/manager/constants.py (renamed from python/knot_resolver_manager/constants.py)6
-rw-r--r--python/knot_resolver_manager/manager/datamodel/__init__.py (renamed from python/knot_resolver_manager/datamodel/__init__.py)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/cache_schema.py (renamed from python/knot_resolver_manager/datamodel/cache_schema.py)4
-rw-r--r--python/knot_resolver_manager/manager/datamodel/config_schema.py (renamed from python/knot_resolver_manager/datamodel/config_schema.py)32
-rw-r--r--python/knot_resolver_manager/manager/datamodel/design-notes.yml (renamed from python/knot_resolver_manager/datamodel/design-notes.yml)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/dns64_schema.py (renamed from python/knot_resolver_manager/datamodel/dns64_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/dnssec_schema.py (renamed from python/knot_resolver_manager/datamodel/dnssec_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/forward_schema.py (renamed from python/knot_resolver_manager/datamodel/forward_schema.py)8
-rw-r--r--python/knot_resolver_manager/manager/datamodel/globals.py (renamed from python/knot_resolver_manager/datamodel/globals.py)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/local_data_schema.py (renamed from python/knot_resolver_manager/datamodel/local_data_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/logging_schema.py (renamed from python/knot_resolver_manager/datamodel/logging_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/lua_schema.py (renamed from python/knot_resolver_manager/datamodel/lua_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/management_schema.py (renamed from python/knot_resolver_manager/datamodel/management_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/monitoring_schema.py (renamed from python/knot_resolver_manager/datamodel/monitoring_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/network_schema.py (renamed from python/knot_resolver_manager/datamodel/network_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/options_schema.py (renamed from python/knot_resolver_manager/datamodel/options_schema.py)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/policy_schema.py (renamed from python/knot_resolver_manager/datamodel/policy_schema.py)6
-rw-r--r--python/knot_resolver_manager/manager/datamodel/rpz_schema.py (renamed from python/knot_resolver_manager/datamodel/rpz_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/slice_schema.py (renamed from python/knot_resolver_manager/datamodel/slice_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/static_hints_schema.py (renamed from python/knot_resolver_manager/datamodel/static_hints_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/stub_zone_schema.py (renamed from python/knot_resolver_manager/datamodel/stub_zone_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/__init__.py (renamed from python/knot_resolver_manager/datamodel/templates/__init__.py)4
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/cache.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/cache.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/dns64.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/dns64.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/dnssec.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/dnssec.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/forward.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/forward.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/local_data.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/local_data.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/logging.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/logging.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/macros/cache_macros.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/macros/cache_macros.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/macros/common_macros.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/macros/common_macros.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/macros/forward_macros.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/macros/forward_macros.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/macros/local_data_macros.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/macros/local_data_macros.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/macros/network_macros.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/macros/network_macros.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/macros/policy_macros.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/macros/policy_macros.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/macros/view_macros.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/macros/view_macros.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/monitoring.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/monitoring.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/network.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/network.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/options.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/options.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/policy-config.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/policy-config.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/static_hints.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/static_hints.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/views.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/views.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/webmgmt.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/webmgmt.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/templates/worker-config.lua.j2 (renamed from python/knot_resolver_manager/datamodel/templates/worker-config.lua.j2)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/types/__init__.py (renamed from python/knot_resolver_manager/datamodel/types/__init__.py)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/types/base_types.py (renamed from python/knot_resolver_manager/datamodel/types/base_types.py)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/types/enums.py (renamed from python/knot_resolver_manager/datamodel/types/enums.py)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/types/files.py (renamed from python/knot_resolver_manager/datamodel/types/files.py)4
-rw-r--r--python/knot_resolver_manager/manager/datamodel/types/generic_types.py (renamed from python/knot_resolver_manager/datamodel/types/generic_types.py)0
-rw-r--r--python/knot_resolver_manager/manager/datamodel/types/types.py (renamed from python/knot_resolver_manager/datamodel/types/types.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/view_schema.py (renamed from python/knot_resolver_manager/datamodel/view_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/datamodel/webmgmt_schema.py (renamed from python/knot_resolver_manager/datamodel/webmgmt_schema.py)2
-rw-r--r--python/knot_resolver_manager/manager/exceptions.py (renamed from python/knot_resolver_manager/exceptions.py)0
-rw-r--r--python/knot_resolver_manager/manager/kres_manager.py (renamed from python/knot_resolver_manager/kres_manager.py)14
-rw-r--r--python/knot_resolver_manager/manager/log.py (renamed from python/knot_resolver_manager/log.py)8
-rw-r--r--python/knot_resolver_manager/manager/main.py (renamed from python/knot_resolver_manager/main.py)6
-rw-r--r--python/knot_resolver_manager/manager/server.py (renamed from python/knot_resolver_manager/server.py)20
-rw-r--r--python/knot_resolver_manager/manager/statistics.py (renamed from python/knot_resolver_manager/statistics.py)8
-rw-r--r--python/knot_resolver_manager/utils/modeling/exceptions.py2
89 files changed, 141 insertions, 130 deletions
diff --git a/python/knot_resolver_manager/cli/__init__.py b/python/knot_resolver_manager/cli/__init__.py
deleted file mode 100644
index d3c6280d..00000000
--- a/python/knot_resolver_manager/cli/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-from pathlib import Path
-
-from knot_resolver_manager.datamodel.globals import Context, set_global_validation_context
-
-set_global_validation_context(Context(Path("."), False))
diff --git a/python/knot_resolver_manager/cli/__main__.py b/python/knot_resolver_manager/cli/__main__.py
deleted file mode 100644
index 88a83a67..00000000
--- a/python/knot_resolver_manager/cli/__main__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-from knot_resolver_manager.cli.main import main
-
-if __name__ == "__main__":
- main()
diff --git a/python/knot_resolver_manager/client/__init__.py b/python/knot_resolver_manager/client/__init__.py
new file mode 100644
index 00000000..2b1eb0f6
--- /dev/null
+++ b/python/knot_resolver_manager/client/__init__.py
@@ -0,0 +1,5 @@
+from pathlib import Path
+
+from knot_resolver_manager.manager.datamodel.globals import Context, set_global_validation_context
+
+set_global_validation_context(Context(Path("."), False))
diff --git a/python/knot_resolver_manager/client/__main__.py b/python/knot_resolver_manager/client/__main__.py
new file mode 100644
index 00000000..e26a454e
--- /dev/null
+++ b/python/knot_resolver_manager/client/__main__.py
@@ -0,0 +1,4 @@
+from knot_resolver_manager.client.main import main
+
+if __name__ == "__main__":
+ main()
diff --git a/python/knot_resolver_manager/cli/command.py b/python/knot_resolver_manager/client/command.py
index 72154a40..18cf4a22 100644
--- a/python/knot_resolver_manager/cli/command.py
+++ b/python/knot_resolver_manager/client/command.py
@@ -5,9 +5,9 @@ from pathlib import Path
from typing import Dict, List, Optional, Tuple, Type, TypeVar
from urllib.parse import quote
-from knot_resolver_manager.constants import API_SOCK_ENV_VAR, CONFIG_FILE_ENV_VAR, DEFAULT_MANAGER_CONFIG_FILE
-from knot_resolver_manager.datamodel.config_schema import DEFAULT_MANAGER_API_SOCK
-from knot_resolver_manager.datamodel.types import IPAddressPort
+from knot_resolver_manager.manager.constants import API_SOCK_ENV_VAR, CONFIG_FILE_ENV_VAR, DEFAULT_MANAGER_CONFIG_FILE
+from knot_resolver_manager.manager.datamodel.config_schema import DEFAULT_MANAGER_API_SOCK
+from knot_resolver_manager.manager.datamodel.types import IPAddressPort
from knot_resolver_manager.utils.modeling import parsing
from knot_resolver_manager.utils.modeling.exceptions import DataValidationError
from knot_resolver_manager.utils.requests import SocketDesc
diff --git a/python/knot_resolver_manager/cli/cmd/cache.py b/python/knot_resolver_manager/client/commands/cache.py
index e5a15035..daef251d 100644
--- a/python/knot_resolver_manager/cli/cmd/cache.py
+++ b/python/knot_resolver_manager/client/commands/cache.py
@@ -3,8 +3,8 @@ import sys
from enum import Enum
from typing import Any, Dict, List, Optional, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
-from knot_resolver_manager.datamodel.cache_schema import CacheClearRPCSchema
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.manager.datamodel.cache_schema import CacheClearRPCSchema
from knot_resolver_manager.utils.modeling.exceptions import AggregateDataValidationError, DataValidationError
from knot_resolver_manager.utils.modeling.parsing import DataFormat, parse_json
from knot_resolver_manager.utils.requests import request
diff --git a/python/knot_resolver_manager/cli/cmd/completion.py b/python/knot_resolver_manager/client/commands/completion.py
index 87a91838..b79c1d44 100644
--- a/python/knot_resolver_manager/cli/cmd/completion.py
+++ b/python/knot_resolver_manager/client/commands/completion.py
@@ -2,7 +2,7 @@ import argparse
from enum import Enum
from typing import List, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
class Shells(Enum):
diff --git a/python/knot_resolver_manager/cli/cmd/config.py b/python/knot_resolver_manager/client/commands/config.py
index f0be2cbc..8ef7b545 100644
--- a/python/knot_resolver_manager/cli/cmd/config.py
+++ b/python/knot_resolver_manager/client/commands/config.py
@@ -5,7 +5,7 @@ from typing import List, Optional, Tuple, Type
from typing_extensions import Literal
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
from knot_resolver_manager.utils.modeling.parsing import DataFormat, parse_json, try_to_parse
from knot_resolver_manager.utils.requests import request
diff --git a/python/knot_resolver_manager/cli/cmd/convert.py b/python/knot_resolver_manager/client/commands/convert.py
index 7bb2858f..157e0731 100644
--- a/python/knot_resolver_manager/cli/cmd/convert.py
+++ b/python/knot_resolver_manager/client/commands/convert.py
@@ -3,9 +3,9 @@ import sys
from pathlib import Path
from typing import List, Optional, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
-from knot_resolver_manager.datamodel import KresConfig
-from knot_resolver_manager.datamodel.globals import (
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.manager.datamodel import KresConfig
+from knot_resolver_manager.manager.datamodel.globals import (
Context,
reset_global_validation_context,
set_global_validation_context,
diff --git a/python/knot_resolver_manager/cli/cmd/help.py b/python/knot_resolver_manager/client/commands/help.py
index d374005e..93b45855 100644
--- a/python/knot_resolver_manager/cli/cmd/help.py
+++ b/python/knot_resolver_manager/client/commands/help.py
@@ -1,7 +1,7 @@
import argparse
from typing import List, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
@register_command
diff --git a/python/knot_resolver_manager/cli/cmd/metrics.py b/python/knot_resolver_manager/client/commands/metrics.py
index 7f466ec3..2d3378d0 100644
--- a/python/knot_resolver_manager/cli/cmd/metrics.py
+++ b/python/knot_resolver_manager/client/commands/metrics.py
@@ -2,7 +2,7 @@ import argparse
import sys
from typing import List, Optional, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
from knot_resolver_manager.utils.modeling.parsing import DataFormat, parse_json
from knot_resolver_manager.utils.requests import request
diff --git a/python/knot_resolver_manager/cli/cmd/reload.py b/python/knot_resolver_manager/client/commands/reload.py
index 89782f4e..c800ca2f 100644
--- a/python/knot_resolver_manager/cli/cmd/reload.py
+++ b/python/knot_resolver_manager/client/commands/reload.py
@@ -2,7 +2,7 @@ import argparse
import sys
from typing import List, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
from knot_resolver_manager.utils.requests import request
diff --git a/python/knot_resolver_manager/cli/cmd/schema.py b/python/knot_resolver_manager/client/commands/schema.py
index 25369946..8e48022b 100644
--- a/python/knot_resolver_manager/cli/cmd/schema.py
+++ b/python/knot_resolver_manager/client/commands/schema.py
@@ -3,8 +3,8 @@ import json
import sys
from typing import List, Optional, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
-from knot_resolver_manager.datamodel.config_schema import KresConfig
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
from knot_resolver_manager.utils.requests import request
diff --git a/python/knot_resolver_manager/cli/cmd/stop.py b/python/knot_resolver_manager/client/commands/stop.py
index a3f46354..7bd6d21c 100644
--- a/python/knot_resolver_manager/cli/cmd/stop.py
+++ b/python/knot_resolver_manager/client/commands/stop.py
@@ -2,7 +2,7 @@ import argparse
import sys
from typing import List, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
from knot_resolver_manager.utils.requests import request
diff --git a/python/knot_resolver_manager/cli/cmd/validate.py b/python/knot_resolver_manager/client/commands/validate.py
index aacd1989..0b327b34 100644
--- a/python/knot_resolver_manager/cli/cmd/validate.py
+++ b/python/knot_resolver_manager/client/commands/validate.py
@@ -3,9 +3,9 @@ import sys
from pathlib import Path
from typing import List, Tuple, Type
-from knot_resolver_manager.cli.command import Command, CommandArgs, CompWords, register_command
-from knot_resolver_manager.datamodel import KresConfig
-from knot_resolver_manager.datamodel.globals import (
+from knot_resolver_manager.client.command import Command, CommandArgs, CompWords, register_command
+from knot_resolver_manager.manager.datamodel import KresConfig
+from knot_resolver_manager.manager.datamodel.globals import (
Context,
reset_global_validation_context,
set_global_validation_context,
diff --git a/python/knot_resolver_manager/cli/kresctl.py b/python/knot_resolver_manager/client/kresctl.py
index cbcc12a3..1d52564d 100644
--- a/python/knot_resolver_manager/cli/kresctl.py
+++ b/python/knot_resolver_manager/client/kresctl.py
@@ -1,6 +1,6 @@
import argparse
-from knot_resolver_manager.cli.command import CommandArgs
+from knot_resolver_manager.client.command import CommandArgs
class Kresctl:
diff --git a/python/knot_resolver_manager/cli/main.py b/python/knot_resolver_manager/client/main.py
index 301a9539..50e08203 100644
--- a/python/knot_resolver_manager/cli/main.py
+++ b/python/knot_resolver_manager/client/main.py
@@ -2,13 +2,13 @@ import argparse
import importlib
import os
-from knot_resolver_manager.cli.command import install_commands_parsers
-from knot_resolver_manager.cli.kresctl import Kresctl
+from knot_resolver_manager.client.command import install_commands_parsers
+from knot_resolver_manager.client.kresctl import Kresctl
def autoimport_commands() -> None:
- prefix = "knot_resolver_manager.cli.cmd."
- for module_name in os.listdir(os.path.dirname(__file__) + "/cmd"):
+ prefix = "knot_resolver_manager.client.commands."
+ for module_name in os.listdir(os.path.dirname(__file__) + "/commands"):
if module_name[-3:] != ".py":
continue
importlib.import_module(f"{prefix}{module_name[:-3]}")
diff --git a/python/knot_resolver_manager/kresd_controller/__init__.py b/python/knot_resolver_manager/controller/__init__.py
index a21bc44c..621ea702 100644
--- a/python/knot_resolver_manager/kresd_controller/__init__.py
+++ b/python/knot_resolver_manager/controller/__init__.py
@@ -12,8 +12,8 @@ import asyncio
import logging
from typing import List, Optional
-from knot_resolver_manager.datamodel.config_schema import KresConfig
-from knot_resolver_manager.kresd_controller.interface import SubprocessController
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
+from knot_resolver_manager.controller.interface import SubprocessController
logger = logging.getLogger(__name__)
@@ -29,7 +29,7 @@ def try_supervisord():
Attempt to load supervisord controllers.
"""
try:
- from knot_resolver_manager.kresd_controller.supervisord import SupervisordSubprocessController
+ from knot_resolver_manager.controller.supervisord import SupervisordSubprocessController
_registered_controllers.append(SupervisordSubprocessController())
except ImportError:
diff --git a/python/knot_resolver_manager/kresd_controller/interface.py b/python/knot_resolver_manager/controller/interface.py
index 63caea49..f5ca8c15 100644
--- a/python/knot_resolver_manager/kresd_controller/interface.py
+++ b/python/knot_resolver_manager/controller/interface.py
@@ -10,10 +10,10 @@ from pathlib import Path
from typing import Dict, Iterable, Optional, Type, TypeVar
from weakref import WeakValueDictionary
-from knot_resolver_manager.constants import kresd_config_file, policy_loader_config_file
-from knot_resolver_manager.datamodel.config_schema import KresConfig
-from knot_resolver_manager.exceptions import SubprocessControllerException
-from knot_resolver_manager.kresd_controller.registered_workers import register_worker, unregister_worker
+from knot_resolver_manager.manager.constants import kresd_config_file, policy_loader_config_file
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
+from knot_resolver_manager.manager.exceptions import SubprocessControllerException
+from knot_resolver_manager.controller.registered_workers import register_worker, unregister_worker
from knot_resolver_manager.utils.async_utils import writefile
logger = logging.getLogger(__name__)
diff --git a/python/knot_resolver_manager/kresd_controller/registered_workers.py b/python/knot_resolver_manager/controller/registered_workers.py
index b6ea834e..87066dcf 100644
--- a/python/knot_resolver_manager/kresd_controller/registered_workers.py
+++ b/python/knot_resolver_manager/controller/registered_workers.py
@@ -2,10 +2,10 @@ import asyncio
import logging
from typing import TYPE_CHECKING, Dict, List, Tuple
-from knot_resolver_manager.exceptions import SubprocessControllerException
+from knot_resolver_manager.manager.exceptions import SubprocessControllerException
if TYPE_CHECKING:
- from knot_resolver_manager.kresd_controller.interface import KresID, Subprocess
+ from knot_resolver_manager.controller.interface import KresID, Subprocess
logger = logging.getLogger(__name__)
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/__init__.py b/python/knot_resolver_manager/controller/supervisord/__init__.py
index 5fb4d81d..1d6f586c 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/__init__.py
+++ b/python/knot_resolver_manager/controller/supervisord/__init__.py
@@ -7,17 +7,17 @@ from xmlrpc.client import Fault, ServerProxy
import supervisor.xmlrpc # type: ignore[import]
from knot_resolver_manager.compat.asyncio import async_in_a_thread
-from knot_resolver_manager.constants import supervisord_config_file, supervisord_pid_file, supervisord_sock_file
-from knot_resolver_manager.datamodel.config_schema import KresConfig
-from knot_resolver_manager.exceptions import CancelStartupExecInsteadException, SubprocessControllerException
-from knot_resolver_manager.kresd_controller.interface import (
+from knot_resolver_manager.manager.constants import supervisord_config_file, supervisord_pid_file, supervisord_sock_file
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
+from knot_resolver_manager.manager.exceptions import CancelStartupExecInsteadException, SubprocessControllerException
+from knot_resolver_manager.controller.interface import (
KresID,
Subprocess,
SubprocessController,
SubprocessStatus,
SubprocessType,
)
-from knot_resolver_manager.kresd_controller.supervisord.config_file import SupervisordKresID, write_config_file
+from knot_resolver_manager.controller.supervisord.config_file import SupervisordKresID, write_config_file
from knot_resolver_manager.utils import which
from knot_resolver_manager.utils.async_utils import call, readfile
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/config_file.py b/python/knot_resolver_manager/controller/supervisord/config_file.py
index 2fb7a99b..388ac94d 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/config_file.py
+++ b/python/knot_resolver_manager/controller/supervisord/config_file.py
@@ -6,7 +6,7 @@ from pathlib import Path
from jinja2 import Template
from typing_extensions import Literal
-from knot_resolver_manager.constants import (
+from knot_resolver_manager.manager.constants import (
kres_gc_executable,
kresd_cache_dir,
kresd_config_file_supervisord_pattern,
@@ -19,9 +19,9 @@ from knot_resolver_manager.constants import (
supervisord_subprocess_log_dir,
user_constants,
)
-from knot_resolver_manager.datamodel.config_schema import KresConfig
-from knot_resolver_manager.datamodel.logging_schema import LogTargetEnum
-from knot_resolver_manager.kresd_controller.interface import KresID, SubprocessType
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
+from knot_resolver_manager.manager.datamodel.logging_schema import LogTargetEnum
+from knot_resolver_manager.controller.interface import KresID, SubprocessType
from knot_resolver_manager.utils.async_utils import read_resource, writefile
logger = logging.getLogger(__name__)
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/fast_rpcinterface.py b/python/knot_resolver_manager/controller/supervisord/plugin/fast_rpcinterface.py
index c3834784..c3834784 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/fast_rpcinterface.py
+++ b/python/knot_resolver_manager/controller/supervisord/plugin/fast_rpcinterface.py
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/manager_integration.py b/python/knot_resolver_manager/controller/supervisord/plugin/manager_integration.py
index 81115617..81115617 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/manager_integration.py
+++ b/python/knot_resolver_manager/controller/supervisord/plugin/manager_integration.py
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/notifymodule.c b/python/knot_resolver_manager/controller/supervisord/plugin/notifymodule.c
index d56ee7d2..d56ee7d2 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/notifymodule.c
+++ b/python/knot_resolver_manager/controller/supervisord/plugin/notifymodule.c
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/patch_logger.py b/python/knot_resolver_manager/controller/supervisord/plugin/patch_logger.py
index 411f232e..411f232e 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/patch_logger.py
+++ b/python/knot_resolver_manager/controller/supervisord/plugin/patch_logger.py
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/sd_notify.py b/python/knot_resolver_manager/controller/supervisord/plugin/sd_notify.py
index cffe6fd3..a3fb3180 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/plugin/sd_notify.py
+++ b/python/knot_resolver_manager/controller/supervisord/plugin/sd_notify.py
@@ -13,7 +13,7 @@ from supervisor.process import Subprocess
from supervisor.states import ProcessStates
from supervisor.supervisord import Supervisor
-from knot_resolver_manager.kresd_controller.supervisord.plugin import notify
+from knot_resolver_manager.controller.supervisord.plugin import notify
starting_processes: List[Subprocess] = []
diff --git a/python/knot_resolver_manager/kresd_controller/supervisord/supervisord.conf.j2 b/python/knot_resolver_manager/controller/supervisord/supervisord.conf.j2
index b1fed1aa..d187fc64 100644
--- a/python/knot_resolver_manager/kresd_controller/supervisord/supervisord.conf.j2
+++ b/python/knot_resolver_manager/controller/supervisord/supervisord.conf.j2
@@ -20,21 +20,21 @@ serverurl = unix://{{ config.unix_http_server }}
{# Extensions to changing the supervisord behavior #}
[rpcinterface:patch_logger]
-supervisor.rpcinterface_factory = knot_resolver_manager.kresd_controller.supervisord.plugin.patch_logger:inject
+supervisor.rpcinterface_factory = knot_resolver_manager.controller.supervisord.plugin.patch_logger:inject
target = {{ config.target }}
[rpcinterface:manager_integration]
-supervisor.rpcinterface_factory = knot_resolver_manager.kresd_controller.supervisord.plugin.manager_integration:inject
+supervisor.rpcinterface_factory = knot_resolver_manager.controller.supervisord.plugin.manager_integration:inject
[rpcinterface:sd_notify]
-supervisor.rpcinterface_factory = knot_resolver_manager.kresd_controller.supervisord.plugin.sd_notify:inject
+supervisor.rpcinterface_factory = knot_resolver_manager.controller.supervisord.plugin.sd_notify:inject
{# Extensions for actual API control #}
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[rpcinterface:fast]
-supervisor.rpcinterface_factory = knot_resolver_manager.kresd_controller.supervisord.plugin.fast_rpcinterface:make_main_rpcinterface
+supervisor.rpcinterface_factory = knot_resolver_manager.controller.supervisord.plugin.fast_rpcinterface:make_main_rpcinterface
[program:manager]
redirect_stderr=false
diff --git a/python/knot_resolver_manager/manager/__init__.py b/python/knot_resolver_manager/manager/__init__.py
new file mode 100644
index 00000000..3dc1f76b
--- /dev/null
+++ b/python/knot_resolver_manager/manager/__init__.py
@@ -0,0 +1 @@
+__version__ = "0.1.0"
diff --git a/python/knot_resolver_manager/__main__.py b/python/knot_resolver_manager/manager/__main__.py
index 89eabd56..22eb960b 100644
--- a/python/knot_resolver_manager/__main__.py
+++ b/python/knot_resolver_manager/manager/__main__.py
@@ -6,7 +6,7 @@ def run():
# throws nice syntax error on old Python versions:
0_0 # Python >= 3.7 required
- from knot_resolver_manager import main
+ from knot_resolver_manager.manager import main
main.main()
diff --git a/python/knot_resolver_manager/config_store.py b/python/knot_resolver_manager/manager/config_store.py
index e5fbaf60..93786e96 100644
--- a/python/knot_resolver_manager/config_store.py
+++ b/python/knot_resolver_manager/manager/config_store.py
@@ -2,8 +2,8 @@ import asyncio
from asyncio import Lock
from typing import Any, Awaitable, Callable, List, Tuple
-from knot_resolver_manager.datamodel import KresConfig
-from knot_resolver_manager.exceptions import KresManagerException
+from knot_resolver_manager.manager.datamodel import KresConfig
+from knot_resolver_manager.manager.exceptions import KresManagerException
from knot_resolver_manager.utils.functional import Result
from knot_resolver_manager.utils.modeling.exceptions import DataParsingError
from knot_resolver_manager.utils.modeling.types import NoneType
diff --git a/python/knot_resolver_manager/constants.py b/python/knot_resolver_manager/manager/constants.py
index 9253c2db..e83a777b 100644
--- a/python/knot_resolver_manager/constants.py
+++ b/python/knot_resolver_manager/manager/constants.py
@@ -11,9 +11,9 @@ else:
knot_resolver = None
if TYPE_CHECKING:
- from knot_resolver_manager.config_store import ConfigStore
- from knot_resolver_manager.datamodel.config_schema import KresConfig
- from knot_resolver_manager.kresd_controller.interface import KresID
+ from knot_resolver_manager.manager.config_store import ConfigStore
+ from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
+ from knot_resolver_manager.controller.interface import KresID
STARTUP_LOG_LEVEL = logging.DEBUG
DEFAULT_MANAGER_CONFIG_FILE = Path("/etc/knot-resolver/config.yaml")
diff --git a/python/knot_resolver_manager/datamodel/__init__.py b/python/knot_resolver_manager/manager/datamodel/__init__.py
index a0174acc..a0174acc 100644
--- a/python/knot_resolver_manager/datamodel/__init__.py
+++ b/python/knot_resolver_manager/manager/datamodel/__init__.py
diff --git a/python/knot_resolver_manager/datamodel/cache_schema.py b/python/knot_resolver_manager/manager/datamodel/cache_schema.py
index 4ed9fc3a..fd0247aa 100644
--- a/python/knot_resolver_manager/datamodel/cache_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/cache_schema.py
@@ -2,8 +2,8 @@ from typing import List, Optional, Union
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.templates import template_from_str
-from knot_resolver_manager.datamodel.types import (
+from knot_resolver_manager.manager.datamodel.templates import template_from_str
+from knot_resolver_manager.manager.datamodel.types import (
DNSRecordTypeEnum,
DomainName,
EscapedStr,
diff --git a/python/knot_resolver_manager/datamodel/config_schema.py b/python/knot_resolver_manager/manager/datamodel/config_schema.py
index c8398569..4201447b 100644
--- a/python/knot_resolver_manager/datamodel/config_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/config_schema.py
@@ -5,22 +5,22 @@ from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Literal
-from knot_resolver_manager.constants import MAX_WORKERS
-from knot_resolver_manager.datamodel.cache_schema import CacheSchema
-from knot_resolver_manager.datamodel.dns64_schema import Dns64Schema
-from knot_resolver_manager.datamodel.dnssec_schema import DnssecSchema
-from knot_resolver_manager.datamodel.forward_schema import ForwardSchema
-from knot_resolver_manager.datamodel.local_data_schema import LocalDataSchema, RPZSchema, RuleSchema
-from knot_resolver_manager.datamodel.logging_schema import LoggingSchema
-from knot_resolver_manager.datamodel.lua_schema import LuaSchema
-from knot_resolver_manager.datamodel.management_schema import ManagementSchema
-from knot_resolver_manager.datamodel.monitoring_schema import MonitoringSchema
-from knot_resolver_manager.datamodel.network_schema import NetworkSchema
-from knot_resolver_manager.datamodel.options_schema import OptionsSchema
-from knot_resolver_manager.datamodel.templates import POLICY_CONFIG_TEMPLATE, WORKER_CONFIG_TEMPLATE
-from knot_resolver_manager.datamodel.types import EscapedStr, IntPositive, WritableDir
-from knot_resolver_manager.datamodel.view_schema import ViewSchema
-from knot_resolver_manager.datamodel.webmgmt_schema import WebmgmtSchema
+from knot_resolver_manager.manager.constants import MAX_WORKERS
+from knot_resolver_manager.manager.datamodel.cache_schema import CacheSchema
+from knot_resolver_manager.manager.datamodel.dns64_schema import Dns64Schema
+from knot_resolver_manager.manager.datamodel.dnssec_schema import DnssecSchema
+from knot_resolver_manager.manager.datamodel.forward_schema import ForwardSchema
+from knot_resolver_manager.manager.datamodel.local_data_schema import LocalDataSchema, RPZSchema, RuleSchema
+from knot_resolver_manager.manager.datamodel.logging_schema import LoggingSchema
+from knot_resolver_manager.manager.datamodel.lua_schema import LuaSchema
+from knot_resolver_manager.manager.datamodel.management_schema import ManagementSchema
+from knot_resolver_manager.manager.datamodel.monitoring_schema import MonitoringSchema
+from knot_resolver_manager.manager.datamodel.network_schema import NetworkSchema
+from knot_resolver_manager.manager.datamodel.options_schema import OptionsSchema
+from knot_resolver_manager.manager.datamodel.templates import POLICY_CONFIG_TEMPLATE, WORKER_CONFIG_TEMPLATE
+from knot_resolver_manager.manager.datamodel.types import EscapedStr, IntPositive, WritableDir
+from knot_resolver_manager.manager.datamodel.view_schema import ViewSchema
+from knot_resolver_manager.manager.datamodel.webmgmt_schema import WebmgmtSchema
from knot_resolver_manager.utils.modeling import ConfigSchema
from knot_resolver_manager.utils.modeling.base_schema import lazy_default
from knot_resolver_manager.utils.modeling.exceptions import AggregateDataValidationError, DataValidationError
diff --git a/python/knot_resolver_manager/datamodel/design-notes.yml b/python/knot_resolver_manager/manager/datamodel/design-notes.yml
index e4424bc8..e4424bc8 100644
--- a/python/knot_resolver_manager/datamodel/design-notes.yml
+++ b/python/knot_resolver_manager/manager/datamodel/design-notes.yml
diff --git a/python/knot_resolver_manager/datamodel/dns64_schema.py b/python/knot_resolver_manager/manager/datamodel/dns64_schema.py
index 60b92f2b..35eb1fa6 100644
--- a/python/knot_resolver_manager/datamodel/dns64_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/dns64_schema.py
@@ -1,6 +1,6 @@
from typing import List, Optional
-from knot_resolver_manager.datamodel.types import IPv6Network, IPv6Network96, TimeUnit
+from knot_resolver_manager.manager.datamodel.types import IPv6Network, IPv6Network96, TimeUnit
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/dnssec_schema.py b/python/knot_resolver_manager/manager/datamodel/dnssec_schema.py
index e51500e1..44f7ee31 100644
--- a/python/knot_resolver_manager/datamodel/dnssec_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/dnssec_schema.py
@@ -1,6 +1,6 @@
from typing import List, Optional
-from knot_resolver_manager.datamodel.types import DomainName, EscapedStr, IntNonNegative, ReadableFile, TimeUnit
+from knot_resolver_manager.manager.datamodel.types import DomainName, EscapedStr, IntNonNegative, ReadableFile, TimeUnit
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/forward_schema.py b/python/knot_resolver_manager/manager/datamodel/forward_schema.py
index 52a05f36..923217f4 100644
--- a/python/knot_resolver_manager/datamodel/forward_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/forward_schema.py
@@ -2,7 +2,13 @@ from typing import Any, List, Optional, Union
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.types import DomainName, IPAddressOptionalPort, ListOrItem, PinSha256, ReadableFile
+from knot_resolver_manager.manager.datamodel.types import (
+ DomainName,
+ IPAddressOptionalPort,
+ ListOrItem,
+ PinSha256,
+ ReadableFile,
+)
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/globals.py b/python/knot_resolver_manager/manager/datamodel/globals.py
index 610323fa..610323fa 100644
--- a/python/knot_resolver_manager/datamodel/globals.py
+++ b/python/knot_resolver_manager/manager/datamodel/globals.py
diff --git a/python/knot_resolver_manager/datamodel/local_data_schema.py b/python/knot_resolver_manager/manager/datamodel/local_data_schema.py
index fafa7ebe..6e1a966c 100644
--- a/python/knot_resolver_manager/datamodel/local_data_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/local_data_schema.py
@@ -2,7 +2,7 @@ from typing import Dict, List, Optional
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.types import (
+from knot_resolver_manager.manager.datamodel.types import (
DomainName,
EscapedStr,
IDPattern,
diff --git a/python/knot_resolver_manager/datamodel/logging_schema.py b/python/knot_resolver_manager/manager/datamodel/logging_schema.py
index 601cd4a5..46f36d5a 100644
--- a/python/knot_resolver_manager/datamodel/logging_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/logging_schema.py
@@ -3,7 +3,7 @@ from typing import Any, List, Optional, Set, Type, Union, cast
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.types import TimeUnit, WritableFilePath
+from knot_resolver_manager.manager.datamodel.types import TimeUnit, WritableFilePath
from knot_resolver_manager.utils.modeling import ConfigSchema
from knot_resolver_manager.utils.modeling.base_schema import is_obj_type_valid
diff --git a/python/knot_resolver_manager/datamodel/lua_schema.py b/python/knot_resolver_manager/manager/datamodel/lua_schema.py
index 079333ae..0dccc184 100644
--- a/python/knot_resolver_manager/datamodel/lua_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/lua_schema.py
@@ -1,6 +1,6 @@
from typing import Optional
-from knot_resolver_manager.datamodel.types import ReadableFile
+from knot_resolver_manager.manager.datamodel.types import ReadableFile
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/management_schema.py b/python/knot_resolver_manager/manager/datamodel/management_schema.py
index 44f8f3e8..4df4afa1 100644
--- a/python/knot_resolver_manager/datamodel/management_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/management_schema.py
@@ -1,6 +1,6 @@
from typing import Optional
-from knot_resolver_manager.datamodel.types import WritableFilePath, IPAddressPort
+from knot_resolver_manager.manager.datamodel.types import WritableFilePath, IPAddressPort
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/monitoring_schema.py b/python/knot_resolver_manager/manager/datamodel/monitoring_schema.py
index dfc4a116..6e33b2f5 100644
--- a/python/knot_resolver_manager/datamodel/monitoring_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/monitoring_schema.py
@@ -2,7 +2,7 @@ from typing import Union
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.types import DomainName, EscapedStr, IPAddress, PortNumber, TimeUnit
+from knot_resolver_manager.manager.datamodel.types import DomainName, EscapedStr, IPAddress, PortNumber, TimeUnit
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/network_schema.py b/python/knot_resolver_manager/manager/datamodel/network_schema.py
index b9a35090..ae006f41 100644
--- a/python/knot_resolver_manager/datamodel/network_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/network_schema.py
@@ -2,7 +2,7 @@ from typing import List, Optional, Union
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.types import (
+from knot_resolver_manager.manager.datamodel.types import (
EscapedStr32B,
WritableFilePath,
Int0_512,
diff --git a/python/knot_resolver_manager/datamodel/options_schema.py b/python/knot_resolver_manager/manager/datamodel/options_schema.py
index d0bb0399..d0bb0399 100644
--- a/python/knot_resolver_manager/datamodel/options_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/options_schema.py
diff --git a/python/knot_resolver_manager/datamodel/policy_schema.py b/python/knot_resolver_manager/manager/datamodel/policy_schema.py
index bbc61cd1..fb215188 100644
--- a/python/knot_resolver_manager/datamodel/policy_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/policy_schema.py
@@ -1,8 +1,8 @@
from typing import List, Optional, Union
-from knot_resolver_manager.datamodel.forward_schema import ForwardServerSchema
-from knot_resolver_manager.datamodel.network_schema import AddressRenumberingSchema
-from knot_resolver_manager.datamodel.types import (
+from knot_resolver_manager.manager.datamodel.forward_schema import ForwardServerSchema
+from knot_resolver_manager.manager.datamodel.network_schema import AddressRenumberingSchema
+from knot_resolver_manager.manager.datamodel.types import (
DNSRecordTypeEnum,
IPAddressOptionalPort,
PolicyActionEnum,
diff --git a/python/knot_resolver_manager/datamodel/rpz_schema.py b/python/knot_resolver_manager/manager/datamodel/rpz_schema.py
index bf98bd0c..e5dfe60e 100644
--- a/python/knot_resolver_manager/datamodel/rpz_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/rpz_schema.py
@@ -1,6 +1,6 @@
from typing import List, Optional
-from knot_resolver_manager.datamodel.types import PolicyActionEnum, PolicyFlagEnum, ReadableFile
+from knot_resolver_manager.manager.datamodel.types import PolicyActionEnum, PolicyFlagEnum, ReadableFile
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/slice_schema.py b/python/knot_resolver_manager/manager/datamodel/slice_schema.py
index 0c7cdea1..3dacde98 100644
--- a/python/knot_resolver_manager/datamodel/slice_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/slice_schema.py
@@ -2,7 +2,7 @@ from typing import List, Optional
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.policy_schema import ActionSchema
+from knot_resolver_manager.manager.datamodel.policy_schema import ActionSchema
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/static_hints_schema.py b/python/knot_resolver_manager/manager/datamodel/static_hints_schema.py
index 89db49bb..7a14aab3 100644
--- a/python/knot_resolver_manager/datamodel/static_hints_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/static_hints_schema.py
@@ -1,6 +1,6 @@
from typing import Dict, List, Optional
-from knot_resolver_manager.datamodel.types import DomainName, IPAddress, ReadableFile, TimeUnit
+from knot_resolver_manager.manager.datamodel.types import DomainName, IPAddress, ReadableFile, TimeUnit
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/stub_zone_schema.py b/python/knot_resolver_manager/manager/datamodel/stub_zone_schema.py
index b9945ecc..9e48efe8 100644
--- a/python/knot_resolver_manager/datamodel/stub_zone_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/stub_zone_schema.py
@@ -1,6 +1,6 @@
from typing import List, Optional, Union
-from knot_resolver_manager.datamodel.types import DomainName, IPAddressOptionalPort, PolicyFlagEnum
+from knot_resolver_manager.manager.datamodel.types import DomainName, IPAddressOptionalPort, PolicyFlagEnum
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/templates/__init__.py b/python/knot_resolver_manager/manager/datamodel/templates/__init__.py
index 832503b7..dc7b91e0 100644
--- a/python/knot_resolver_manager/datamodel/templates/__init__.py
+++ b/python/knot_resolver_manager/manager/datamodel/templates/__init__.py
@@ -5,13 +5,13 @@ from jinja2 import Environment, FileSystemLoader, Template
def _get_templates_dir() -> str:
- module = sys.modules["knot_resolver_manager.datamodel"].__file__
+ module = sys.modules["knot_resolver_manager.manager.datamodel"].__file__
if module:
templates_dir = os.path.join(os.path.dirname(module), "templates")
if os.path.isdir(templates_dir):
return templates_dir
raise NotADirectoryError(f"the templates dir '{templates_dir}' is not a directory or does not exist")
- raise OSError("package 'knot_resolver_manager.datamodel' cannot be located or loaded")
+ raise OSError("package 'knot_resolver_manager.manager.datamodel' cannot be located or loaded")
_TEMPLATES_DIR = _get_templates_dir()
diff --git a/python/knot_resolver_manager/datamodel/templates/cache.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/cache.lua.j2
index f0176a59..f0176a59 100644
--- a/python/knot_resolver_manager/datamodel/templates/cache.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/cache.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/dns64.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/dns64.lua.j2
index c5239f00..c5239f00 100644
--- a/python/knot_resolver_manager/datamodel/templates/dns64.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/dns64.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/dnssec.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/dnssec.lua.j2
index 05d1fa68..05d1fa68 100644
--- a/python/knot_resolver_manager/datamodel/templates/dnssec.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/dnssec.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/forward.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/forward.lua.j2
index 24311da1..24311da1 100644
--- a/python/knot_resolver_manager/datamodel/templates/forward.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/forward.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/local_data.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/local_data.lua.j2
index 8882471f..8882471f 100644
--- a/python/knot_resolver_manager/datamodel/templates/local_data.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/local_data.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/logging.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/logging.lua.j2
index 2d5937a8..2d5937a8 100644
--- a/python/knot_resolver_manager/datamodel/templates/logging.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/logging.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/macros/cache_macros.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/macros/cache_macros.lua.j2
index 51df48da..51df48da 100644
--- a/python/knot_resolver_manager/datamodel/templates/macros/cache_macros.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/macros/cache_macros.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/macros/common_macros.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/macros/common_macros.lua.j2
index 4c2ba11a..4c2ba11a 100644
--- a/python/knot_resolver_manager/datamodel/templates/macros/common_macros.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/macros/common_macros.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/macros/forward_macros.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/macros/forward_macros.lua.j2
index b7723fb0..b7723fb0 100644
--- a/python/knot_resolver_manager/datamodel/templates/macros/forward_macros.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/macros/forward_macros.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/macros/local_data_macros.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/macros/local_data_macros.lua.j2
index 0898571c..0898571c 100644
--- a/python/knot_resolver_manager/datamodel/templates/macros/local_data_macros.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/macros/local_data_macros.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/macros/network_macros.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/macros/network_macros.lua.j2
index 79800f7d..79800f7d 100644
--- a/python/knot_resolver_manager/datamodel/templates/macros/network_macros.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/macros/network_macros.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/macros/policy_macros.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/macros/policy_macros.lua.j2
index 347532e6..347532e6 100644
--- a/python/knot_resolver_manager/datamodel/templates/macros/policy_macros.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/macros/policy_macros.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/macros/view_macros.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/macros/view_macros.lua.j2
index 2f1a7964..2f1a7964 100644
--- a/python/knot_resolver_manager/datamodel/templates/macros/view_macros.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/macros/view_macros.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/monitoring.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/monitoring.lua.j2
index 624b59ab..624b59ab 100644
--- a/python/knot_resolver_manager/datamodel/templates/monitoring.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/monitoring.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/network.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/network.lua.j2
index 665ee454..665ee454 100644
--- a/python/knot_resolver_manager/datamodel/templates/network.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/network.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/options.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/options.lua.j2
index 8210fb6d..8210fb6d 100644
--- a/python/knot_resolver_manager/datamodel/templates/options.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/options.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/policy-config.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/policy-config.lua.j2
index 4c5c9048..4c5c9048 100644
--- a/python/knot_resolver_manager/datamodel/templates/policy-config.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/policy-config.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/static_hints.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/static_hints.lua.j2
index 130facf9..130facf9 100644
--- a/python/knot_resolver_manager/datamodel/templates/static_hints.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/static_hints.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/views.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/views.lua.j2
index 81de8c7b..81de8c7b 100644
--- a/python/knot_resolver_manager/datamodel/templates/views.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/views.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/webmgmt.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/webmgmt.lua.j2
index 938ea8da..938ea8da 100644
--- a/python/knot_resolver_manager/datamodel/templates/webmgmt.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/webmgmt.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/templates/worker-config.lua.j2 b/python/knot_resolver_manager/manager/datamodel/templates/worker-config.lua.j2
index 17c49fb0..17c49fb0 100644
--- a/python/knot_resolver_manager/datamodel/templates/worker-config.lua.j2
+++ b/python/knot_resolver_manager/manager/datamodel/templates/worker-config.lua.j2
diff --git a/python/knot_resolver_manager/datamodel/types/__init__.py b/python/knot_resolver_manager/manager/datamodel/types/__init__.py
index a3d7db3e..a3d7db3e 100644
--- a/python/knot_resolver_manager/datamodel/types/__init__.py
+++ b/python/knot_resolver_manager/manager/datamodel/types/__init__.py
diff --git a/python/knot_resolver_manager/datamodel/types/base_types.py b/python/knot_resolver_manager/manager/datamodel/types/base_types.py
index 91f53406..91f53406 100644
--- a/python/knot_resolver_manager/datamodel/types/base_types.py
+++ b/python/knot_resolver_manager/manager/datamodel/types/base_types.py
diff --git a/python/knot_resolver_manager/datamodel/types/enums.py b/python/knot_resolver_manager/manager/datamodel/types/enums.py
index bc93ae2f..bc93ae2f 100644
--- a/python/knot_resolver_manager/datamodel/types/enums.py
+++ b/python/knot_resolver_manager/manager/datamodel/types/enums.py
diff --git a/python/knot_resolver_manager/datamodel/types/files.py b/python/knot_resolver_manager/manager/datamodel/types/files.py
index 4c6e7186..94ce04de 100644
--- a/python/knot_resolver_manager/datamodel/types/files.py
+++ b/python/knot_resolver_manager/manager/datamodel/types/files.py
@@ -6,8 +6,8 @@ from pathlib import Path
from pwd import getpwnam
from typing import Any, Dict, Tuple, Type, TypeVar
-from knot_resolver_manager.constants import kresd_group, kresd_user
-from knot_resolver_manager.datamodel.globals import get_resolve_root, get_strict_validation
+from knot_resolver_manager.manager.constants import kresd_group, kresd_user
+from knot_resolver_manager.manager.datamodel.globals import get_resolve_root, get_strict_validation
from knot_resolver_manager.utils.modeling.base_value_type import BaseValueType
diff --git a/python/knot_resolver_manager/datamodel/types/generic_types.py b/python/knot_resolver_manager/manager/datamodel/types/generic_types.py
index 549b11a8..549b11a8 100644
--- a/python/knot_resolver_manager/datamodel/types/generic_types.py
+++ b/python/knot_resolver_manager/manager/datamodel/types/generic_types.py
diff --git a/python/knot_resolver_manager/datamodel/types/types.py b/python/knot_resolver_manager/manager/datamodel/types/types.py
index d9a0b910..1d0199b7 100644
--- a/python/knot_resolver_manager/datamodel/types/types.py
+++ b/python/knot_resolver_manager/manager/datamodel/types/types.py
@@ -2,7 +2,7 @@ import ipaddress
import re
from typing import Any, Dict, Optional, Type, Union
-from knot_resolver_manager.datamodel.types.base_types import (
+from knot_resolver_manager.manager.datamodel.types.base_types import (
IntRangeBase,
PatternBase,
StrBase,
diff --git a/python/knot_resolver_manager/datamodel/view_schema.py b/python/knot_resolver_manager/manager/datamodel/view_schema.py
index ad44eb3b..166306df 100644
--- a/python/knot_resolver_manager/datamodel/view_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/view_schema.py
@@ -2,7 +2,7 @@ from typing import List, Optional
from typing_extensions import Literal
-from knot_resolver_manager.datamodel.types import IDPattern, IPNetwork
+from knot_resolver_manager.manager.datamodel.types import IDPattern, IPNetwork
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/datamodel/webmgmt_schema.py b/python/knot_resolver_manager/manager/datamodel/webmgmt_schema.py
index 2e75c3b7..54a561f3 100644
--- a/python/knot_resolver_manager/datamodel/webmgmt_schema.py
+++ b/python/knot_resolver_manager/manager/datamodel/webmgmt_schema.py
@@ -1,6 +1,6 @@
from typing import Optional
-from knot_resolver_manager.datamodel.types import WritableFilePath, InterfacePort, ReadableFile
+from knot_resolver_manager.manager.datamodel.types import WritableFilePath, InterfacePort, ReadableFile
from knot_resolver_manager.utils.modeling import ConfigSchema
diff --git a/python/knot_resolver_manager/exceptions.py b/python/knot_resolver_manager/manager/exceptions.py
index 5b05d98e..5b05d98e 100644
--- a/python/knot_resolver_manager/exceptions.py
+++ b/python/knot_resolver_manager/manager/exceptions.py
diff --git a/python/knot_resolver_manager/kres_manager.py b/python/knot_resolver_manager/manager/kres_manager.py
index f916dfaa..78459bd2 100644
--- a/python/knot_resolver_manager/kres_manager.py
+++ b/python/knot_resolver_manager/manager/kres_manager.py
@@ -7,20 +7,24 @@ from subprocess import SubprocessError
from typing import Any, Callable, List, Optional
from knot_resolver_manager.compat.asyncio import create_task
-from knot_resolver_manager.config_store import ConfigStore, only_on_real_changes_update, only_on_real_changes_verifier
-from knot_resolver_manager.constants import (
+from knot_resolver_manager.manager.config_store import (
+ ConfigStore,
+ only_on_real_changes_update,
+ only_on_real_changes_verifier,
+)
+from knot_resolver_manager.manager.constants import (
FIX_COUNTER_DECREASE_INTERVAL_SEC,
MANAGER_FIX_ATTEMPT_MAX_COUNTER,
WATCHDOG_INTERVAL,
)
-from knot_resolver_manager.exceptions import SubprocessControllerException
-from knot_resolver_manager.kresd_controller.interface import (
+from knot_resolver_manager.manager.exceptions import SubprocessControllerException
+from knot_resolver_manager.controller.interface import (
Subprocess,
SubprocessController,
SubprocessStatus,
SubprocessType,
)
-from knot_resolver_manager.kresd_controller.registered_workers import (
+from knot_resolver_manager.controller.registered_workers import (
command_registered_workers,
get_registered_workers_kresids,
)
diff --git a/python/knot_resolver_manager/log.py b/python/knot_resolver_manager/manager/log.py
index 19271c52..95043f89 100644
--- a/python/knot_resolver_manager/log.py
+++ b/python/knot_resolver_manager/manager/log.py
@@ -4,10 +4,10 @@ import os
import sys
from typing import Optional
-from knot_resolver_manager.config_store import ConfigStore, only_on_real_changes_update
-from knot_resolver_manager.constants import STARTUP_LOG_LEVEL
-from knot_resolver_manager.datamodel.config_schema import KresConfig
-from knot_resolver_manager.datamodel.logging_schema import LogTargetEnum
+from knot_resolver_manager.manager.config_store import ConfigStore, only_on_real_changes_update
+from knot_resolver_manager.manager.constants import STARTUP_LOG_LEVEL
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
+from knot_resolver_manager.manager.datamodel.logging_schema import LogTargetEnum
logger = logging.getLogger(__name__)
diff --git a/python/knot_resolver_manager/main.py b/python/knot_resolver_manager/manager/main.py
index 9428c880..2240c1aa 100644
--- a/python/knot_resolver_manager/main.py
+++ b/python/knot_resolver_manager/manager/main.py
@@ -10,9 +10,9 @@ from pathlib import Path
from typing import NoReturn
from knot_resolver_manager import compat
-from knot_resolver_manager.constants import CONFIG_FILE_ENV_VAR, DEFAULT_MANAGER_CONFIG_FILE
-from knot_resolver_manager.log import logger_startup
-from knot_resolver_manager.server import start_server
+from knot_resolver_manager.manager.constants import CONFIG_FILE_ENV_VAR, DEFAULT_MANAGER_CONFIG_FILE
+from knot_resolver_manager.manager.log import logger_startup
+from knot_resolver_manager.manager.server import start_server
def parse_args() -> argparse.Namespace:
diff --git a/python/knot_resolver_manager/server.py b/python/knot_resolver_manager/manager/server.py
index b27cadb3..9570f536 100644
--- a/python/knot_resolver_manager/server.py
+++ b/python/knot_resolver_manager/manager/server.py
@@ -19,17 +19,17 @@ from aiohttp.web_runner import AppRunner, TCPSite, UnixSite
from typing_extensions import Literal
import knot_resolver_manager.utils.custom_atexit as atexit
-from knot_resolver_manager import log, statistics
+from knot_resolver_manager.manager import log, statistics
from knot_resolver_manager.compat import asyncio as asyncio_compat
-from knot_resolver_manager.config_store import ConfigStore
-from knot_resolver_manager.constants import DEFAULT_MANAGER_CONFIG_FILE, PID_FILE_NAME, init_user_constants
-from knot_resolver_manager.datamodel.cache_schema import CacheClearRPCSchema
-from knot_resolver_manager.datamodel.config_schema import KresConfig, get_rundir_without_validation
-from knot_resolver_manager.datamodel.globals import Context, set_global_validation_context
-from knot_resolver_manager.datamodel.management_schema import ManagementSchema
-from knot_resolver_manager.exceptions import CancelStartupExecInsteadException, KresManagerException
-from knot_resolver_manager.kresd_controller import get_best_controller_implementation
-from knot_resolver_manager.kresd_controller.registered_workers import command_single_registered_worker
+from knot_resolver_manager.manager.config_store import ConfigStore
+from knot_resolver_manager.manager.constants import DEFAULT_MANAGER_CONFIG_FILE, PID_FILE_NAME, init_user_constants
+from knot_resolver_manager.manager.datamodel.cache_schema import CacheClearRPCSchema
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig, get_rundir_without_validation
+from knot_resolver_manager.manager.datamodel.globals import Context, set_global_validation_context
+from knot_resolver_manager.manager.datamodel.management_schema import ManagementSchema
+from knot_resolver_manager.manager.exceptions import CancelStartupExecInsteadException, KresManagerException
+from knot_resolver_manager.controller import get_best_controller_implementation
+from knot_resolver_manager.controller.registered_workers import command_single_registered_worker
from knot_resolver_manager.utils import ignore_exceptions_optional
from knot_resolver_manager.utils.async_utils import readfile
from knot_resolver_manager.utils.etag import structural_etag
diff --git a/python/knot_resolver_manager/statistics.py b/python/knot_resolver_manager/manager/statistics.py
index ae9d9811..5aa09b30 100644
--- a/python/knot_resolver_manager/statistics.py
+++ b/python/knot_resolver_manager/manager/statistics.py
@@ -5,9 +5,9 @@ import logging
from typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional, Tuple
from knot_resolver_manager import compat
-from knot_resolver_manager.config_store import ConfigStore, only_on_real_changes_update
-from knot_resolver_manager.datamodel.config_schema import KresConfig
-from knot_resolver_manager.kresd_controller.registered_workers import (
+from knot_resolver_manager.manager.config_store import ConfigStore, only_on_real_changes_update
+from knot_resolver_manager.manager.datamodel.config_schema import KresConfig
+from knot_resolver_manager.controller.registered_workers import (
command_registered_workers,
get_registered_workers_kresids,
)
@@ -15,7 +15,7 @@ from knot_resolver_manager.utils.functional import Result
from knot_resolver_manager.utils.modeling.parsing import DataFormat
if TYPE_CHECKING:
- from knot_resolver_manager.kresd_controller.interface import KresID
+ from knot_resolver_manager.controller.interface import KresID
logger = logging.getLogger(__name__)
diff --git a/python/knot_resolver_manager/utils/modeling/exceptions.py b/python/knot_resolver_manager/utils/modeling/exceptions.py
index c2a28817..b3cc415d 100644
--- a/python/knot_resolver_manager/utils/modeling/exceptions.py
+++ b/python/knot_resolver_manager/utils/modeling/exceptions.py
@@ -1,6 +1,6 @@
from typing import Iterable, List
-from knot_resolver_manager.exceptions import KresManagerException
+from knot_resolver_manager.manager.exceptions import KresManagerException
class DataModelingBaseException(KresManagerException):