|
testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
|
A single filesystem mount for a container, mapping to one entry of Docker's create-body HostConfig.Mounts array. More...
#include <testcontainers/Mount.hpp>
Public Member Functions | |
| Mount & | with_read_only (bool ro=true) |
| Mount & | with_tmpfs_size (std::int64_t bytes) |
| Mount & | with_tmpfs_mode (int mode) |
| MountType | type () const noexcept |
| const std::string & | source () const noexcept |
| const std::string & | target () const noexcept |
| bool | is_read_only () const noexcept |
| std::optional< std::int64_t > | tmpfs_size () const noexcept |
| std::optional< int > | tmpfs_mode () const noexcept |
Static Public Member Functions | |
| static Mount | bind (std::string host_source, std::string container_target) |
| Bind-mount a host path at container_target (Type=bind). | |
| static Mount | volume (std::string volume_name, std::string container_target) |
| Mount a named volume at container_target (Type=volume). | |
| static Mount | tmpfs (std::string container_target) |
| Mount an in-memory tmpfs at container_target (Type=tmpfs, no source). | |
A single filesystem mount for a container, mapping to one entry of Docker's create-body HostConfig.Mounts array.
Build one with the static factories, then tune it with the chainable setters (same style as Healthcheck/GenericImage).
A plain, copyable value type (no Boost/Asio leakage).
|
inlinestatic |
Bind-mount a host path at container_target (Type=bind).
|
inlinestatic |
Mount a named volume at container_target (Type=volume).
|
inlinestatic |
Mount an in-memory tmpfs at container_target (Type=tmpfs, no source).
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |