WithImageClient sets the image service to use using an images client.
(imageService imagesapi.ImagesClient)
| 70 | |
| 71 | // WithImageClient sets the image service to use using an images client. |
| 72 | func WithImageClient(imageService imagesapi.ImagesClient) ServicesOpt { |
| 73 | return func(s *services) { |
| 74 | s.imageStore = NewImageStoreFromClient(imageService) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // WithImageStore sets the image store. |
| 79 | func WithImageStore(imageStore images.Store) ServicesOpt { |
no test coverage detected
searching dependent graphs…