Documentation ¶
Index ¶
- func ChangeRepositoryName(doer *models.User, repo *models.Repository, newRepoName string) error
- func CreateRepository(doer, owner *models.User, opts models.CreateRepoOptions) (*models.Repository, error)
- func DeleteRepository(doer *models.User, repo *models.Repository) error
- func ForkRepository(doer, u *models.User, oldRepo *models.Repository, name, desc string) (*models.Repository, error)
- func GenerateRepository(doer, owner *models.User, templateRepo *models.Repository, ...) (_ *models.Repository, err error)
- func PushCreateRepo(authUser, owner *models.User, repoName string) (*models.Repository, error)
- func TransferOwnership(doer *models.User, newOwnerName string, repo *models.Repository) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeRepositoryName ¶
ChangeRepositoryName changes all corresponding setting from old repository name to new one.
func CreateRepository ¶
func CreateRepository(doer, owner *models.User, opts models.CreateRepoOptions) (*models.Repository, error)
CreateRepository creates a repository for the user/organization.
func DeleteRepository ¶
func DeleteRepository(doer *models.User, repo *models.Repository) error
DeleteRepository deletes a repository for a user or organization.
func ForkRepository ¶
func ForkRepository(doer, u *models.User, oldRepo *models.Repository, name, desc string) (*models.Repository, error)
ForkRepository forks a repository
func GenerateRepository ¶
func GenerateRepository(doer, owner *models.User, templateRepo *models.Repository, opts models.GenerateRepoOptions) (_ *models.Repository, err error)
GenerateRepository generates a repository from a template
func PushCreateRepo ¶
PushCreateRepo creates a repository when a new repository is pushed to an appropriate namespace
func TransferOwnership ¶
TransferOwnership transfers all corresponding setting from old user to new one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.