/
githubmirror
/
goose
Обзор
Документация
Войти
/
githubmirror
/
goose
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/dockermanage/doc.go
17 строк
864 B
Michael Fridman
feat: add dockermanage package (#1029)
13 фев 2026, 05:45
Не верифицирован
13 фев 2026, 05:45
5de4fb4
Код
Авторство
О чём код?
// Package dockermanage provides lightweight Docker container lifecycle helpers for integration // testing. // // A [Manager] wraps the native Docker client and exposes methods to start, stop, remove, and list // containers. Containers are configured through functional [Option] values such as [WithImage], // [WithContainerPortTCP], and [WithEnv]. // // After starting a container, use [Manager.WaitReady] with a custom [ReadinessFunc] to block until // the service inside the container is accepting connections. // // Every container created through this package is tagged with the [ManagedLabelKey] label, which // allows bulk operations like [Manager.StopManaged] and [Manager.RemoveManaged] to clean up all // managed containers. // // Database-specific sub-packages (e.g., postgres) provide opinionated defaults for common // databases. package dockermanage