mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-11-27 18:10:40 +00:00
Create container.py
This commit is contained in:
parent
a606a1bcb0
commit
2ef54e851a
17
plugins/container.py
Normal file
17
plugins/container.py
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user