Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReportNotFound = xerror.NotFound(xerror.DriftImpactReport)
Functions ¶
This section is empty.
Types ¶
type CreateParams ¶
type CreateParams struct {
Slug slug.Slug
ReportType pipelinedrift.ReportType
Status pipelinedrift.ReportStatus
Severity pipelinedrift.ReportSeverity
Summary string
ChangesJSONB []byte
ImpactsJSONB []byte
ProjectSlug *slug.Slug
PipelineSlug *slug.Slug
DataSourceSlug *slug.Slug
}
type ListFilters ¶
type ListFilters struct {
ProjectSlug *slug.Slug
PipelineSlug *slug.Slug
DataSourceSlug *slug.Slug
Status *pipelinedrift.ReportStatus
Severity *pipelinedrift.ReportSeverity
Limit int32
}
type Report ¶
type Report struct {
Slug slug.Slug
ReportType pipelinedrift.ReportType
Status pipelinedrift.ReportStatus
Severity pipelinedrift.ReportSeverity
Summary string
ChangesJSONB []byte
ImpactsJSONB []byte
ProjectSlug *slug.Slug
PipelineSlug *slug.Slug
DataSourceSlug *slug.Slug
CreatedAt time.Time
SupersededAt *time.Time
}
type Repository ¶
type Repository interface {
SupersedeOpen(ctx context.Context, tx postgres.DBTX, orgSlug slug.Slug, params CreateParams) error
Create(ctx context.Context, tx postgres.DBTX, orgSlug slug.Slug, params CreateParams) (*Report, error)
FindBySlug(ctx context.Context, tx postgres.DBTX, orgSlug, projectSlug, reportSlug slug.Slug) (*Report, error)
List(ctx context.Context, tx postgres.DBTX, orgSlug slug.Slug, filters ListFilters) ([]*Report, error)
}
func New ¶
func New() Repository
Click to show internal directories.
Click to hide internal directories.