A piece of code to communicate from a Python program to XO-Server API.
import json
import aiohttp
import asyncio
from jsonrpc_websocket import Server
async def routine():
#!/bin/bash | |
# Check parameters | |
if [ $# -eq 0 ]; then | |
echo "Login and password are missing (user:password)." | |
exit 1 | |
fi | |
if [ $# -eq 1 ]; then | |
echo "Image name is missing." |
#!/bin/bash | |
# https://github.com/kwk/docker-registry-setup#manual-token-based-workflow-to-list-repositories | |
# https://github.com/mayflower/docker-ls | |
# Check parameters | |
if [ $# -eq 0 ]; then | |
echo "Login and password are missing (user:password)." | |
exit 1 | |
fi |
A piece of code to communicate from a Python program to XO-Server API.
import json
import aiohttp
import asyncio
from jsonrpc_websocket import Server
async def routine():