retainedfiles

package
v0.0.0-...-5106b98 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Discard

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

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