ini
authorVincent Dahmen <wahrwolf@wolfpit.net>
Wed, 6 Nov 2019 13:42:57 +0000 (14:42 +0100)
committerVincent Dahmen <wahrwolf@wolfpit.net>
Wed, 6 Nov 2019 13:42:57 +0000 (14:42 +0100)
config/__init__.py [new file with mode: 0644]
config/util.py [new file with mode: 0644]
defaults/__init__.py [new file with mode: 0644]
http_server/__init__.py [new file with mode: 0644]
http_server/server.py [new file with mode: 0644]
systemd/__init__.py [new file with mode: 0644]
systemd/unit.py [new file with mode: 0644]

diff --git a/config/__init__.py b/config/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/config/util.py b/config/util.py
new file mode 100644 (file)
index 0000000..1321b18
--- /dev/null
@@ -0,0 +1,20 @@
+def merge_dicts(dict_a, dict_b):
+    pass
+
+
+def read_runtime_config(path):
+    config = {
+            "port": 8081,
+            "host": "localhost",
+            }
+    return config
+
+
+def load_webhooks(path):
+    webhooks = [
+            {
+                "path": "/example/",
+                "unit": "example.service"
+            }
+        ]
+    return webhooks
diff --git a/defaults/__init__.py b/defaults/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/http_server/__init__.py b/http_server/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/http_server/server.py b/http_server/server.py
new file mode 100644 (file)
index 0000000..1d7e76a
--- /dev/null
@@ -0,0 +1,9 @@
+class Server:
+    def __init__(self, host, port):
+        pass
+
+    def register_hook(self, path, unit):
+        pass
+
+    def restart(self):
+        pass
diff --git a/systemd/__init__.py b/systemd/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/systemd/unit.py b/systemd/unit.py
new file mode 100644 (file)
index 0000000..3107f91
--- /dev/null
@@ -0,0 +1,9 @@
+class Unit:
+    def __init__(self, name):
+        pass
+
+    def start(self):
+        pass
+
+    def stop(self):
+        pass