Documentation
¶
Overview ¶
Package config loads PullPilot's daemon-wide configuration from PP_* env vars.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataDirPersistent ¶
DataDirPersistent reports whether dir appears to be a real mount (bind/volume) rather than the container's ephemeral layer. The second return is false when it cannot be determined (e.g. /proc is unavailable, as on non-Linux dev hosts).
Types ¶
type Config ¶
type Config struct {
Schedule string
Timezone string
Jitter time.Duration
Scope Scope
Soak time.Duration
SelfUpdate bool
Cleanup bool
Webhook bool
WebhookURL string
DataDir string
NotifyURL string
DryRun bool
LogLevel string
LogJSON bool
CompatWatchtower bool
// Warnings collects non-fatal config problems (e.g. an unparseable value
// that fell back to a default), surfaced in the boot summary.
Warnings []string
}
Config is the resolved daemon configuration.
func (*Config) LogSummary ¶
LogSummary emits a single redacted boot summary event. Secrets are never logged.
Click to show internal directories.
Click to hide internal directories.