DockerOperationContext

data class DockerOperationContext(val method: String, val route: String, val apiVersion: String, val stage: DockerFailureStage, val httpStatus: Int? = null)

Safe metadata attached to an SDK exception. SDK-produced contexts omit socket paths, resource identifiers, query parameters, headers, payloads and exception messages. The original exception itself remains sensitive.

Constructors

Link copied to clipboard
constructor(method: String, route: String, apiVersion: String, stage: DockerFailureStage, httpStatus: Int? = null)

Properties

Link copied to clipboard

Fixed API version used by this SDK.

Link copied to clipboard

Response status when available; null when no response status was captured.

Link copied to clipboard

HTTP verb, or UNKNOWN for an unrecognized method.

Link copied to clipboard

Allowlisted route template, such as /containers/{resource}/stats; unknown routes use /{unknown}.

Link copied to clipboard

Boundary where the SDK observed the failure; it does not establish whether a retry is safe.