저장소 목록 항목
저장소 목록 항목 (repository_list_entry)
Docker Hub 네임스페이스 저장소 목록의 각 항목을 나타내는 스키마예요. 저장소의 이름·네임스페이스·설명·카테고리·통계·상태를 담아요.
출처: 문서
본문
저장소 목록 항목 객체의 주요 필드는 다음과 같아요.
name/namespace: 저장소 이름·네임스페이스description: 저장소 설명categories: 카테고리 배열content_types/media_types: 콘텐츠·미디어 타입 배열is_private: 공개 여부date_registered/last_updated/last_modified: 생성·갱신 시각pull_count/star_count: 풀·즐겨찾기 수repository_type: 저장소 타입 (image/plugin)status/status_description: 상태storage_size: 저장 크기 (바이트)affiliation: 사용자와의 관계 (없으면 빈 문자열)
{
"properties": {
"affiliation": {
"description": "User's affiliation with the repository (empty string if no affiliation)",
"example": "",
"type": "string"
},
"categories": {
"description": "Categories associated with this repository",
"example": [],
"items": {
"$ref": "#/components/schemas/category"
},
"type": "array"
},
"content_types": {
"description": "Content types supported by this repository",
"example": [
"plugin"
],
"items": {
"type": "string"
},
"type": "array"
},
"date_registered": {
"description": "ISO 8601 timestamp of when the repository was created",
"example": "2013-06-19T19:07:54Z",
"format": "date-time",
"type": "string"
},
"is_private": {
"description": "Whether the repository is private",
"example": false,
"type": "boolean"
},
"name": {
"description": "Name of the repository",
"example": "hello-world",
"type": "string"
},
"namespace": {
"description": "Namespace (organization or username) that owns the repository",
"example": "docker",
"type": "string"
},
"pull_count": {
"description": "Total number of pulls for this repository",
"example": 50000000,
"minimum": 0,
"type": "integer"
},
"repository_type": {
"description": "Type of repository",
"enum": [
"image",
"plugin",
null
],
"example": "image",
"type": [
"string",
"null"
]
},
"star_count": {
"description": "Number of users who starred this repository",
"example": 1234,
"minimum": 0,
"type": "integer"
},
"status": {
"description": "Repository status code",
"example": 1,
"type": "integer"
},
"status_description": {
"description": "Human-readable repository status",
"enum": [
"active",
"inactive"
],
"example": "active",
"type": "string"
}
},
"type": "object"
}
더 알아보기
- 저장소 목록 응답 (list_repositories_response): 이 항목들이 담기는 목록 응답을 확인해요.
- 카테고리 (category):
categories배열 구조를 살펴봐요.