From 2ef54e851a649d49a4f3073c19252ebb9a5b7208 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 6 Mar 2024 15:46:45 +0900 Subject: [PATCH] Create container.py --- plugins/container.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plugins/container.py diff --git a/plugins/container.py b/plugins/container.py new file mode 100644 index 0000000..cd8752e --- /dev/null +++ b/plugins/container.py @@ -0,0 +1,17 @@ +import docker + +class Container(Extension): + def __init__(self): + self.type = "rpcmethod" + self.methods = ["container_run", "container_stop"] + + def dispatch(self, type, id, params, conn): + pass + + def container_run(self, type, id, params, conn): + # todo + pass + + def container_stop(self, type, id, params, conn): + # todo + pass