memory

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 NewStore

func NewStore() *Store

NewStore creates a new in-memory CI/CD store.

func (*Store) GetPipeline

func (s *Store) GetPipeline(id string) (*cicd.Pipeline, error)

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

func (s *Store) ListPipelines(limit int) []cicd.Pipeline

ListPipelines returns the most recent pipelines, newest first. If limit <= 0, all pipelines are returned.

func (*Store) SavePipeline

func (s *Store) SavePipeline(p cicd.Pipeline) error

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.

func (*Store) Summary

func (s *Store) Summary() cicd.CISummary

Summary computes overall CI health metrics.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL