Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Observation settings for health monitoring
ObservationPeriod time.Duration // duration to observe before taking action
UnhealthyThreshold int // number of consecutive unhealthy checks before action
RestartWindow time.Duration // rolling window over which restarts are counted
// Operation mode
Mode string // full, update, watch, monitor
RunOnce bool
Interval time.Duration
Schedule string
// Update settings
Cleanup bool
NoRestart bool
NoPull bool
MonitorOnly bool
RollingRestart bool
StopTimeout time.Duration
LabelEnable bool
LabelName string
Scope string
// Container settings
IncludeStopped bool
IncludeRestarting bool
ReviveStopped bool
RemoveVolumes bool
DisableContainers []string
// Health monitoring
HealthWatch bool
HealthAction string // restart, notify
HealthCheck bool // Internal health check mode
// Secrets
RegistrySecret string
// Notifications
NotificationURL string
// API
APIEnabled bool
APIPort int
APIToken string
// Metrics
MetricsEnabled bool
// Logging
LogLevel string
LogFormat string
// Timezone
TZ string
}
Config holds all configuration for DockWarden
Click to show internal directories.
Click to hide internal directories.