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

Credentials for a Docker registry, used to pull private images. More...

#include <testcontainers/RegistryAuth.hpp>

Public Attributes

std::string username
std::string password
std::string server
 registry host, e.g. "ghcr.io" or "index.docker.io"
std::string identity_token
 alternative to user/pass (OAuth / identity token)

Detailed Description

Credentials for a Docker registry, used to pull private images.

Sent to the daemon as the X-Registry-Auth header on POST /images/create. Provide either username/password (basic auth) or an identity_token (OAuth / identity token); the latter takes precedence when non-empty.

A plain, copyable value type (no Boost/Asio leakage).

Member Data Documentation

◆ username

std::string testcontainers::RegistryAuth::username

◆ password

std::string testcontainers::RegistryAuth::password

◆ server

std::string testcontainers::RegistryAuth::server

registry host, e.g. "ghcr.io" or "index.docker.io"

◆ identity_token

std::string testcontainers::RegistryAuth::identity_token

alternative to user/pass (OAuth / identity token)