NewImageStoreFromClient returns a new image store client
(client imagesapi.ImagesClient)
| 36 | |
| 37 | // NewImageStoreFromClient returns a new image store client |
| 38 | func NewImageStoreFromClient(client imagesapi.ImagesClient) images.Store { |
| 39 | return &remoteImages{ |
| 40 | client: client, |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func (s *remoteImages) Get(ctx context.Context, name string) (images.Image, error) { |
| 45 | resp, err := s.client.Get(ctx, &imagesapi.GetImageRequest{ |
no outgoing calls
no test coverage detected
searching dependent graphs…