mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-08 10:51:14 +00:00
20 lines
468 B
Python
20 lines
468 B
Python
import docker
|
|
|
|
class Container(Extension):
|
|
def __init__(self):
|
|
self.type = "rpcmethod"
|
|
self.method = "container_request"
|
|
self.exported_methods = ["container_run", "container_stop"]
|
|
|
|
def dispatch(self, type, id, params, conn):
|
|
print ("[*] Greeting!")
|
|
pass
|
|
|
|
def container_run(self, type, id, params, conn):
|
|
# todo
|
|
pass
|
|
|
|
def container_stop(self, type, id, params, conn):
|
|
# todo
|
|
pass
|