clouadpi: NewServer: move awsBucket parameter to a new ServerConfig struct
We will have more parameters soon so let's make this prettier sooner rather than later. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
2765d2d9a8
commit
9feb7b59d6
4 changed files with 24 additions and 13 deletions
|
|
@ -13,9 +13,9 @@ type Server struct {
|
|||
v2 *v2.Server
|
||||
}
|
||||
|
||||
func NewServer(workers *worker.Server, distros *distroregistry.Registry, awsBucket string) *Server {
|
||||
func NewServer(workers *worker.Server, distros *distroregistry.Registry, config v2.ServerConfig) *Server {
|
||||
server := &Server{
|
||||
v2: v2.NewServer(workers, distros, awsBucket),
|
||||
v2: v2.NewServer(workers, distros, config),
|
||||
}
|
||||
return server
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue