image_mgr/models/image_registry.json

33 lines
2.1 KiB
JSON

{
"summary": [{
"name": "image_registry",
"title": "镜像仓库",
"primary": ["id"],
"catelog": "entity"
}],
"fields": [
{"name": "id", "title": "id", "type": "str", "length": 32, "nullable": "no"},
{"name": "resellerid", "title": "商户机构id", "type": "str", "length": 32, "nullable": "no"},
{"name": "cluster_id", "title": "所属集群", "type": "str", "length": 32},
{"name": "name", "title": "仓库名称", "type": "str", "length": 128, "nullable": "no"},
{"name": "registry_type", "title": "类型(docker-registry/harbor)", "type": "char", "length": 32, "default": "docker-registry"},
{"name": "endpoint", "title": "访问地址(IP:PORT)", "type": "str", "length": 256},
{"name": "internal_endpoint", "title": "集群内地址", "type": "str", "length": 256},
{"name": "admin_user", "title": "管理员账号", "type": "str", "length": 64},
{"name": "admin_password", "title": "管理员密码(加密)", "type": "str", "length": 256},
{"name": "storage_size", "title": "存储大小(如50Gi)", "type": "str", "length": 16, "default": "50Gi"},
{"name": "storage_class", "title": "StorageClass", "type": "str", "length": 64, "default": "pcc-nfs-sc"},
{"name": "image_count", "title": "镜像数量", "type": "int", "default": 0},
{"name": "total_size_gb", "title": "已用存储GB", "type": "int", "default": 0},
{"name": "status", "title": "状态(deploying/running/failed/destroyed)", "type": "char", "length": 16, "default": "deploying"},
{"name": "deploy_config", "title": "部署配置JSON", "type": "text"},
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no"}
],
"codes": [
{"field": "cluster_id", "table": "cluster", "valuefield": "id", "textfield": "name"},
{"field": "registry_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='registry_type'"},
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='registry_status'"}
]
}