317 lines
7.2 KiB
XML
317 lines
7.2 KiB
XML
|
|
{
|
|
"id":"container_image_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"容器镜像",
|
|
|
|
|
|
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_container_image.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_container_image.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_container_image.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_container_image.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"image_name": {
|
|
"title": "镜像名",
|
|
"width": 200
|
|
},
|
|
"image_tag": {
|
|
"title": "标签",
|
|
"width": 120
|
|
},
|
|
"registry_id": {
|
|
"title": "仓库",
|
|
"width": 120
|
|
},
|
|
"image_type": {
|
|
"title": "类型",
|
|
"width": 80
|
|
},
|
|
"size_bytes": {
|
|
"title": "大小",
|
|
"width": 80
|
|
},
|
|
"sync_status": {
|
|
"title": "同步",
|
|
"width": 80
|
|
},
|
|
"is_customer": {
|
|
"title": "客户镜像",
|
|
"width": 80
|
|
}
|
|
},
|
|
|
|
|
|
"editexclouded":[
|
|
"id",
|
|
"resellerid",
|
|
"digest",
|
|
"source_image",
|
|
"sync_log",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "id"
|
|
},
|
|
{
|
|
"name": "resellerid",
|
|
"title": "商户机构id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "商户机构id"
|
|
},
|
|
{
|
|
"name": "registry_id",
|
|
"title": "所属仓库",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"label": "所属仓库",
|
|
"uitype": "code",
|
|
"valueField": "registry_id",
|
|
"textField": "registry_id_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('image_mgr')}}",
|
|
"table": "image_registry",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "registry_id",
|
|
"textField": "registry_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "mirror_id",
|
|
"title": "来源镜像源",
|
|
"type": "str",
|
|
"length": 32,
|
|
"label": "来源镜像源",
|
|
"uitype": "code",
|
|
"valueField": "mirror_id",
|
|
"textField": "mirror_id_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('image_mgr')}}",
|
|
"table": "mirror_source",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "mirror_id",
|
|
"textField": "mirror_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "image_name",
|
|
"title": "镜像名(namespace/repo)",
|
|
"type": "str",
|
|
"length": 256,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "镜像名(namespace/repo)"
|
|
},
|
|
{
|
|
"name": "image_tag",
|
|
"title": "标签",
|
|
"type": "str",
|
|
"length": 128,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "标签"
|
|
},
|
|
{
|
|
"name": "full_name",
|
|
"title": "完整名称(name:tag)",
|
|
"type": "str",
|
|
"length": 512,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "完整名称(name:tag)"
|
|
},
|
|
{
|
|
"name": "source_image",
|
|
"title": "源镜像地址",
|
|
"type": "str",
|
|
"length": 512,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "源镜像地址"
|
|
},
|
|
{
|
|
"name": "size_bytes",
|
|
"title": "镜像大小(字节)",
|
|
"type": "long",
|
|
"default": 0,
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "long",
|
|
"label": "镜像大小(字节)"
|
|
},
|
|
{
|
|
"name": "digest",
|
|
"title": "镜像摘要(sha256)",
|
|
"type": "str",
|
|
"length": 256,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "镜像摘要(sha256)"
|
|
},
|
|
{
|
|
"name": "image_type",
|
|
"title": "类型(vm/base/app/custom)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"default": "custom",
|
|
"label": "类型(vm/base/app/custom)",
|
|
"uitype": "code",
|
|
"valueField": "image_type",
|
|
"textField": "image_type_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('image_mgr')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "image_type",
|
|
"textField": "image_type_text",
|
|
"cond": "parentid='image_type'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"type": "str",
|
|
"length": 512,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "描述"
|
|
},
|
|
{
|
|
"name": "is_customer",
|
|
"title": "是否客户自定义镜像",
|
|
"type": "int",
|
|
"default": 0,
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "是否客户自定义镜像"
|
|
},
|
|
{
|
|
"name": "customer_id",
|
|
"title": "客户ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "客户ID"
|
|
},
|
|
{
|
|
"name": "sync_status",
|
|
"title": "同步状态(pending/syncing/synced/failed)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"default": "pending",
|
|
"label": "同步状态(pending/syncing/synced/failed)",
|
|
"uitype": "code",
|
|
"valueField": "sync_status",
|
|
"textField": "sync_status_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('image_mgr')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "sync_status",
|
|
"textField": "sync_status_text",
|
|
"cond": "parentid='sync_status'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "sync_log",
|
|
"title": "同步日志",
|
|
"type": "text",
|
|
"length": 0,
|
|
"uitype": "text",
|
|
"datatype": "text",
|
|
"label": "同步日志"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "更新时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[]
|
|
|
|
} |