|
testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
|
The result of a deadline-bounded streaming exec (the overload taking a deadline): why output delivery ended, plus the exit code when the command had actually finished by then. More...
#include <testcontainers/ExecResult.hpp>
Public Attributes | |
| FollowEnd | end = FollowEnd::StreamEnded |
| why output delivery ended | |
| std::optional< std::int64_t > | exit_code |
| Exit code, read back from the exec inspect after the stream ended; present only when the inspect says the command had finished (it virtually always has after StreamEnded; after an early stop it is a race). | |
The result of a deadline-bounded streaming exec (the overload taking a deadline): why output delivery ended, plus the exit code when the command had actually finished by then.
Stopping delivery does NOT kill the command — after DeadlineExpired (or a consumer stop mid-run) it keeps running inside the container — so exit_code is empty in those cases.
| FollowEnd testcontainers::ExecStreamResult::end = FollowEnd::StreamEnded |
why output delivery ended
| std::optional<std::int64_t> testcontainers::ExecStreamResult::exit_code |
Exit code, read back from the exec inspect after the stream ended; present only when the inspect says the command had finished (it virtually always has after StreamEnded; after an early stop it is a race).