Documentation
¶
Index ¶
- type CheckpointFile
- type Repository
- func (Repository) Append(ctx context.Context, db postgres.DBTX, claim filestream.Claim, ...) error
- func (Repository) Begin(ctx context.Context, db postgres.DBTX, claim filestream.Claim, maxBytes int64, ...) error
- func (Repository) DeleteUnusedCheckpointFiles(ctx context.Context, db postgres.DBTX, org, project, environment slug.Slug, ...) error
- func (Repository) Discard(ctx context.Context, db postgres.DBTX, claim filestream.Claim) error
- func (Repository) ListCheckpointFiles(ctx context.Context, db postgres.DBTX, org, project, environment slug.Slug, ...) ([]CheckpointFile, error)
- func (Repository) PinCheckpointFile(ctx context.Context, db postgres.DBTX, org, project, environment slug.Slug, ...) error
- func (Repository) Preflight(ctx context.Context, db postgres.DBTX) error
- func (Repository) Read(ctx context.Context, db postgres.DBTX, claim filestream.Claim, ...) (filestream.Manifest, error)
- func (Repository) ReadChunk(ctx context.Context, db postgres.DBTX, claim filestream.Claim, ...) ([]byte, error)
- func (Repository) Seal(ctx context.Context, db postgres.DBTX, claim filestream.Claim, sizeBytes int64, ...) error
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) DeleteUnusedCheckpointFiles ¶
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) Read ¶
func (Repository) Read(ctx context.Context, db postgres.DBTX, claim filestream.Claim, source uuid.UUID) (filestream.Manifest, error)
Click to show internal directories.
Click to hide internal directories.