It's deprecated and not used anywhere, let's just drop it. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
26 lines
634 B
Go
26 lines
634 B
Go
package cloudapi
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/osbuild/osbuild-composer/internal/distroregistry"
|
|
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
|
"github.com/osbuild/osbuild-composer/internal/worker"
|
|
|
|
v2 "github.com/osbuild/osbuild-composer/internal/cloudapi/v2"
|
|
)
|
|
|
|
type Server struct {
|
|
v2 *v2.Server
|
|
}
|
|
|
|
func NewServer(workers *worker.Server, rpmMetadata rpmmd.RPMMD, distros *distroregistry.Registry, awsBucket string) *Server {
|
|
server := &Server{
|
|
v2: v2.NewServer(workers, rpmMetadata, distros, awsBucket),
|
|
}
|
|
return server
|
|
}
|
|
|
|
func (server *Server) V2(path string) http.Handler {
|
|
return server.v2.Handler(path)
|
|
}
|