docker

package
v0.3.36 Latest Latest
Warning

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

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

Documentation

Overview

Package docker implements Docker utils.

Index

Constants

View Source
const (
	NetworkName = "apoxy"
)

Variables

This section is empty.

Functions

func Collect

func Collect(ctx context.Context, namePrefix, imageRef string, opts ...Option) (string, bool, error)

Collect finds running containers, garbage collects dangling containers if needed, and returns the matchine container name.

func WaitForStatus

func WaitForStatus(ctx context.Context, container string, status string) error

WaitForStatus waits for the container to be in the desired status.

Types

type Option

type Option func(*options)

func WithLabel

func WithLabel(key, value string) Option

WithLabel sets the container label pair to match. If called multiple times, the labels are ANDed.

Jump to

Keyboard shortcuts

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