Documentation
¶
Overview ¶
Package notify carries reconcile events to whoever is listening.
This seam is additive where the others replace, and the asymmetry is deliberate. A Business Edition notifier posting to Slack must not remove the log notifier — and, the case that actually forces it, the HTTP API's event stream is itself a notifier. If registering replaced, loading the companion would silently kill the UI's live updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
Application string
Type EventType
Revision string // the resolved commit, where one applies
Message string
At time.Time
}
Event is one thing that happened to one application.
type EventType ¶
type EventType string
EventType names what happened.
const ( SyncStarted EventType = "sync-started" SyncSucceeded EventType = "sync-succeeded" SyncFailed EventType = "sync-failed" DriftDetected EventType = "drift-detected" // ResourcesPruned reports that the controller deleted the deployed // resources of something git no longer declares — a whole application that // left the app set, or a release an application stopped declaring. Message // names what went. // // It is the loudest thing this controller does, and the only event that // reports something destroyed rather than converged. ResourcesPruned EventType = "resources-pruned" // PruneFailed reports that the deletion did not complete. What it names is // still deployed and still unmanaged; the next reconcile tries again. PruneFailed EventType = "prune-failed" )
Click to show internal directories.
Click to hide internal directories.