278 lines
6.1 KiB
XML

{
"id":"mirror_source_tbl",
"widgettype":"Tabular",
"options":{
"width":"100%",
"height":"100%",
"title":"镜像源",
"css":"card",
"editable":{
"new_data_url":"{{entire_url('add_mirror_source.dspy')}}",
"delete_data_url":"{{entire_url('delete_mirror_source.dspy')}}",
"update_data_url":"{{entire_url('update_mirror_source.dspy')}}"
},
"data_url":"{{entire_url('./get_mirror_source.dspy')}}",
"data_method":"GET",
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
"row_options":{
"browserfields": {
"name": {
"title": "名称",
"width": 150
},
"source_type": {
"title": "类型",
"width": 120
},
"registry_url": {
"title": "Registry URL",
"width": 250
},
"region": {
"title": "区域",
"width": 60
},
"priority": {
"title": "优先级",
"width": 60
},
"is_default": {
"title": "默认",
"width": 60
},
"status": {
"title": "状态",
"width": 80
}
},
"editexclouded":[
"id",
"resellerid",
"auth_password",
"health_check_at",
"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": "name",
"title": "镜像源名称",
"type": "str",
"length": 128,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "镜像源名称"
},
{
"name": "source_type",
"title": "类型(public_mirror/private_registry/hub)",
"type": "char",
"length": 32,
"nullable": "no",
"label": "类型(public_mirror/private_registry/hub)",
"uitype": "code",
"valueField": "source_type",
"textField": "source_type_text",
"params": {
"dbname": "{{get_module_dbname('image_mgr')}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
"valueField": "source_type",
"textField": "source_type_text",
"cond": "parentid='mirror_source_type'"
},
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
},
{
"name": "registry_url",
"title": "Registry URL",
"type": "str",
"length": 512,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "Registry URL"
},
{
"name": "upstream_url",
"title": "上游源地址(如docker.io)",
"type": "str",
"length": 512,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "上游源地址(如docker.io)"
},
{
"name": "region",
"title": "区域(cn/us/eu)",
"type": "char",
"length": 8,
"default": "cn",
"label": "区域(cn/us/eu)",
"uitype": "code",
"valueField": "region",
"textField": "region_text",
"params": {
"dbname": "{{get_module_dbname('image_mgr')}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
"valueField": "region",
"textField": "region_text",
"cond": "parentid='mirror_region'"
},
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
},
{
"name": "auth_user",
"title": "认证用户名",
"type": "str",
"length": 128,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "认证用户名"
},
{
"name": "auth_password",
"title": "认证密码(加密)",
"type": "str",
"length": 256,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "认证密码(加密)"
},
{
"name": "is_default",
"title": "是否默认源",
"type": "int",
"default": 0,
"length": 0,
"uitype": "int",
"datatype": "int",
"label": "是否默认源"
},
{
"name": "priority",
"title": "优先级(越小越高)",
"type": "int",
"default": 100,
"length": 0,
"uitype": "int",
"datatype": "int",
"label": "优先级(越小越高)"
},
{
"name": "status",
"title": "状态(active/inactive/error)",
"type": "char",
"length": 16,
"default": "active",
"label": "状态(active/inactive/error)",
"uitype": "code",
"valueField": "status",
"textField": "status_text",
"params": {
"dbname": "{{get_module_dbname('image_mgr')}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
"valueField": "status",
"textField": "status_text",
"cond": "parentid='mirror_status'"
},
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
},
{
"name": "health_check_at",
"title": "最后健康检查",
"type": "timestamp",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"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":[]
}