(ctx context.Context, id string)
| 46 | } |
| 47 | |
| 48 | func (r *remoteContainers) Get(ctx context.Context, id string) (containers.Container, error) { |
| 49 | resp, err := r.client.Get(ctx, &containersapi.GetContainerRequest{ |
| 50 | ID: id, |
| 51 | }) |
| 52 | if err != nil { |
| 53 | return containers.Container{}, errgrpc.ToNative(err) |
| 54 | } |
| 55 | |
| 56 | return containerFromProto(resp.Container), nil |
| 57 | } |
| 58 | |
| 59 | func (r *remoteContainers) List(ctx context.Context, filters ...string) ([]containers.Container, error) { |
| 60 | containers, err := r.stream(ctx, filters...) |
nothing calls this directly
no test coverage detected