저장소 권한
저장소 권한 (repo_permissions)
Docker Hub 저장소에 대한 사용자 권한을 나타내는 스키마예요. 읽기·쓰기·관리 권한과 저장소 관리자 여부를 담아요.
출처: 문서
본문
저장소 권한 객체는 사용자가 해당 저장소에 가진 권한을 boolean으로 나타내요. 예를 들어 다음과 같은 필드를 담을 수 있어요.
read: 읽기 권한write: 쓰기 권한admin: 관리 권한is_admin: 저장소 관리자 여부
{
"properties": {
"is_admin": {
"description": "Whether the user is an admin",
"example": true,
"type": "boolean"
},
"read": {
"description": "Whether the user can read",
"example": true,
"type": "boolean"
},
"write": {
"description": "Whether the user can write",
"example": true,
"type": "boolean"
}
},
"type": "object"
}
더 알아보기
- 저장소 정보 (repository_info): 저장소 객체에서 권한이 어떻게 쓰이는지 확인해요.
- 저장소 목록 응답 (list_repositories_response): 저장소 목록 조회 응답을 살펴봐요.