cloudapi: Pass the RepoRegistry to the cloudapi Server
This commit is contained in:
parent
b8967d53bc
commit
01ba674cac
4 changed files with 16 additions and 6 deletions
|
|
@ -4,18 +4,19 @@ import (
|
|||
"net/http"
|
||||
|
||||
"github.com/osbuild/images/pkg/distrofactory"
|
||||
"github.com/osbuild/osbuild-composer/internal/worker"
|
||||
"github.com/osbuild/images/pkg/reporegistry"
|
||||
|
||||
v2 "github.com/osbuild/osbuild-composer/internal/cloudapi/v2"
|
||||
"github.com/osbuild/osbuild-composer/internal/worker"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
v2 *v2.Server
|
||||
}
|
||||
|
||||
func NewServer(workers *worker.Server, distros *distrofactory.Factory, config v2.ServerConfig) *Server {
|
||||
func NewServer(workers *worker.Server, distros *distrofactory.Factory, repos *reporegistry.RepoRegistry, config v2.ServerConfig) *Server {
|
||||
server := &Server{
|
||||
v2: v2.NewServer(workers, distros, config),
|
||||
v2: v2.NewServer(workers, distros, repos, config),
|
||||
}
|
||||
return server
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue