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

Options for POST /volumes/create. More...

#include <testcontainers/docker/ContainerSpec.hpp>

Public Attributes

std::string name
 volume name (we always set it)
std::optional< std::string > driver
 Driver (default "local" when unset).
std::vector< std::pair< std::string, std::string > > driver_opts
 DriverOpts.
std::vector< std::pair< std::string, std::string > > labels
 Labels.

Detailed Description

Options for POST /volumes/create.

Member Data Documentation

◆ name

std::string testcontainers::VolumeCreateSpec::name

volume name (we always set it)

◆ driver

std::optional<std::string> testcontainers::VolumeCreateSpec::driver

Driver (default "local" when unset).

◆ driver_opts

std::vector<std::pair<std::string, std::string> > testcontainers::VolumeCreateSpec::driver_opts

DriverOpts.

◆ labels

std::vector<std::pair<std::string, std::string> > testcontainers::VolumeCreateSpec::labels

Labels.