tag 스키마
tag 스키마
이미지 저장소의 태그(tag)를 나타내는 스키마예요.
출처: 문서
본문
스키마 — tag · 유형: object
creator — 유형: integer — 태그를 푸시한 사용자의 ID.
{
"description": "ID of the user that pushed the tag",
"type": "integer"
}
full_size — 유형: integer — 태그된 이미지의 압축 크기(모든 레이어의 합).
{
"description": "compressed size (sum of all layers) of the tagged image",
"type": "integer"
}
id — 유형: integer — 태그 ID.
{
"description": "tag ID",
"type": "integer"
}
images — 유형: array | null · 배열 항목 스키마: image
{
"items": {
"$ref": "#/components/schemas/image"
},
"type": [
"array",
"null"
]
}
last_updated — 유형: string | null — 마지막 업데이트 시각.
{
"description": "datetime of last update",
"example": "2021-01-05T21:06:53.506400Z",
"type": [
"string",
"null"
]
}
last_updater — 유형: integer — 태그를 마지막으로 업데이트한 사용자의 ID.
{
"description": "ID of the last user that updated the tag",
"type": "integer"
}
last_updater_username — 유형: string — 태그를 업데이트한 사용자의 Hub 사용자 이름.
{
"description": "Hub username of the user that updated the tag",
"type": "string"
}
name — 유형: string — 태그의 이름.
{
"description": "name of the tag",
"type": "string"
}
repository — 유형: integer — 저장소 ID.
{
"description": "repository ID",
"type": "integer"
}
tag_last_pulled — 유형: string | null — 마지막 풀 시각.
{
"description": "datetime of last pull",
"example": "2021-01-05T21:06:53.506400Z",
"type": [
"string",
"null"
]
}
tag_last_pushed — 유형: string | null — 마지막 푸시 시각.
{
"description": "datetime of last push",
"example": "2021-01-05T21:06:53.506400Z",
"type": [
"string",
"null"
]
}
tag_status — 유형: string — 지난 한 달 동안 태그가 푸시되거나 풀렸는지 여부.
{
"description": "whether a tag has been pushed to or pulled in the past month",
"enum": [
"active",
"inactive"
],
"type": "string"
}
v2 — 유형: boolean — 태그가 Registry V2 형식을 사용하는지 여부.
{
"description": "Whether the tag uses the Registry V2 format.",
"type": "boolean"
}
전체 스키마:
{
"examples": [
{
"creator": 1234,
"full_size": 123456,
"id": 12345,
"images": [
{
"architecture": "amd64",
"features": null,
"last_pulled": null,
"last_pushed": "2021-01-05T21:06:53.506400Z",
"os": "linux",
"os_features": null,
"os_version": null,
"size": 123456,
"status": "active",
"variant": null
}
],
"last_updated": "2021-01-05T21:06:53.506400Z",
"last_updater": 1234,
"last_updater_username": "dockeruser",
"name": "latest",
"repository": 5678,
"tag_last_pulled": null,
"tag_last_pushed": "2021-01-05T21:06:53.506400Z",
"tag_status": "active",
"v2": true
}
],
"properties": {
"creator": {
"description": "ID of the user that pushed the tag",
"type": "integer"
},
"full_size": {
"description": "compressed size (sum of all layers) of the tagged image",
"type": "integer"
},
"id": {
"description": "tag ID",
"type": "integer"
},
"images": {
"items": {
"$ref": "#/components/schemas/image"
},
"type": [
"array",
"null"
]
},
"last_updated": {
"description": "datetime of last update",
"example": "2021-01-05T21:06:53.506400Z",
"type": [
"string",
"null"
]
},
"last_updater": {
"description": "ID of the last user that updated the tag",
"type": "integer"
},
"last_updater_username": {
"description": "Hub username of the user that updated the tag",
"type": "string"
},
"name": {
"description": "name of the tag",
"type": "string"
},
"repository": {
"description": "repository ID",
"type": "integer"
},
"tag_last_pulled": {
"description": "datetime of last pull",
"example": "2021-01-05T21:06:53.506400Z",
"type": [
"string",
"null"
]
},
"tag_last_pushed": {
"description": "datetime of last push",
"example": "2021-01-05T21:06:53.506400Z",
"type": [
"string",
"null"
]
},
"tag_status": {
"description": "whether a tag has been pushed to or pulled in the past month",
"enum": [
"active",
"inactive"
],
"type": "string"
},
"v2": {
"description": "Whether the tag uses the Registry V2 format.",
"type": "boolean"
}
},
"type": "object"
}