|
testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
|
Metadata of a container path, decoded from the X-Docker-Container-Path-Stat header of a HEAD /containers/{id}/archive probe — a cheap existence/size check before a download (no archive is transferred). More...
#include <testcontainers/docker/DockerClient.hpp>
Public Attributes | |
| std::string | name |
| base name of the path inside the container | |
| std::uint64_t | size = 0 |
| file size in bytes (directory sizes are fs-defined) | |
| std::uint32_t | mode = 0 |
| Go os.FileMode (bit 31 = directory, low bits = perms). | |
| bool | is_dir = false |
| decoded from mode | |
| std::string | mtime |
| RFC3339 timestamp, verbatim. | |
| std::string | link_target |
| symlink target ("" for non-links) | |
Metadata of a container path, decoded from the X-Docker-Container-Path-Stat header of a HEAD /containers/{id}/archive probe — a cheap existence/size check before a download (no archive is transferred).
mode carries Go's os.FileMode bits (type bits high, permissions low). Throws NotFoundError when the container or path does not exist.
| std::string testcontainers::DockerClient::ContainerPathStat::name |
base name of the path inside the container
| std::uint64_t testcontainers::DockerClient::ContainerPathStat::size = 0 |
file size in bytes (directory sizes are fs-defined)
| std::uint32_t testcontainers::DockerClient::ContainerPathStat::mode = 0 |
Go os.FileMode (bit 31 = directory, low bits = perms).
| bool testcontainers::DockerClient::ContainerPathStat::is_dir = false |
decoded from mode
| std::string testcontainers::DockerClient::ContainerPathStat::mtime |
RFC3339 timestamp, verbatim.
| std::string testcontainers::DockerClient::ContainerPathStat::link_target |
symlink target ("" for non-links)