api/cloud: drop v1 API

It's deprecated and not used anywhere, let's just drop it.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-01-04 13:14:48 +01:00 committed by Sanne Raymaekers
parent 8d81da7d7b
commit d967790ea5
6 changed files with 0 additions and 2277 deletions

View file

@ -7,27 +7,20 @@ import (
"github.com/osbuild/osbuild-composer/internal/rpmmd"
"github.com/osbuild/osbuild-composer/internal/worker"
v1 "github.com/osbuild/osbuild-composer/internal/cloudapi/v1"
v2 "github.com/osbuild/osbuild-composer/internal/cloudapi/v2"
)
type Server struct {
v1 *v1.Server
v2 *v2.Server
}
func NewServer(workers *worker.Server, rpmMetadata rpmmd.RPMMD, distros *distroregistry.Registry, awsBucket string) *Server {
server := &Server{
v1: v1.NewServer(workers, rpmMetadata, distros),
v2: v2.NewServer(workers, rpmMetadata, distros, awsBucket),
}
return server
}
func (server *Server) V1(path string) http.Handler {
return server.v1.Handler(path)
}
func (server *Server) V2(path string) http.Handler {
return server.v2.Handler(path)
}