pkg/

directory
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0

Directories

Path Synopsis
api
Package api hosts the HTTP control-plane for watchtower (token auth, /v1/update, /v1/metrics).
Package api hosts the HTTP control-plane for watchtower (token auth, /v1/update, /v1/metrics).
audit
Package audit exposes the HTTP handler for the /v1/audit endpoint.
Package audit exposes the HTTP handler for the /v1/audit endpoint.
metrics
Package metrics exposes the Prometheus /v1/metrics HTTP handler.
Package metrics exposes the Prometheus /v1/metrics HTTP handler.
update
Package update exposes the HTTP handler for the /v1/update API endpoint.
Package update exposes the HTTP handler for the /v1/update API endpoint.
Package container contains code related to dealing with docker containers
Package container contains code related to dealing with docker containers
Package filters composes container predicates for selecting update targets.
Package filters composes container predicates for selecting update targets.
Package lifecycle runs user-defined pre/post check and update commands (configured via com.centurylinklabs.watchtower.lifecycle.* labels) inside target containers.
Package lifecycle runs user-defined pre/post check and update commands (configured via com.centurylinklabs.watchtower.lifecycle.* labels) inside target containers.
Package metrics collects watchtower scan statistics and exports them via prometheus counters/gauges consumed by the /v1/metrics API.
Package metrics collects watchtower scan statistics and exports them via prometheus counters/gauges consumed by the /v1/metrics API.
Package notifications sends watchtower session outcomes through shoutrrr (and legacy email/slack/msteams/gotify shims) using configurable templates.
Package notifications sends watchtower session outcomes through shoutrrr (and legacy email/slack/msteams/gotify shims) using configurable templates.
templates
Package templates contains the text/template function map used by notification templates.
Package templates contains the text/template function map used by notification templates.
Package registry authenticates to container image registries and resolves remote image digests used by the stale-check logic.
Package registry authenticates to container image registries and resolves remote image digests used by the stale-check logic.
auth
Package auth handles registry authentication and bearer-token challenges.
Package auth handles registry authentication and bearer-token challenges.
digest
Package digest compares the current image digest to the latest one published in the registry to decide whether a container is stale.
Package digest compares the current image digest to the latest one published in the registry to decide whether a container is stale.
helpers
Package helpers holds registry-address resolution helpers shared across the registry sub-packages.
Package helpers holds registry-address resolution helpers shared across the registry sub-packages.
manifest
Package manifest builds registry manifest URLs for digest lookups.
Package manifest builds registry manifest URLs for digest lookups.
retry
Package retry wraps registry HTTP requests in a bounded exponential backoff so a single flaky oauth/manifest response doesn't wedge an image for a full poll interval.
Package retry wraps registry HTTP requests in a bounded exponential backoff so a single flaky oauth/manifest response doesn't wedge an image for a full poll interval.
transport
Package transport builds the http.Client used for registry API calls.
Package transport builds the http.Client used for registry API calls.
Package session tracks container state and outcomes for a single watchtower update run.
Package session tracks container state and outcomes for a single watchtower update run.
Package sorter topologically orders containers by their declared depends-on and links graph so updates happen in a safe order.
Package sorter topologically orders containers by their declared depends-on and links graph so updates happen in a safe order.
Package types defines the data-transfer and interface types shared across watchtower packages.
Package types defines the data-transfer and interface types shared across watchtower packages.

Jump to

Keyboard shortcuts

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