1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
11 "git.curoverse.com/arvados.git/lib/cmd"
12 "git.curoverse.com/arvados.git/lib/service"
13 "git.curoverse.com/arvados.git/sdk/go/arvados"
16 var Command cmd.Handler = service.Command(arvados.ServiceNameDispatchCloud, newHandler)
18 func newHandler(ctx context.Context, cluster *arvados.Cluster, np *arvados.NodeProfile, token string) service.Handler {
19 ac, err := arvados.NewClientFromConfig(cluster)
21 return service.ErrorHandler(ctx, cluster, np, fmt.Errorf("error initializing client from cluster config: %s", err))