저장소 권한

저장소 권한 (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"
}

더 알아보기