validateImageProgress

suspend fun HttpResponse.validateImageProgress(): Result<Unit, ErrorResponse>

Docker can report an operation failure inside a successful NDJSON response.


suspend fun <TAux> HttpResponse.validateImageProgress(auxSerializer: KSerializer<TAux>, onProgress: suspend (ImageProgress<TAux>) -> Unit): Result<Unit, ErrorResponse>