Documentation
¶
Index ¶
- type Store
- func (s *Store) ActiveForDeploy(ctx context.Context, deployID string) ([]regression.Regression, error)
- func (s *Store) Get(ctx context.Context, id string) (*regression.Regression, error)
- func (s *Store) List(ctx context.Context, filter regression.RegressionFilter) ([]regression.Regression, error)
- func (s *Store) Save(ctx context.Context, r *regression.Regression) error
- func (s *Store) UpdateStatus(ctx context.Context, id string, status string) 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 implements regression.RegressionStore against PostgreSQL.
func (*Store) ActiveForDeploy ¶
func (s *Store) ActiveForDeploy(ctx context.Context, deployID string) ([]regression.Regression, error)
ActiveForDeploy returns all active regressions for the given deploy ID.
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, id string) (*regression.Regression, error)
Get returns the regression with the given ID. Returns regression.ErrNotFound if no row exists.
func (*Store) List ¶
func (s *Store) List(ctx context.Context, filter regression.RegressionFilter) ([]regression.Regression, error)
List returns regressions matching the given filter, ordered by detected_at DESC.
func (*Store) Save ¶
func (s *Store) Save(ctx context.Context, r *regression.Regression) error
Save inserts a Regression into the database. If r.ID is empty, a new UUID is generated and written back to r.ID.
Click to show internal directories.
Click to hide internal directories.