| 115 | |
| 116 | |
| 117 | Option<Error> validateLayout(const string& imagePath) |
| 118 | { |
| 119 | if (!os::stat::isdir(getImageRootfsPath(imagePath))) { |
| 120 | return Error("No rootfs directory found in image layout"); |
| 121 | } |
| 122 | |
| 123 | if (!os::stat::isfile(getImageManifestPath(imagePath))) { |
| 124 | return Error("No manifest found in image layout"); |
| 125 | } |
| 126 | |
| 127 | return None(); |
| 128 | } |
| 129 | |
| 130 | |
| 131 | Option<Error> validate(const string& imagePath) |
no test coverage detected