repository

package
v1.12.0-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeRepositoryName

func ChangeRepositoryName(doer *models.User, repo *models.Repository, newRepoName string) error

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

func PushCreateRepo(authUser, owner *models.User, repoName string) (*models.Repository, error)

PushCreateRepo creates a repository when a new repository is pushed to an appropriate namespace

func TransferOwnership

func TransferOwnership(doer *models.User, newOwnerName string, repo *models.Repository) error

TransferOwnership transfers all corresponding setting from old user to new one.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL