Merge branch '16981-logincluster-sync-groups-tests'
[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 var Command cmd.Handler = service.Command(arvados.ServiceNameController, newHandler)
17
18 func newHandler(_ context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler {
19         return &Handler{Cluster: cluster}
20 }