Documentation
¶
Index ¶
- Variables
- type Store
- func (s *Store) GetPipeline(id string) (*cicd.Pipeline, error)
- func (s *Store) GetTestResults(pipelineID string) ([]cicd.TestResult, error)
- func (s *Store) ListPipelines(limit int) []cicd.Pipeline
- func (s *Store) SavePipeline(p cicd.Pipeline) error
- func (s *Store) SaveTestResults(pipelineID string, results []cicd.TestResult) error
- func (s *Store) Summary() cicd.CISummary
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = cicd.ErrNotFound
ErrNotFound is an alias for cicd.ErrNotFound for backward compatibility.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-memory CI/CD store with a circular buffer for pipelines.
func (*Store) GetPipeline ¶
GetPipeline returns a pipeline by ID.
func (*Store) GetTestResults ¶
func (s *Store) GetTestResults(pipelineID string) ([]cicd.TestResult, error)
GetTestResults returns test results for a pipeline.
func (*Store) ListPipelines ¶
ListPipelines returns the most recent pipelines, newest first. If limit <= 0, all pipelines are returned.
func (*Store) SavePipeline ¶
SavePipeline adds or updates a pipeline. If the buffer exceeds maxPipelines, the oldest entry is evicted.
func (*Store) SaveTestResults ¶
func (s *Store) SaveTestResults(pipelineID string, results []cicd.TestResult) error
SaveTestResults stores test results for a pipeline.
Click to show internal directories.
Click to hide internal directories.