1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
12 "git.curoverse.com/arvados.git/sdk/go/arvados"
16 // -- this file is auto-generated -- do not edit -- edit list.go and run "go generate" instead --
19 func (conn *Conn) ContainerList(ctx context.Context, options arvados.ListOptions) (arvados.ContainerList, error) {
21 var merged arvados.ContainerList
22 err := conn.splitListRequest(ctx, options, func(ctx context.Context, _ string, backend arvados.API, options arvados.ListOptions) ([]string, error) {
23 cl, err := backend.ContainerList(ctx, options)
29 if len(merged.Items) == 0 {
32 merged.Items = append(merged.Items, cl.Items...)
34 uuids := make([]string, 0, len(cl.Items))
35 for _, item := range cl.Items {
36 uuids = append(uuids, item.UUID)
40 sort.Slice(merged.Items, func(i, j int) bool { return merged.Items[i].UUID < merged.Items[j].UUID })
44 func (conn *Conn) SpecimenList(ctx context.Context, options arvados.ListOptions) (arvados.SpecimenList, error) {
46 var merged arvados.SpecimenList
47 err := conn.splitListRequest(ctx, options, func(ctx context.Context, _ string, backend arvados.API, options arvados.ListOptions) ([]string, error) {
48 cl, err := backend.SpecimenList(ctx, options)
54 if len(merged.Items) == 0 {
57 merged.Items = append(merged.Items, cl.Items...)
59 uuids := make([]string, 0, len(cl.Items))
60 for _, item := range cl.Items {
61 uuids = append(uuids, item.UUID)
65 sort.Slice(merged.Items, func(i, j int) bool { return merged.Items[i].UUID < merged.Items[j].UUID })