dockerclient

package
v0.0.0-...-44b29c8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dockerclient owns the bridge's shared Docker client. Callers pair Get with Release so an idle client is closed and its resources are freed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() (*client.Client, error)

Get returns the shared Docker client, creating it if necessary. Callers must call Release when done so the idle timer can run.

func Release

func Release(_ *client.Client)

Release decrements the reference count. When the count reaches zero a timer is started; if no new request arrives within idleTimeout the client is closed and its resources (connection pool, goroutines) are freed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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