19840: Test listing saved images with names containing port numbers.
[arvados.git] / lib / controller / cmd.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package controller
6
7 import (
8         "context"
9
10         "git.arvados.org/arvados.git/lib/cmd"
11         "git.arvados.org/arvados.git/lib/service"
12         "git.arvados.org/arvados.git/sdk/go/arvados"
13         "github.com/prometheus/client_golang/prometheus"
14 )
15
16 // Command starts a controller service. See cmd/arvados-server/cmd.go
17 var Command cmd.Handler = service.Command(arvados.ServiceNameController, newHandler)
18
19 func newHandler(ctx context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler {
20         return &Handler{Cluster: cluster, BackgroundContext: ctx}
21 }