labels

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package labels interprets PullPilot's per-container labels (io.pullpilot.*), the Compose project labels, and Watchtower compatibility aliases.

Index

Constants

View Source
const (
	Enable         = "io.pullpilot.enable"
	Exclude        = "io.pullpilot.exclude"
	MonitorOnly    = "io.pullpilot.monitor-only"
	Soak           = "io.pullpilot.soak"
	Self           = "io.pullpilot.self"
	HealthTimeout  = "io.pullpilot.health-timeout"
	StopTimeout    = "io.pullpilot.stop-timeout"
	RemoveAnonVols = "io.pullpilot.remove-anonymous-volumes"
	Order          = "io.pullpilot.order"

	ComposeProject = "com.docker.compose.project"
	ComposeService = "com.docker.compose.service"
	ComposeOneoff  = "com.docker.compose.oneoff"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Enable         *bool          // explicit enable/disable (nil = unset)
	Exclude        bool           // hard exclude
	MonitorOnly    bool           // detect + notify, never update
	Soak           *time.Duration // per-container soak override (nil = use global)
	IsSelf         bool           // PullPilot's own container marker
	HealthTimeout  *time.Duration
	StopTimeout    *time.Duration
	RemoveAnonVols bool
	Order          int
	Project        string
	Service        string
	Oneoff         bool
}

Settings is the resolved per-container behavior.

func Parse

func Parse(m map[string]string, compat bool) Settings

Parse interprets a container's labels. When compat is true, Watchtower labels are honored as aliases.

Jump to

Keyboard shortcuts

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