Add gitservers to backend

This commit is contained in:
2026-05-02 17:37:36 +02:00
parent 38d2083d06
commit 76e3454c4c
6 changed files with 311 additions and 0 deletions
@@ -0,0 +1,16 @@
package repository
import (
"errors"
"quay/app/models"
)
var ErrGitServerAlreadyExists = errors.New("gitserver already exists")
type GitServerRepository interface {
ListGitServers() ([]models.GitServer, error)
GetGitServer(id string) (*models.GitServer, error)
CreateGitServer(gs *models.GitServer) error
UpdateGitServer(gs *models.GitServer) error
DeleteGitServer(id string) error
}