Documentation
¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) EnsureRun(run *model.Run) error
- func (s *Store) LastRunID(project string) (string, error)
- func (s *Store) ListProjectRuns(project string, limit int) ([]string, error)
- func (s *Store) LoadRun(runID string) (*model.Run, error)
- func (s *Store) LoadRunFromEvents(runID string) (*model.Run, error)
- func (s *Store) SuccessfulDurations(project string, limit int) ([]time.Duration, error)
- func (s *Store) WriteEvent(run *model.Run, ev model.Event) error
- func (s *Store) WriteLog(runID, containerID, service, line string, ts time.Time) error
- func (s *Store) WriteProbeResult(runID, service, probeType, target, detail string, success bool, ts time.Time) error
- func (s *Store) WriteResourceSample(runID, containerID string, ts time.Time, cpu float64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists runs and events in SQLite.
func (*Store) ListProjectRuns ¶
ListProjectRuns returns run IDs for a project, newest first.
func (*Store) LoadRunFromEvents ¶
LoadRunFromEvents rebuilds derived state by replaying stored events in order.
func (*Store) SuccessfulDurations ¶
SuccessfulDurations returns wall-clock durations for recent successful runs (EndedAt set and no service in PhaseFailed). Newest-last order for Stats.Last.
func (*Store) WriteEvent ¶
WriteEvent appends one event and refreshes the run snapshot.
Click to show internal directories.
Click to hide internal directories.