pipelinecreations

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

Documentation

Overview

Package pipelinecreations persists proposals for pipelines not yet imported from Git.

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Repository

type Repository struct{}

func New

func New() *Repository

func (*Repository) Create

func (*Repository) Create(ctx context.Context, db postgres.DBTX, org, project slug.Slug, row *Row) (bool, error)

func (*Repository) Find

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

func (*Repository) Get

func (*Repository) Get(ctx context.Context, db postgres.DBTX, org, project, creation slug.Slug) (*Row, error)

func (*Repository) List

func (*Repository) List(ctx context.Context, db postgres.DBTX, org, project, after slug.Slug, limit int) ([]*Row, error)

func (*Repository) Update

func (*Repository) Update(ctx context.Context, db postgres.DBTX, org, project slug.Slug, row *Row) (bool, error)

type Row

type Row struct {
	Slug             slug.Slug
	PipelineSlug     slug.Slug
	MemberSlug       slug.Slug
	Request          json.RawMessage
	Result           json.RawMessage
	Status           string
	FailureCode      string
	PublishAttemptID string
}

Jump to

Keyboard shortcuts

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