X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bdc29d3129f6d75aa9ce0a24ffb849a272b06f08..988db9dc5af7e2c06e2a6106d2ce32275e3da7a4:/lib/controller/router/router.go diff --git a/lib/controller/router/router.go b/lib/controller/router/router.go index a87dbca926..d4712558ea 100644 --- a/lib/controller/router/router.go +++ b/lib/controller/router/router.go @@ -244,6 +244,17 @@ func (rtr *router) addRoutes() { return rtr.backend.ContainerSSH(ctx, *opts.(*arvados.ContainerSSHOptions)) }, }, + { + // arvados-client built before commit + // bdc29d3129f6d75aa9ce0a24ffb849a272b06f08 + // used GET with params in headers instead of + // POST form + arvados.APIEndpoint{"GET", "arvados/v1/connect/{uuid}/ssh", ""}, + func() interface{} { return &arvados.ContainerSSHOptions{} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return nil, httpError(http.StatusGone, fmt.Errorf("API endpoint is obsolete -- please upgrade your arvados-client program")) + }, + }, { arvados.EndpointContainerGatewayTunnel, func() interface{} { return &arvados.ContainerGatewayTunnelOptions{} }, @@ -356,6 +367,41 @@ func (rtr *router) addRoutes() { return rtr.backend.LinkDelete(ctx, *opts.(*arvados.DeleteOptions)) }, }, + { + arvados.EndpointLogCreate, + func() interface{} { return &arvados.CreateOptions{} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return rtr.backend.LogCreate(ctx, *opts.(*arvados.CreateOptions)) + }, + }, + { + arvados.EndpointLogUpdate, + func() interface{} { return &arvados.UpdateOptions{} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return rtr.backend.LogUpdate(ctx, *opts.(*arvados.UpdateOptions)) + }, + }, + { + arvados.EndpointLogList, + func() interface{} { return &arvados.ListOptions{Limit: -1} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return rtr.backend.LogList(ctx, *opts.(*arvados.ListOptions)) + }, + }, + { + arvados.EndpointLogGet, + func() interface{} { return &arvados.GetOptions{} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return rtr.backend.LogGet(ctx, *opts.(*arvados.GetOptions)) + }, + }, + { + arvados.EndpointLogDelete, + func() interface{} { return &arvados.DeleteOptions{} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return rtr.backend.LogDelete(ctx, *opts.(*arvados.DeleteOptions)) + }, + }, { arvados.EndpointSpecimenCreate, func() interface{} { return &arvados.CreateOptions{} },