wait

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
	Name    string
	CheckFn func(ctx context.Context) error
}

Target represents something to wait for.

func BuildkitdTarget

func BuildkitdTarget() Target

BuildkitdTarget returns a target that waits for BuildKit daemon. It uses build.NewClient which respects $BUILDKIT_HOST.

func DockerSocketTarget

func DockerSocketTarget() Target

DockerSocketTarget returns a target that waits for the Docker daemon. It uses the Docker client which respects $DOCKER_HOST.

type TargetResult

type TargetResult struct {
	Name string
	Err  error
}

TargetResult holds the outcome for a single target.

func WaitAll

func WaitAll(ctx context.Context, targets []Target) []TargetResult

WaitAll waits for all targets in parallel, returning when all succeed or the context expires.

Jump to

Keyboard shortcuts

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