compiledplans

package
v0.2.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 8 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

View Source
var ErrNotFound = xerror.NotFound(xerror.Pipeline).Detail("compiled pipeline plan was not found")

Functions

This section is empty.

Types

type CreateParams

type CreateParams struct {
	PipelineSlug     slug.Slug
	Digest           string
	AuthoredSpecHash string
	FormatVersion    int
	Materialization  []byte
}

type Repository

type Repository struct{}

func NewRepository

func NewRepository() *Repository

func (*Repository) Create

func (*Repository) Create(ctx context.Context, db postgres.DBTX, org, project slug.Slug, params CreateParams) (*Snapshot, error)

Create returns ErrNotFound when the scope is unavailable or the digest already exists. A following Find reads that exact identity without aborting the transaction.

func (*Repository) Find

func (*Repository) Find(ctx context.Context, db postgres.DBTX, org, project, pipeline slug.Slug, digest string) (*Snapshot, error)

type Snapshot

type Snapshot struct {
	PipelineSlug     slug.Slug
	Digest           string
	AuthoredSpecHash string
	FormatVersion    int
	Materialization  []byte
	CreatedAt        time.Time
}

Jump to

Keyboard shortcuts

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