| 244 | } |
| 245 | |
| 246 | std::optional<CacheImage> SharedCacheController::GetImageWithName(const std::string &name) const |
| 247 | { |
| 248 | BNSharedCacheImage apiImage; |
| 249 | if (!BNSharedCacheControllerGetImageWithName(m_object, name.c_str(), &apiImage)) |
| 250 | return std::nullopt; |
| 251 | CacheImage image = ImageFromApi(apiImage); |
| 252 | BNSharedCacheFreeImage(apiImage); |
| 253 | return image; |
| 254 | } |
| 255 | |
| 256 | std::vector<std::string> SharedCacheController::GetImageDependencies(const CacheImage &image) const |
| 257 | { |
no test coverage detected