testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
Loading...
Searching...
No Matches
testcontainers::ContainerPort Struct Reference

A port exposed by a container, with its protocol. More...

#include <testcontainers/ContainerPort.hpp>

Public Attributes

std::uint16_t port = 0
Proto proto = Proto::Tcp

Detailed Description

A port exposed by a container, with its protocol.

A plain, copyable, equality-comparable value type (no opaque handles, no move-only semantics) — it slots straight into a std::vector.

Member Data Documentation

◆ port

std::uint16_t testcontainers::ContainerPort::port = 0

◆ proto

Proto testcontainers::ContainerPort::proto = Proto::Tcp