(ctx context.Context, filters ...string)
| 57 | } |
| 58 | |
| 59 | func (r *remoteContainers) List(ctx context.Context, filters ...string) ([]containers.Container, error) { |
| 60 | containers, err := r.stream(ctx, filters...) |
| 61 | if err != nil { |
| 62 | if err == errStreamNotAvailable { |
| 63 | return r.list(ctx, filters...) |
| 64 | } |
| 65 | return nil, err |
| 66 | } |
| 67 | return containers, nil |
| 68 | } |
| 69 | |
| 70 | func (r *remoteContainers) list(ctx context.Context, filters ...string) ([]containers.Container, error) { |
| 71 | resp, err := r.client.List(ctx, &containersapi.ListContainersRequest{ |