dockerutil

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package dockerutil centralizes how the integration harnesses decide whether a Docker-compatible container runtime is reachable. Every suite built on it skips instead of failing on machines without a working container runtime, which is what AGENTS.md documents for the integration tests.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("docker is unavailable")

ErrUnavailable reports that no Docker-compatible container runtime could be reached. Callers turn it into a skip rather than a failure.

Functions

func Available

func Available(ctx context.Context) bool

Available reports whether a Docker-compatible container runtime is reachable. DockerProvider.Health closes the provider it measures.

func IsUnavailable

func IsUnavailable(err error) bool

IsUnavailable reports whether err means no container runtime was reachable.

func WrapUnavailable

func WrapUnavailable(err error) error

WrapUnavailable marks a container start failure caused by a missing container runtime with ErrUnavailable so callers can skip instead of failing the suite.

Types

This section is empty.

Jump to

Keyboard shortcuts

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