driftimpact

package
v0.2.0-rc.24 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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