Update oci manager

This commit is contained in:
MacRimi
2026-03-16 17:46:34 +01:00
parent f74d336072
commit b6780ba876
3 changed files with 205 additions and 27 deletions

View File

@@ -80,6 +80,29 @@ def get_app_definition(app_id: str):
}), 500
@oci_bp.route("/storages", methods=["GET"])
@require_auth
def get_storages():
"""
Get list of available storages for LXC rootfs.
Returns:
List of storages with capacity info and recommendations.
"""
try:
storages = oci_manager.get_available_storages()
return jsonify({
"success": True,
"storages": storages
})
except Exception as e:
logger.error(f"Failed to get storages: {e}")
return jsonify({
"success": False,
"message": str(e)
}), 500
@oci_bp.route("/catalog/<app_id>/schema", methods=["GET"])
@require_auth
def get_app_schema(app_id: str):