public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/Dockerfiles/dockerapi/main.py
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
main.py
on main
Author
Date
Commit
Line
Code
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 1
import os
import os
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 2
import sys
import sys
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 3
import uvicorn
import uvicorn
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 4
import json
import json
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 5
import uuid
import uuid
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 6
import async_timeout
import async_timeout
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 7
import asyncio
import asyncio
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 8
import aiodocker
import aiodocker
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 9
import docker
import docker
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 10
import logging
import logging
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 11
from logging.config import dictConfig
from logging.config import dictConfig
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 12
from fastapi import FastAPI, Response, Request
from fastapi import FastAPI, Response, Request
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 13
from modules.DockerApi import DockerApi
from modules.DockerApi import DockerApi
DerLinkman
over 2 years ago
333b7eb
Fix Alpine 3.19 dependencies
- Full commit hash
333b7ebc0cadfedbf2393eddac4ebc79cae6b187- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 14
from redis import asyncio as aioredis
from redis import asyncio as aioredis
DerLinkman
over 2 years ago
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 15
from contextlib import asynccontextmanager
from contextlib import asynccontextmanager
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 16
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 17
dockerapi = None
dockerapi = None
DerLinkman
over 2 years ago
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 18
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 19
@asynccontextmanager
@asynccontextmanager
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 20
async def lifespan(app: FastAPI):
async def lifespan(app: FastAPI):
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 21
global dockerapi
global dockerapi
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 22
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 23
# Initialize a custom logger
# Initialize a custom logger
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 24
logger = logging.getLogger("dockerapi")
logger = logging.getLogger("dockerapi")
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 25
logger.setLevel(logging.INFO)
logger.setLevel(logging.INFO)
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 26
# Configure the logger to output logs to the terminal
# Configure the logger to output logs to the terminal
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 27
handler = logging.StreamHandler()
handler = logging.StreamHandler()
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 28
handler.setLevel(logging.INFO)
handler.setLevel(logging.INFO)
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 29
formatter = logging.Formatter("%(levelname)s: %(message)s")
formatter = logging.Formatter("%(levelname)s: %(message)s")
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 30
handler.setFormatter(formatter)
handler.setFormatter(formatter)
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 31
logger.addHandler(handler)
logger.addHandler(handler)
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 32
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 33
logger.info("Init APP")
logger.info("Init APP")
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 34
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 35
# Init redis client
# Init redis client
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 36
if os.environ['REDIS_SLAVEOF_IP'] != "":
if os.environ['REDIS_SLAVEOF_IP'] != "":
FreddleSpl0it
over 1 year ago
89fb132
Enable password protection for Redis
- Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582- Author
- FreddleSpl0it <[email protected]>
- Date
- over 1 year ago
- Selected line
- 37
redis_client = redis = await aioredis.from_url(f"redis://{os.environ['REDIS_SLAVEOF_IP']}:{os.environ['REDIS_SLAVEOF_PORT']}/0", password=os.environ['REDISPASS'])
redis_client = redis = await aioredis.from_url(f"redis://{os.environ['REDIS_SLAVEOF_IP']}:{os.environ['REDIS_SLAVEOF_PORT']}/0", password=os.environ['REDISPASS'])
DerLinkman
over 2 years ago
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 38
else:
else:
FreddleSpl0it
over 1 year ago
89fb132
Enable password protection for Redis
- Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582- Author
- FreddleSpl0it <[email protected]>
- Date
- over 1 year ago
- Selected line
- 39
redis_client = redis = await aioredis.from_url("redis://redis-mailcow:6379/0", password=os.environ['REDISPASS'])
redis_client = redis = await aioredis.from_url("redis://redis-mailcow:6379/0", password=os.environ['REDISPASS'])
DerLinkman
over 2 years ago
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 40
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 41
# Init docker clients
# Init docker clients
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 42
sync_docker_client = docker.DockerClient(base_url='unix://var/run/docker.sock', version='auto')
sync_docker_client = docker.DockerClient(base_url='unix://var/run/docker.sock', version='auto')
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 43
async_docker_client = aiodocker.Docker(url='unix:///var/run/docker.sock')
async_docker_client = aiodocker.Docker(url='unix:///var/run/docker.sock')
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 44
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 45
dockerapi = DockerApi(redis_client, sync_docker_client, async_docker_client, logger)
dockerapi = DockerApi(redis_client, sync_docker_client, async_docker_client, logger)
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 46
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 47
logger.info("Subscribe to redis channel")
logger.info("Subscribe to redis channel")
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 48
# Subscribe to redis channel
# Subscribe to redis channel
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 49
dockerapi.pubsub = redis.pubsub()
dockerapi.pubsub = redis.pubsub()
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 50
await dockerapi.pubsub.subscribe("MC_CHANNEL")
await dockerapi.pubsub.subscribe("MC_CHANNEL")
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 51
asyncio.create_task(handle_pubsub_messages(dockerapi.pubsub))
asyncio.create_task(handle_pubsub_messages(dockerapi.pubsub))
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 52
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 53
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 54
yield
yield
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 55
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 56
# Close docker connections
# Close docker connections
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 57
dockerapi.sync_docker_client.close()
dockerapi.sync_docker_client.close()
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 58
await dockerapi.async_docker_client.close()
await dockerapi.async_docker_client.close()
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 59
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 60
# Close redis
# Close redis
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 61
await dockerapi.pubsub.unsubscribe("MC_CHANNEL")
await dockerapi.pubsub.unsubscribe("MC_CHANNEL")
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 62
await dockerapi.redis_client.close()
await dockerapi.redis_client.close()
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 63
same change
25007b1
dockerapi: implemented lifespan function
- Full commit hash
25007b19633a3ae121981206854fb3dc1e9e86a8- Author
- DerLinkman <[email protected]>
- Date
- over 2 years ago
- Selected line
- 64
app = FastAPI(lifespan=lifespan)
app = FastAPI(lifespan=lifespan)
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 65
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 66
# Define Routes
# Define Routes
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 67
@app.get("/host/stats")
@app.get("/host/stats")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 68
async def get_host_update_stats():
async def get_host_update_stats():
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 69
global dockerapi
global dockerapi
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 70
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 71
if dockerapi.host_stats_isUpdating == False:
if dockerapi.host_stats_isUpdating == False:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 72
asyncio.create_task(dockerapi.get_host_stats())
asyncio.create_task(dockerapi.get_host_stats())
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 73
dockerapi.host_stats_isUpdating = True
dockerapi.host_stats_isUpdating = True
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 74
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 75
while True:
while True:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 76
if await dockerapi.redis_client.exists('host_stats'):
if await dockerapi.redis_client.exists('host_stats'):
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 77
break
break
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 78
await asyncio.sleep(1.5)
await asyncio.sleep(1.5)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 79
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 80
stats = json.loads(await dockerapi.redis_client.get('host_stats'))
stats = json.loads(await dockerapi.redis_client.get('host_stats'))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 81
return Response(content=json.dumps(stats, indent=4), media_type="application/json")
return Response(content=json.dumps(stats, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 82
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 83
@app.get("/containers/{container_id}/json")
@app.get("/containers/{container_id}/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 84
async def get_container(container_id : str):
async def get_container(container_id : str):
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 85
global dockerapi
global dockerapi
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 86
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 87
if container_id and container_id.isalnum():
if container_id and container_id.isalnum():
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 88
try:
try:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 89
for container in (await dockerapi.async_docker_client.containers.list()):
for container in (await dockerapi.async_docker_client.containers.list()):
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 90
if container._id == container_id:
if container._id == container_id:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 91
container_info = await container.show()
container_info = await container.show()
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 92
return Response(content=json.dumps(container_info, indent=4), media_type="application/json")
return Response(content=json.dumps(container_info, indent=4), media_type="application/json")
FreddleSpl0it
almost 2 years ago
be5a181
[Web][DockerApi] migrate imap acl on mbox rename
- Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea- Author
- FreddleSpl0it <[email protected]>
- Date
- almost 2 years ago
- Selected line
- 93
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 94
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 95
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 96
"msg": "no container found"
"msg": "no container found"
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 97
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 98
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 99
except Exception as e:
except Exception as e:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 100
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 101
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 102
"msg": str(e)
"msg": str(e)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 103
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 104
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 105
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 106
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 107
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 108
"msg": "no or invalid id defined"
"msg": "no or invalid id defined"
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 109
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 110
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 111
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 112
@app.get("/containers/json")
@app.get("/containers/json")
Jérémie Crinon
5 months ago
99dc0f6
fix: show stopped and failed containers in dashboard and API
- Full commit hash
99dc0f6616dec4ff629898721d2db663e6bf66fa- Author
- Jérémie Crinon <[email protected]>
- Date
- 5 months ago
- Selected line
- 113
async def get_containers(all: bool = False):
async def get_containers(all: bool = False):
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 114
global dockerapi
global dockerapi
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 115
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 116
containers = {}
containers = {}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 117
try:
try:
Jérémie Crinon
5 months ago
99dc0f6
fix: show stopped and failed containers in dashboard and API
- Full commit hash
99dc0f6616dec4ff629898721d2db663e6bf66fa- Author
- Jérémie Crinon <[email protected]>
- Date
- 5 months ago
- Selected line
- 118
for container in (await dockerapi.async_docker_client.containers.list(all=all)):
for container in (await dockerapi.async_docker_client.containers.list(all=all)):
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 119
container_info = await container.show()
container_info = await container.show()
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 120
containers.update({container_info['Id']: container_info})
containers.update({container_info['Id']: container_info})
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 121
return Response(content=json.dumps(containers, indent=4), media_type="application/json")
return Response(content=json.dumps(containers, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 122
except Exception as e:
except Exception as e:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 123
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 124
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 125
"msg": str(e)
"msg": str(e)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 126
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 127
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 128
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 129
@app.post("/containers/{container_id}/{post_action}")
@app.post("/containers/{container_id}/{post_action}")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 130
async def post_containers(container_id : str, post_action : str, request: Request):
async def post_containers(container_id : str, post_action : str, request: Request):
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 131
global dockerapi
global dockerapi
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 132
FreddleSpl0it
almost 2 years ago
be5a181
[Web][DockerApi] migrate imap acl on mbox rename
- Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea- Author
- FreddleSpl0it <[email protected]>
- Date
- almost 2 years ago
- Selected line
- 133
try:
try:
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 134
request_json = await request.json()
request_json = await request.json()
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 135
except Exception as err:
except Exception as err:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 136
request_json = {}
request_json = {}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 137
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 138
if container_id and container_id.isalnum() and post_action:
if container_id and container_id.isalnum() and post_action:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 139
try:
try:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 140
"""Dispatch container_post api call"""
"""Dispatch container_post api call"""
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 141
if post_action == 'exec':
if post_action == 'exec':
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 142
if not request_json or not 'cmd' in request_json:
if not request_json or not 'cmd' in request_json:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 143
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 144
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 145
"msg": "cmd is missing"
"msg": "cmd is missing"
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 146
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 147
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 148
if not request_json or not 'task' in request_json:
if not request_json or not 'task' in request_json:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 149
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 150
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 151
"msg": "task is missing"
"msg": "task is missing"
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 152
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 153
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 154
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 155
api_call_method_name = '__'.join(['container_post', str(post_action), str(request_json['cmd']), str(request_json['task']) ])
api_call_method_name = '__'.join(['container_post', str(post_action), str(request_json['cmd']), str(request_json['task']) ])
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 156
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 157
api_call_method_name = '__'.join(['container_post', str(post_action) ])
api_call_method_name = '__'.join(['container_post', str(post_action) ])
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 158
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 159
api_call_method = getattr(dockerapi, api_call_method_name, lambda container_id: Response(content=json.dumps({'type': 'danger', 'msg':'container_post - unknown api call' }, indent=4), media_type="application/json"))
api_call_method = getattr(dockerapi, api_call_method_name, lambda container_id: Response(content=json.dumps({'type': 'danger', 'msg':'container_post - unknown api call' }, indent=4), media_type="application/json"))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 160
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 161
dockerapi.logger.info("api call: %s, container_id: %s" % (api_call_method_name, container_id))
dockerapi.logger.info("api call: %s, container_id: %s" % (api_call_method_name, container_id))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 162
return api_call_method(request_json, container_id=container_id)
return api_call_method(request_json, container_id=container_id)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 163
except Exception as e:
except Exception as e:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 164
dockerapi.logger.error("error - container_post: %s" % str(e))
dockerapi.logger.error("error - container_post: %s" % str(e))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 165
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 166
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 167
"msg": str(e)
"msg": str(e)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 168
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 169
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 170
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 171
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 172
res = {
res = {
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 173
"type": "danger",
"type": "danger",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 174
"msg": "invalid container id or missing action"
"msg": "invalid container id or missing action"
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 175
}
}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 176
return Response(content=json.dumps(res, indent=4), media_type="application/json")
return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 177
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 178
@app.post("/container/{container_id}/stats/update")
@app.post("/container/{container_id}/stats/update")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 179
async def post_container_update_stats(container_id : str):
async def post_container_update_stats(container_id : str):
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 180
global dockerapi
global dockerapi
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 181
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 182
# start update task for container if no task is running
# start update task for container if no task is running
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 183
if container_id not in dockerapi.containerIds_to_update:
if container_id not in dockerapi.containerIds_to_update:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 184
asyncio.create_task(dockerapi.get_container_stats(container_id))
asyncio.create_task(dockerapi.get_container_stats(container_id))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 185
dockerapi.containerIds_to_update.append(container_id)
dockerapi.containerIds_to_update.append(container_id)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 186
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 187
while True:
while True:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 188
if await dockerapi.redis_client.exists(container_id + '_stats'):
if await dockerapi.redis_client.exists(container_id + '_stats'):
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 189
break
break
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 190
await asyncio.sleep(1.5)
await asyncio.sleep(1.5)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 191
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 192
stats = json.loads(await dockerapi.redis_client.get(container_id + '_stats'))
stats = json.loads(await dockerapi.redis_client.get(container_id + '_stats'))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 193
return Response(content=json.dumps(stats, indent=4), media_type="application/json")
return Response(content=json.dumps(stats, indent=4), media_type="application/json")
FreddleSpl0it
almost 2 years ago
be5a181
[Web][DockerApi] migrate imap acl on mbox rename
- Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea- Author
- FreddleSpl0it <[email protected]>
- Date
- almost 2 years ago
- Selected line
- 194
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 195
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 196
# PubSub Handler
# PubSub Handler
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 197
async def handle_pubsub_messages(channel: aioredis.client.PubSub):
async def handle_pubsub_messages(channel: aioredis.client.PubSub):
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 198
global dockerapi
global dockerapi
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 199
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 200
while True:
while True:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 201
try:
try:
Michael Stilkerich
almost 3 years ago
533bd36
Fix CPU load of dockerapi container
- Full commit hash
533bd36572dc0e6476425717499f1c2248160ec4- Author
- Michael Stilkerich <[email protected]>
- Date
- almost 3 years ago
- Selected line
- 202
async with async_timeout.timeout(60):
async with async_timeout.timeout(60):
same change
533bd36
Fix CPU load of dockerapi container
- Full commit hash
533bd36572dc0e6476425717499f1c2248160ec4- Author
- Michael Stilkerich <[email protected]>
- Date
- almost 3 years ago
- Selected line
- 203
message = await channel.get_message(ignore_subscribe_messages=True, timeout=30)
message = await channel.get_message(ignore_subscribe_messages=True, timeout=30)
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 204
if message is not None:
if message is not None:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 205
# Parse message
# Parse message
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 206
data_json = json.loads(message['data'].decode('utf-8'))
data_json = json.loads(message['data'].decode('utf-8'))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 207
dockerapi.logger.info(f"PubSub Received - {json.dumps(data_json)}")
dockerapi.logger.info(f"PubSub Received - {json.dumps(data_json)}")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 208
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 209
# Handle api_call
# Handle api_call
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 210
if 'api_call' in data_json:
if 'api_call' in data_json:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 211
# api_call: container_post
# api_call: container_post
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 212
if data_json['api_call'] == "container_post":
if data_json['api_call'] == "container_post":
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 213
if 'post_action' in data_json and 'container_name' in data_json:
if 'post_action' in data_json and 'container_name' in data_json:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 214
try:
try:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 215
"""Dispatch container_post api call"""
"""Dispatch container_post api call"""
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 216
request_json = {}
request_json = {}
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 217
if data_json['post_action'] == 'exec':
if data_json['post_action'] == 'exec':
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 218
if 'request' in data_json:
if 'request' in data_json:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 219
request_json = data_json['request']
request_json = data_json['request']
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 220
if 'cmd' in request_json:
if 'cmd' in request_json:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 221
if 'task' in request_json:
if 'task' in request_json:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 222
api_call_method_name = '__'.join(['container_post', str(data_json['post_action']), str(request_json['cmd']), str(request_json['task']) ])
api_call_method_name = '__'.join(['container_post', str(data_json['post_action']), str(request_json['cmd']), str(request_json['task']) ])
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 223
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 224
dockerapi.logger.error("api call: task missing")
dockerapi.logger.error("api call: task missing")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 225
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 226
dockerapi.logger.error("api call: cmd missing")
dockerapi.logger.error("api call: cmd missing")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 227
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 228
dockerapi.logger.error("api call: request missing")
dockerapi.logger.error("api call: request missing")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 229
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 230
api_call_method_name = '__'.join(['container_post', str(data_json['post_action'])])
api_call_method_name = '__'.join(['container_post', str(data_json['post_action'])])
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 231
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 232
if api_call_method_name:
if api_call_method_name:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 233
api_call_method = getattr(dockerapi, api_call_method_name)
api_call_method = getattr(dockerapi, api_call_method_name)
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 234
if api_call_method:
if api_call_method:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 235
dockerapi.logger.info("api call: %s, container_name: %s" % (api_call_method_name, data_json['container_name']))
dockerapi.logger.info("api call: %s, container_name: %s" % (api_call_method_name, data_json['container_name']))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 236
api_call_method(request_json, container_name=data_json['container_name'])
api_call_method(request_json, container_name=data_json['container_name'])
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 237
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 238
dockerapi.logger.error("api call not found: %s, container_name: %s" % (api_call_method_name, data_json['container_name']))
dockerapi.logger.error("api call not found: %s, container_name: %s" % (api_call_method_name, data_json['container_name']))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 239
except Exception as e:
except Exception as e:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 240
dockerapi.logger.error("container_post: %s" % str(e))
dockerapi.logger.error("container_post: %s" % str(e))
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 241
else:
else:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 242
dockerapi.logger.error("api call: missing container_name, post_action or request")
dockerapi.logger.error("api call: missing container_name, post_action or request")
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 243
else:
else:
Marvin A. Ruder
over 1 year ago
05fc4f7
fix(ui): Swap translations for oversized dropdown
- Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320- Author
- Marvin A. Ruder <[email protected]>
- Date
- over 1 year ago
- Selected line
- 244
dockerapi.logger.error("Unknown PubSub received - %s" % json.dumps(data_json))
dockerapi.logger.error("Unknown PubSub received - %s" % json.dumps(data_json))
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 245
else:
else:
Marvin A. Ruder
over 1 year ago
05fc4f7
fix(ui): Swap translations for oversized dropdown
- Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320- Author
- Marvin A. Ruder <[email protected]>
- Date
- over 1 year ago
- Selected line
- 246
dockerapi.logger.error("Unknown PubSub received - %s" % json.dumps(data_json))
dockerapi.logger.error("Unknown PubSub received - %s" % json.dumps(data_json))
FreddleSpl0it
almost 2 years ago
be5a181
[Web][DockerApi] migrate imap acl on mbox rename
- Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea- Author
- FreddleSpl0it <[email protected]>
- Date
- almost 2 years ago
- Selected line
- 247
Michael Stilkerich
almost 3 years ago
930473a
Set asyncio timeout to 0 for yielding
- Full commit hash
930473a980051ef1931ae5c4f57bedb24d56745e- Author
- Michael Stilkerich <[email protected]>
- Date
- almost 3 years ago
- Selected line
- 248
await asyncio.sleep(0.0)
await asyncio.sleep(0.0)
FreddleSpl0it
about 3 years ago
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 249
except asyncio.TimeoutError:
except asyncio.TimeoutError:
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 250
pass
pass
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 251
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 252
if __name__ == '__main__':
if __name__ == '__main__':
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 253
uvicorn.run(
uvicorn.run(
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 254
app,
app,
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 255
host="0.0.0.0",
host="0.0.0.0",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 256
port=443,
port=443,
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 257
ssl_certfile="/app/dockerapi_cert.pem",
ssl_certfile="/app/dockerapi_cert.pem",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 258
ssl_keyfile="/app/dockerapi_key.pem",
ssl_keyfile="/app/dockerapi_key.pem",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 259
log_level="info",
log_level="info",
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 260
loop="none"
loop="none"
same change
06cce79
[Dockerapi] add pubsub handler for broadcasting in ha setup
- Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe- Author
- FreddleSpl0it <[email protected]>
- Date
- about 3 years ago
- Selected line
- 261
)
)