driftimpact

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

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