|
testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
|
#include <chrono>#include <cstdint>#include <optional>#include <vector>#include "testcontainers/Container.hpp"#include "testcontainers/ContainerPort.hpp"#include "testcontainers/CopyToContainer.hpp"#include "testcontainers/Lifecycle.hpp"#include "testcontainers/RegistryAuth.hpp"#include "testcontainers/WaitFor.hpp"#include "testcontainers/docker/ContainerSpec.hpp"#include "testcontainers/docker/DockerClient.hpp"Classes | |
| struct | testcontainers::ContainerRequest |
| The complete "what to run" for one container: the Docker create spec plus every run-time input the start orchestration needs (readiness conditions, files to copy in, lifecycle hooks, pull/reuse/retry policy). More... | |
Namespaces | |
| namespace | testcontainers |
Enumerations | |
| enum class | testcontainers::ImagePullPolicy { testcontainers::Default , testcontainers::Always } |
| When to pull the image before creating the container. More... | |
Functions | |
| Container | testcontainers::run (const ContainerRequest &request) |
| Create, start, and wait for a container described by request, returning a RAII handle that removes the container on destruction (unless the request reused a persistent container). | |
| Container | testcontainers::run (DockerClient client, const ContainerRequest &request) |
| As above, but on a caller-supplied client — for a custom daemon endpoint or tuned transport timeouts. | |