retainedfiles

package
v0.2.0-rc.1-linux-arm64 Latest Latest
Warning

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

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

This section is empty.

Functions

This section is empty.

Types

type CheckpointFile

type CheckpointFile struct {
	Step      slug.Slug
	Reference filepayload.Reference
}

type Repository

type Repository struct{}

func New

func New() Repository

func (Repository) Append

func (Repository) Append(ctx context.Context, db postgres.DBTX, claim filestream.Claim, sequence, plainBytes int32, ciphertext []byte) error

func (Repository) Begin

func (Repository) Begin(ctx context.Context, db postgres.DBTX, claim filestream.Claim, maxBytes int64, expires time.Time) error

func (Repository) DeleteUnusedCheckpointFiles

func (Repository) DeleteUnusedCheckpointFiles(ctx context.Context, db postgres.DBTX, org, project, environment slug.Slug, run string, steps []string) error

func (Repository) Discard

func (Repository) Discard(ctx context.Context, db postgres.DBTX, claim filestream.Claim) error

func (Repository) ListCheckpointFiles

func (Repository) ListCheckpointFiles(ctx context.Context, db postgres.DBTX, org, project, environment slug.Slug, run string) ([]CheckpointFile, error)

func (Repository) PinCheckpointFile

func (Repository) PinCheckpointFile(ctx context.Context, db postgres.DBTX, org, project, environment slug.Slug, run string, step slug.Slug, ref filepayload.Reference) error

PinCheckpointFile stores a private association only after checking tenant, sealed source identity and complete length/digest under the checkpoint transaction.

func (Repository) Preflight

func (Repository) Preflight(ctx context.Context, db postgres.DBTX) error

func (Repository) Read

func (Repository) ReadChunk

func (Repository) ReadChunk(ctx context.Context, db postgres.DBTX, claim filestream.Claim, source uuid.UUID, sequence int32) ([]byte, error)

func (Repository) Seal

func (Repository) Seal(ctx context.Context, db postgres.DBTX, claim filestream.Claim, sizeBytes int64, digest string) error

Jump to

Keyboard shortcuts

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