{ "swagger": "2.0", "info": { "title": "CNB OPENAPI", "contact": { "name": "Open API Support", "url": "https://docs.cnb.cool/", "email": "cnb@tencent.com" }, "version": "1.0" }, "paths": { "/{registry}": { "delete": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "删除制品库。Delete the registry.", "operationId": "DeleteRegistry", "parameters": [ { "type": "string", "description": "制品库路径。Registry path.", "name": "registry", "in": "path", "required": true }, { "type": "string", "description": "微信身份验证票据,首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.", "name": "x-cnb-identity-ticket", "in": "header" } ], "responses": { "200": { "description": "OK" } }, "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-delete:rw" } }, "/{registry}/-/settings/set_visibility": { "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "改变制品仓库可见性。Update visibility of registry.", "operationId": "SetRegistryVisibility", "parameters": [ { "type": "string", "description": "制品库路径。Registry path.", "name": "registry", "in": "path", "required": true }, { "enum": [ "Private", "Public" ], "type": "string", "description": "可见性。Visibility", "name": "visibility", "in": "query", "required": true } ], "responses": { "200": { "description": "OK" } }, "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-manage:rw" } }, "/{slug}/-/packages": { "get": { "security": [ { "BearerAuth": [] } ], "description": "制品首页\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r", "consumes": [ "application/json" ], "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "查询制品列表。 List all packages.", "operationId": "ListPackages", "parameters": [ { "type": "string", "description": "资源路径。Slug.", "name": "slug", "in": "path", "required": true }, { "enum": [ "all", "docker", "helm", "docker-model", "maven", "npm", "ohpm", "pypi", "nuget", "composer", "conan" ], "type": "string", "description": "制品类型。Type.", "name": "type", "in": "query", "required": true }, { "type": "integer", "default": 1, "description": "页码。Pagination page number.", "name": "page", "in": "query" }, { "type": "integer", "default": 10, "description": "页数。Pagination page size", "name": "page_size", "in": "query" }, { "enum": [ "pull_count", "last_push_at", "name_ascend", "name_descend" ], "type": "string", "description": "顺序类型。Ordering type", "name": "ordering", "in": "query" }, { "type": "string", "description": "关键字。Key word to search package name", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/dto.Package" } } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/die.WebError" } } } } }, "/{slug}/-/packages/{type}/{name}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "制品详情页\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r", "consumes": [ "application/json" ], "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "获取指定制品的详细信息。 Get the package detail.", "operationId": "GetPackage", "parameters": [ { "type": "string", "description": "资源路径。Slug.", "name": "slug", "in": "path", "required": true }, { "enum": [ "docker", "helm", "docker-model", "maven", "npm", "ohpm", "pypi", "nuget", "composer", "conan", "cargo" ], "type": "string", "description": "制品类型。Type", "name": "type", "in": "path", "required": true }, { "type": "string", "description": "制品名称。Name", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PackageDetail" } } } }, "delete": { "security": [ { "BearerAuth": [] } ], "description": "制品详情页-删除制品\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package-delete:rw", "consumes": [ "application/json" ], "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "删除制品。 Delete the specific package.", "operationId": "DeletePackage", "parameters": [ { "type": "string", "description": "资源路径。 Slug.", "name": "slug", "in": "path", "required": true }, { "enum": [ "docker", "helm", "docker-model", "maven", "npm", "ohpm", "pypi", "nuget", "composer", "conan" ], "type": "string", "description": "制品类型。Type.", "name": "type", "in": "path", "required": true }, { "type": "string", "description": "制品名称。Package name.", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" } } } }, "/{slug}/-/packages/{type}/{name}/-/tag/{tag}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "制品详情页-版本详情\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r", "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "获取制品标签详情。 Get the specific tag under specific package.", "operationId": "GetPackageTagDetail", "parameters": [ { "type": "string", "description": "Slug", "name": "slug", "in": "path", "required": true }, { "enum": [ "docker", "helm", "docker-model", "maven", "npm", "ohpm", "pypi", "nuget", "composer", "conan" ], "type": "string", "description": "Type", "name": "type", "in": "path", "required": true }, { "type": "string", "description": "Name", "name": "name", "in": "path", "required": true }, { "type": "string", "description": "Tag", "name": "tag", "in": "path", "required": true }, { "type": "string", "description": "摘要", "name": "sha256", "in": "query" }, { "type": "string", "description": "架构,docker制品必需,例: linux/amd64/v3。required for docker artifacts", "name": "arch", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.TagDetail" } } } }, "delete": { "security": [ { "BearerAuth": [] } ], "description": "制品详情页-版本详情-删除标签\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package-delete:rw", "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "删除制品标签。 Delete the specific tag under specific package", "operationId": "DeletePackageTag", "parameters": [ { "type": "string", "description": "Slug", "name": "slug", "in": "path", "required": true }, { "enum": [ "docker", "helm", "docker-model", "maven", "npm", "ohpm", "pypi", "nuget", "composer", "conan" ], "type": "string", "description": "Type", "name": "type", "in": "path", "required": true }, { "type": "string", "description": "Name", "name": "name", "in": "path", "required": true }, { "type": "string", "description": "Tag", "name": "tag", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" } } } }, "/{slug}/-/packages/{type}/{name}/-/tags": { "get": { "security": [ { "BearerAuth": [] } ], "description": "制品详情页-版本列表\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r", "consumes": [ "application/json" ], "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "查询制品标签列表。 List all tags under specific package.", "operationId": "ListPackageTags", "parameters": [ { "type": "string", "description": "资源路径。Slug.", "name": "slug", "in": "path", "required": true }, { "enum": [ "docker", "helm", "docker-model", "maven", "npm", "ohpm", "pypi", "nuget", "composer", "conan" ], "type": "string", "description": "制品类型。Type.", "name": "type", "in": "path", "required": true }, { "type": "string", "description": "制品名称。Package name.", "name": "name", "in": "path", "required": true }, { "type": "integer", "default": 1, "description": "页码。Pagination page number.", "name": "page", "in": "query" }, { "type": "integer", "default": 10, "description": "页数。Pagination page size.", "name": "page_size", "in": "query" }, { "enum": [ "pull_count", "last_push_at" ], "type": "string", "description": "顺序。Ordering type.", "name": "ordering", "in": "query" }, { "type": "string", "description": "关键词。Key word.", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.Tag" } } } } }, "/{slug}/-/registries": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/vnd.cnb.api+json" ], "tags": [ "Registries" ], "summary": "查询组织下面用户有权限查看到的制品仓库。Query all registries that the user has permission to see under specific organization.", "operationId": "GetGroupSubRegistries", "parameters": [ { "type": "string", "description": "组织 slug", "name": "slug", "in": "path", "required": true }, { "type": "integer", "format": "int64", "default": 1, "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "format": "int64", "default": 10, "description": "每页数量", "name": "page_size", "in": "query" }, { "enum": [ "npm", "maven", "ohpm" ], "type": "string", "description": "制品仓库类型", "name": "registry_type", "in": "query" }, { "enum": [ "private", "public" ], "type": "string", "description": "制品仓库可见性类型", "name": "filter_type", "in": "query" }, { "enum": [ "created_at", "name" ], "type": "string", "description": "排序类型,默认created_at", "name": "order_by", "in": "query" }, { "type": "boolean", "default": false, "description": "排序顺序", "name": "desc", "in": "query" }, { "enum": [ "all", "sub", "grand" ], "type": "string", "description": "查全部/查询直接属于当前组织的仓库/查询子组织的制品仓库", "name": "descendant", "in": "query" }, { "type": "string", "description": "搜索关键字", "name": "search", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/dto.Registry4User" } } } }, "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r" } } }, "definitions": { "dto.Package": { "type": "object", "properties": { "count": { "type": "integer" }, "description": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" } }, "last_artifact_name": { "type": "string" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "name": { "type": "string" }, "package": { "type": "string" }, "package_type": { "$ref": "#/definitions/dto.PackageType" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" } } }, "die.WebError": { "type": "object", "properties": { "errcode": { "type": "integer" }, "errmsg": { "type": "string" }, "errparam": { "type": "object", "additionalProperties": {} } } }, "dto.PackageDetail": { "type": "object", "properties": { "cargo": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" }, "composer": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" }, "conan": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" }, "docker": { "$ref": "#/definitions/dto.ContainerPackageDetail" }, "docker_model": { "$ref": "#/definitions/dto.DockerModelPackageDetail" }, "helm": { "$ref": "#/definitions/dto.ChartPackageDetail" }, "maven": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" }, "npm": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" }, "nuget": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" }, "ohpm": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" }, "pypi": { "$ref": "#/definitions/dto.CommonRegistryPackageDetail" } } }, "dto.TagDetail": { "type": "object", "properties": { "cargo": { "$ref": "#/definitions/dto.CommonRegistryTagDetail" }, "composer": { "$ref": "#/definitions/dto.CommonRegistryTagDetail" }, "conan": { "$ref": "#/definitions/dto.ConanRegistryTagDetail" }, "docker": { "$ref": "#/definitions/dto.ContainerTagDetail" }, "docker_model": { "$ref": "#/definitions/dto.DockerModelTagDetail" }, "helm": { "$ref": "#/definitions/dto.ChartTagDetail" }, "maven": { "$ref": "#/definitions/dto.CommonRegistryTagDetail" }, "npm": { "$ref": "#/definitions/dto.CommonRegistryTagDetail" }, "nuget": { "$ref": "#/definitions/dto.CommonRegistryTagDetail" }, "ohpm": { "$ref": "#/definitions/dto.CommonRegistryTagDetail" }, "pypi": { "$ref": "#/definitions/dto.PyPIRegistryTagDetail" } } }, "dto.Tag": { "type": "object", "properties": { "cargo": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } }, "composer": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } }, "conan": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } }, "docker": { "type": "array", "items": { "$ref": "#/definitions/dto.ContainerTag" } }, "docker_model": { "type": "array", "items": { "$ref": "#/definitions/dto.DockerModelTag" } }, "helm": { "type": "array", "items": { "$ref": "#/definitions/dto.ChartTag" } }, "maven": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } }, "npm": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } }, "nuget": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } }, "ohpm": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } }, "package": { "type": "string" }, "pypi": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } } } }, "dto.Registry4User": { "type": "object", "properties": { "access": { "allOf": [ { "$ref": "#/definitions/constant.AccessRole" } ], "readOnly": true }, "artifact_policy": { "type": "string", "default": "all", "enum": [ "all", "snapshot", "release" ] }, "created_at": { "type": "string" }, "description": { "type": "string" }, "freeze": { "type": "boolean", "readOnly": true }, "id": { "type": "string" }, "kind": { "type": "string" }, "last_push_time": { "type": "string" }, "last_push_user": { "$ref": "#/definitions/dto.Users" }, "name": { "type": "string" }, "overwrite_policy": { "type": "string", "default": "forbid", "enum": [ "forbid", "allow" ] }, "path": { "type": "string" }, "pinned": { "type": "boolean" }, "pinned_time": { "type": "string" }, "pkg_count": { "type": "integer", "readOnly": true }, "star_time": { "type": "string" }, "stared": { "type": "boolean" }, "updated_at": { "type": "string" }, "used_size": { "type": "integer", "readOnly": true }, "visibility_level": { "$ref": "#/definitions/constant.Visibility" } } }, "dto.LastPusher": { "type": "object", "properties": { "is_frozen": { "type": "boolean" }, "is_lock": { "type": "boolean" }, "name": { "type": "string" }, "nickname": { "type": "string" }, "push_at": { "type": "string" } } }, "dto.PackageType": { "type": "string", "enum": [ "all", "docker", "helm", "docker-model", "npm", "maven", "ohpm", "pypi", "composer", "nuget", "conan", "cargo" ], "x-enum-comments": { "PackageTypeArtifactory": "PackageTypeArtifactory 仓库下的制品", "PackageTypeCargo": "PackageTypeCargo cargo 制品", "PackageTypeComposer": "PackageTypeComposer composer 制品", "PackageTypeConan": "PackageTypeConan conan 制品", "PackageTypeDocker": "PackageTypeDocker 容器制品,由 container 兼容", "PackageTypeDockerModel": "PackageTypeDockerModel docker model 制品", "PackageTypeHelm": "PackageTypeHelm helm chart 制品,由 chart 兼容", "PackageTypeMaven": "PackageTypeMaven maven 制品", "PackageTypeNpm": "PackageTypeNpm npm 制品", "PackageTypeNuget": "PackageTypeNuget nuget 制品", "PackageTypeOhpm": "PackageTypeOhpm ohpm 制品", "PackageTypePypi": "PackageTypePypi pypi 制品" }, "x-enum-descriptions": [ "PackageTypeArtifactory 仓库下的制品", "PackageTypeDocker 容器制品,由 container 兼容", "PackageTypeHelm helm chart 制品,由 chart 兼容", "PackageTypeDockerModel docker model 制品", "PackageTypeNpm npm 制品", "PackageTypeMaven maven 制品", "PackageTypeOhpm ohpm 制品", "PackageTypePypi pypi 制品", "PackageTypeComposer composer 制品", "PackageTypeNuget nuget 制品", "PackageTypeConan conan 制品", "PackageTypeCargo cargo 制品" ], "x-enum-varnames": [ "PackageTypeArtifactory", "PackageTypeDocker", "PackageTypeHelm", "PackageTypeDockerModel", "PackageTypeNpm", "PackageTypeMaven", "PackageTypeOhpm", "PackageTypePypi", "PackageTypeComposer", "PackageTypeNuget", "PackageTypeConan", "PackageTypeCargo" ] }, "dto.CommonRegistryPackageDetail": { "type": "object", "properties": { "address": { "type": "string" }, "desc": { "type": "string" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "slug": { "type": "string" }, "tag_total": { "type": "integer" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } } } }, "dto.ContainerPackageDetail": { "type": "object", "properties": { "address": { "type": "string" }, "desc": { "type": "string" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "slug": { "type": "string" }, "tag_total": { "type": "integer" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/dto.ContainerTag" } } } }, "dto.DockerModelPackageDetail": { "type": "object", "properties": { "address": { "type": "string" }, "desc": { "type": "string" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "slug": { "type": "string" }, "tag_total": { "type": "integer" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/dto.DockerModelTag" } } } }, "dto.ChartPackageDetail": { "type": "object", "properties": { "address": { "type": "string" }, "desc": { "type": "string" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "slug": { "type": "string" }, "tag_total": { "type": "integer" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/dto.ChartTag" } } } }, "dto.CommonRegistryTagDetail": { "type": "object", "properties": { "address": { "type": "string" }, "dependencies": { "type": "array", "items": { "$ref": "#/definitions/dto.Dependency" } }, "desc": { "type": "string" }, "files": { "type": "array", "items": { "$ref": "#/definitions/dto.File" } }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "metadata": { "$ref": "#/definitions/dto.MetaData" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "size": { "type": "integer" }, "slug": { "type": "string" }, "status": { "type": "string" }, "tag": { "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } } } }, "dto.ConanRegistryTagDetail": { "type": "object", "properties": { "address": { "type": "string" }, "dependencies": { "type": "array", "items": { "$ref": "#/definitions/dto.Dependency" } }, "desc": { "type": "string" }, "files": { "type": "array", "items": { "$ref": "#/definitions/dto.File" } }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "metadata": { "$ref": "#/definitions/dto.ConanMetaData" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "size": { "type": "integer" }, "slug": { "type": "string" }, "status": { "type": "string" }, "tag": { "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } } } }, "dto.ContainerTagDetail": { "type": "object", "properties": { "address": { "type": "string" }, "annotations": { "$ref": "#/definitions/dto.ContainerAnnotation" }, "image": { "$ref": "#/definitions/dto.ContainerImage" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "matches_requested_arch": { "description": "返回的结果是否和提供的架构匹配", "type": "boolean" }, "options": { "type": "array", "items": { "$ref": "#/definitions/dto.ContainerImage" } }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "slug": { "type": "string" }, "tag": { "type": "string" }, "type": { "type": "string" } } }, "dto.DockerModelTagDetail": { "type": "object", "properties": { "address": { "type": "string" }, "docker_model_config": { "$ref": "#/definitions/dto.DockerModelConfig" }, "docker_model_descriptor": { "$ref": "#/definitions/dto.DockerModelDescriptor" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "size": { "type": "integer" }, "slug": { "type": "string" }, "tag": { "type": "string" } } }, "dto.ChartTagDetail": { "type": "object", "properties": { "address": { "type": "string" }, "is_deprecated": { "type": "boolean" }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "metadata": { "$ref": "#/definitions/chart.Metadata" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "size": { "type": "integer" }, "slug": { "type": "string" }, "tag": { "type": "string" } } }, "dto.PyPIRegistryTagDetail": { "type": "object", "properties": { "address": { "type": "string" }, "dependencies": { "type": "array", "items": { "$ref": "#/definitions/dto.Dependency" } }, "desc": { "type": "string" }, "files": { "type": "array", "items": { "$ref": "#/definitions/dto.File" } }, "last_pusher": { "$ref": "#/definitions/dto.LastPusher" }, "metadata": { "$ref": "#/definitions/dto.PyPIMetaData" }, "package": { "type": "string" }, "pull_count": { "type": "integer" }, "recent_pull_count": { "type": "integer" }, "size": { "type": "integer" }, "slug": { "type": "string" }, "status": { "type": "string" }, "tag": { "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/dto.CommonRegistryTag" } } } }, "dto.Users": { "type": "object", "properties": { "avatar": { "type": "string" }, "created_at": { "type": "string" }, "email": { "type": "string" }, "freeze": { "type": "boolean" }, "id": { "type": "string" }, "locked": { "type": "boolean" }, "nickname": { "type": "string" }, "type": { "$ref": "#/definitions/constant.UserType" }, "username": { "type": "string" }, "verified": { "description": "认证类型", "type": "integer" }, "verified_expire_in": { "description": "认证过期时间", "type": "string" } } }, "constant.Visibility": { "type": "string", "enum": [ "Private", "Public", "Secret" ], "x-enum-comments": { "VisibilityPrivate": "VisibilityPrivate 私有仓库 - 仓库的访问必须显式授予每个用户", "VisibilityPublic": "VisibilityPublic 公共仓库 - 可以不经任何身份验证克隆该项目", "VisibilitySecret": "VisibilitySecret 加密仓库 - 仓库特定角色身份才能读取解密" }, "x-enum-descriptions": [ "VisibilityPrivate 私有仓库 - 仓库的访问必须显式授予每个用户", "VisibilityPublic 公共仓库 - 可以不经任何身份验证克隆该项目", "VisibilitySecret 加密仓库 - 仓库特定角色身份才能读取解密" ], "x-enum-varnames": [ "VisibilityPrivate", "VisibilityPublic", "VisibilitySecret" ] }, "dto.MetaData": { "type": "object", "properties": { "author": { "type": "string" }, "home_page": { "type": "string" }, "license_url": { "type": "string" }, "package_name": { "type": "string" }, "package_tag": { "type": "string" }, "package_type": { "type": "string" }, "readme": { "type": "string" }, "repository_url": { "type": "string" } } }, "dto.ConanMetaData": { "type": "object", "properties": { "author": { "type": "string" }, "conan_packages": { "description": "conan 的 package 列表", "type": "array", "items": { "$ref": "#/definitions/dto.ConanPackage" } }, "conan_recipe_revision": { "description": "conan recipe 的 revision, conan 制品专用字段", "type": "string" }, "conan_reference": { "type": "string" }, "home_page": { "type": "string" }, "license_url": { "type": "string" }, "package_name": { "type": "string" }, "package_tag": { "type": "string" }, "package_type": { "type": "string" }, "readme": { "type": "string" }, "repository_url": { "type": "string" } } }, "dto.ContainerAnnotation": { "type": "object", "properties": { "revision": { "type": "string" }, "sn": { "type": "string" }, "version": { "type": "string" } } }, "dto.ContainerImage": { "type": "object", "properties": { "arch": { "type": "string" }, "digest": { "type": "string" }, "layers": { "type": "array", "items": { "$ref": "#/definitions/dto.ContainerImageLayer" } }, "os": { "type": "string" }, "size": { "type": "integer" } } }, "dto.DockerModelConfig": { "type": "object", "properties": { "architecture": { "type": "string" }, "format": { "description": "Format the packaging format of the model file(s), currently the only supported value is gguf.", "type": "string" }, "format_version": { "description": "FormatVersion the version of the format", "type": "string" }, "gguf": { "$ref": "#/definitions/dto.GGUF" }, "parameters": { "type": "string" }, "quantization": { "type": "string" }, "size": { "type": "string" } } }, "dto.DockerModelDescriptor": { "type": "object", "properties": { "created": { "type": "string" } } }, "chart.Metadata": { "type": "object", "properties": { "annotations": { "description": "Annotations are additional mappings uninterpreted by Helm,\nmade available for inspection by other applications.", "type": "object", "additionalProperties": { "type": "string" } }, "apiVersion": { "description": "The API Version of this chart. Required.", "type": "string" }, "appVersion": { "description": "The version of the application enclosed inside of this chart.", "type": "string" }, "condition": { "description": "The condition to check to enable chart", "type": "string" }, "dependencies": { "description": "Dependencies are a list of dependencies for a chart.", "type": "array", "items": { "$ref": "#/definitions/chart.Dependency" } }, "deprecated": { "description": "Whether or not this chart is deprecated", "type": "boolean" }, "description": { "description": "A one-sentence description of the chart", "type": "string" }, "home": { "description": "The URL to a relevant project page, git repo, or contact person", "type": "string" }, "icon": { "description": "The URL to an icon file.", "type": "string" }, "keywords": { "description": "A list of string keywords", "type": "array", "items": { "type": "string" } }, "kubeVersion": { "description": "KubeVersion is a SemVer constraint specifying the version of Kubernetes required.", "type": "string" }, "maintainers": { "description": "A list of name and URL/email address combinations for the maintainer(s)", "type": "array", "items": { "$ref": "#/definitions/chart.Maintainer" } }, "name": { "description": "The name of the chart. Required.", "type": "string" }, "sources": { "description": "Source is the URL to the source code of this chart", "type": "array", "items": { "type": "string" } }, "tags": { "description": "The tags to check to enable chart", "type": "string" }, "type": { "description": "Specifies the chart type: application or library", "type": "string" }, "version": { "description": "A SemVer 2 conformant version string of the chart. Required.", "type": "string" } } }, "dto.PyPIMetaData": { "type": "object", "properties": { "author": { "type": "string" }, "home_page": { "type": "string" }, "license_url": { "type": "string" }, "minimum_stability": { "type": "string" }, "package_name": { "type": "string" }, "package_tag": { "type": "string" }, "package_type": { "type": "string" }, "readme": { "type": "string" }, "repository_url": { "type": "string" } } }, "constant.UserType": { "type": "integer", "format": "int32", "enum": [ 0, 1, 2, 3, 4 ], "x-enum-comments": { "IoaUser": "IoaUser ioa 用户", "OauthUser": "OauthUser oauth 授权用户", "RobotUser": "RobotUser 助手用户", "TestUser": "TestUser 测试用户", "WeChatUser": "WeChatUser 微信用户" }, "x-enum-descriptions": [ "WeChatUser 微信用户", "OauthUser oauth 授权用户", "TestUser 测试用户", "RobotUser 助手用户", "IoaUser ioa 用户" ], "x-enum-varnames": [ "WeChatUser", "OauthUser", "TestUser", "RobotUser", "IoaUser" ] }, "dto.GGUF": { "type": "object", "additionalProperties": true } } }