Create container.py

This commit is contained in:
Namhyeon Go 2024-03-06 15:46:45 +09:00 committed by GitHub
parent a606a1bcb0
commit 2ef54e851a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
plugins/container.py Normal file
View File

@ -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