Documentation
¶
Overview ¶
Package daemon runs Ripen on a schedule. It owns its process and writes nothing to stdout: the Event stream on stderr is its entire output, which is what lets a container's logs be parsed as a stream of Events and nothing else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Updater Engine
Mode domain.Mode
Interval time.Duration
// Once runs a single cycle and returns its error. Nothing sleeps.
Once bool
// Sleep waits between cycles, reporting false when the context ended
// first. Tests replace it to prove a --once run never waits.
Sleep func(ctx context.Context, duration time.Duration) bool
}
Options configures a daemon loop.
Click to show internal directories.
Click to hide internal directories.