} | } | ||||
// APIFormat converts a Repository to api.Repository | // APIFormat converts a Repository to api.Repository | ||||
// Arguments that are allowed to be nil: permission | |||||
func (repo *Repository) APIFormat(mode AccessMode) *api.Repository { | func (repo *Repository) APIFormat(mode AccessMode) *api.Repository { | ||||
cloneLink := repo.CloneLink() | cloneLink := repo.CloneLink() | ||||
permission := &api.Permission{ | permission := &api.Permission{ |