X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/691bb7a4b5d2d2f30ce7c6914d6c6789e250658a..f1aec3387f765a3f8a2f3f2c22d3a53fb4f9f1f3:/lib/controller/federation/generated.go diff --git a/lib/controller/federation/generated.go b/lib/controller/federation/generated.go index 49a2e5b751..3ede1f1154 100755 --- a/lib/controller/federation/generated.go +++ b/lib/controller/federation/generated.go @@ -18,6 +18,12 @@ import ( // func (conn *Conn) generated_ContainerList(ctx context.Context, options arvados.ListOptions) (arvados.ContainerList, error) { + if options.ClusterID != "" { + // explicitly selected cluster + options.ForwardedFor = conn.cluster.ClusterID + "-" + options.ForwardedFor + return conn.chooseBackend(options.ClusterID).ContainerList(ctx, options) + } + var mtx sync.Mutex var merged arvados.ContainerList var needSort atomic.Value @@ -59,6 +65,12 @@ func (conn *Conn) generated_ContainerList(ctx context.Context, options arvados.L } func (conn *Conn) generated_ContainerRequestList(ctx context.Context, options arvados.ListOptions) (arvados.ContainerRequestList, error) { + if options.ClusterID != "" { + // explicitly selected cluster + options.ForwardedFor = conn.cluster.ClusterID + "-" + options.ForwardedFor + return conn.chooseBackend(options.ClusterID).ContainerRequestList(ctx, options) + } + var mtx sync.Mutex var merged arvados.ContainerRequestList var needSort atomic.Value @@ -100,6 +112,12 @@ func (conn *Conn) generated_ContainerRequestList(ctx context.Context, options ar } func (conn *Conn) generated_GroupList(ctx context.Context, options arvados.ListOptions) (arvados.GroupList, error) { + if options.ClusterID != "" { + // explicitly selected cluster + options.ForwardedFor = conn.cluster.ClusterID + "-" + options.ForwardedFor + return conn.chooseBackend(options.ClusterID).GroupList(ctx, options) + } + var mtx sync.Mutex var merged arvados.GroupList var needSort atomic.Value @@ -141,6 +159,12 @@ func (conn *Conn) generated_GroupList(ctx context.Context, options arvados.ListO } func (conn *Conn) generated_SpecimenList(ctx context.Context, options arvados.ListOptions) (arvados.SpecimenList, error) { + if options.ClusterID != "" { + // explicitly selected cluster + options.ForwardedFor = conn.cluster.ClusterID + "-" + options.ForwardedFor + return conn.chooseBackend(options.ClusterID).SpecimenList(ctx, options) + } + var mtx sync.Mutex var merged arvados.SpecimenList var needSort atomic.Value @@ -182,6 +206,12 @@ func (conn *Conn) generated_SpecimenList(ctx context.Context, options arvados.Li } func (conn *Conn) generated_UserList(ctx context.Context, options arvados.ListOptions) (arvados.UserList, error) { + if options.ClusterID != "" { + // explicitly selected cluster + options.ForwardedFor = conn.cluster.ClusterID + "-" + options.ForwardedFor + return conn.chooseBackend(options.ClusterID).UserList(ctx, options) + } + var mtx sync.Mutex var merged arvados.UserList var needSort atomic.Value