Update.
This commit is contained in:
parent
f35fb12856
commit
7adb71efe5
@ -202,7 +202,20 @@ class RPCView(BaseView):
|
||||
}
|
||||
)
|
||||
return channels
|
||||
|
||||
|
||||
async def write_container(self, channel_uid, content):
|
||||
self._require_login()
|
||||
channel_member = await self.services.channel_member.get(
|
||||
channel_uid=channel_uid, user_uid=self.user_uid
|
||||
)
|
||||
if not channel_member:
|
||||
raise Exception("Not allowed")
|
||||
|
||||
container_name = await self.services.container.get_container_name(channel_uid)
|
||||
await self.services.container.write_stdin(channel_uid, content.encode())
|
||||
|
||||
return "Written to terminal, response of terminal is not implemented yet."
|
||||
|
||||
async def get_container(self, channel_uid):
|
||||
self._require_login()
|
||||
channel_member = await self.services.channel_member.get(
|
||||
|
Loading…
Reference in New Issue
Block a user