Files
cluster/controller/registry.go
2025-11-09 15:19:11 +08:00

15 lines
308 B
Go

package controller
import (
"gitea.loveuer.com/loveuer/cluster/internal/database"
)
// ListImages 返回所有仓库列表
func ListImages() ([]database.Repository, error) {
var repos []database.Repository
if err := database.DB.Find(&repos).Error; err != nil {
return nil, err
}
return repos, nil
}