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

The subset of GET /networks/{id} we currently care about. More...

#include <testcontainers/docker/ContainerSpec.hpp>

Public Attributes

std::string id
std::string name
std::string driver
 "bridge" / "nat" / ...
std::string scope
 "local" / "swarm"
bool internal = false
 Internal (no external connectivity).
bool attachable = false
bool enable_ipv6 = false
std::vector< NetworkIpamPoolipam_pools
 IPAM.Config (empty when none).
std::map< std::string, std::string > options
 driver Options (null -> empty)
std::map< std::string, std::string > labels
 Labels (null -> empty).
std::map< std::string, NetworkEndpointcontainers
 Container id -> endpoint, one entry per currently attached container (null / absent -> empty).

Detailed Description

The subset of GET /networks/{id} we currently care about.

Member Data Documentation

◆ id

std::string testcontainers::NetworkInspect::id

◆ name

std::string testcontainers::NetworkInspect::name

◆ driver

std::string testcontainers::NetworkInspect::driver

"bridge" / "nat" / ...

◆ scope

std::string testcontainers::NetworkInspect::scope

"local" / "swarm"

◆ internal

bool testcontainers::NetworkInspect::internal = false

Internal (no external connectivity).

◆ attachable

bool testcontainers::NetworkInspect::attachable = false

◆ enable_ipv6

bool testcontainers::NetworkInspect::enable_ipv6 = false

◆ ipam_pools

std::vector<NetworkIpamPool> testcontainers::NetworkInspect::ipam_pools

IPAM.Config (empty when none).

◆ options

std::map<std::string, std::string> testcontainers::NetworkInspect::options

driver Options (null -> empty)

◆ labels

std::map<std::string, std::string> testcontainers::NetworkInspect::labels

Labels (null -> empty).

◆ containers

std::map<std::string, NetworkEndpoint> testcontainers::NetworkInspect::containers

Container id -> endpoint, one entry per currently attached container (null / absent -> empty).