code.gitea.io/gitea@v1.19.3/modules/structs/repo_collaborator.go (about) 1 // Copyright 2016 The Gogs Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package structs 5 6 // AddCollaboratorOption options when adding a user as a collaborator of a repository 7 type AddCollaboratorOption struct { 8 Permission *string `json:"permission"` 9 } 10 11 // RepoCollaboratorPermission to get repository permission for a collaborator 12 type RepoCollaboratorPermission struct { 13 Permission string `json:"permission"` 14 RoleName string `json:"role_name"` 15 User *User `json:"user"` 16 }