(ctx context.Context, name string)
| 42 | } |
| 43 | |
| 44 | func (s *remoteImages) Get(ctx context.Context, name string) (images.Image, error) { |
| 45 | resp, err := s.client.Get(ctx, &imagesapi.GetImageRequest{ |
| 46 | Name: name, |
| 47 | }) |
| 48 | if err != nil { |
| 49 | return images.Image{}, errgrpc.ToNative(err) |
| 50 | } |
| 51 | |
| 52 | return imageFromProto(resp.Image), nil |
| 53 | } |
| 54 | |
| 55 | func (s *remoteImages) List(ctx context.Context, filters ...string) ([]images.Image, error) { |
| 56 | resp, err := s.client.List(ctx, &imagesapi.ListImagesRequest{ |
nothing calls this directly
no test coverage detected