Documentation ¶
Overview ¶
Package history provides an append only, size limited log of recent actions that Keeper has taken for each subpool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶
History uses a `*recordLog` per pool to store a record of recent actions that Keeper has taken. Using a log per pool ensure that history is retained for inactive pools even if other pools are very active.
func (*History) AllRecords ¶
AllRecords generates a map from pool key -> sorted records for the pool.
func (*History) Flush ¶
func (h *History) Flush()
Flush writes the action history to persistent storage if configured to do so.
type Record ¶
type Record struct { Time time.Time `json:"time"` Action string `json:"action"` BaseSHA string `json:"baseSHA,omitempty"` Target []v1alpha1.Pull `json:"target,omitempty"` Err string `json:"err,omitempty"` }
Record is an entry describing one action that Keeper has taken (e.g. TRIGGER or MERGE).
Click to show internal directories.
Click to hide internal directories.