dockerclient

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package dockerclient provides a shared *http.Client for side-channel calls to the upstream Docker daemon (ownership inspection, client ACL resolution, visibility label look-ups). All callers route through the same upstream transport so idle connections are reused and — when the upstream is a failover set — so the side channels follow the same active endpoint as the main proxy (a split between the request path and its owner-label inspect would break owner isolation).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(socketPath string) *http.Client

New returns an *http.Client that dials the Docker unix socket at path. It is the single-local-socket shorthand retained for callers and tests that have a plain socket path; it builds a one-endpoint resolver under the hood.

func NewWithRoundTripper

func NewWithRoundTripper(rt http.RoundTripper) *http.Client

NewWithRoundTripper returns an *http.Client whose transport is the shared upstream RoundTripper (typically an *upstream.Resolver). Routing, pooling, TLS, and failover all live in that transport. Callers must not mutate the returned client after construction.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL