compiledplans

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: 8 Imported by: 0

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