blobpersist

package
v0.1.18-rc21 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package blobpersist provides a service for persisting blob data with coordinated database metadata and object storage writes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service coordinates database metadata and object storage writes.

func New

func New(st store.Store, bs blobstore.Store) *Service

New creates a new blobpersist service.

func (*Service) CreateArtifactBundle

func (s *Service) CreateArtifactBundle(ctx context.Context, params store.CreateArtifactBundleParams, bundle []byte) (store.ArtifactBundle, error)

CreateArtifactBundle creates an artifact bundle entry in the database and uploads the bundle to object storage.

func (*Service) CreateDiff

func (s *Service) CreateDiff(ctx context.Context, params store.CreateDiffParams, patch []byte) (store.Diff, error)

CreateDiff creates a diff entry in the database and uploads the patch to object storage.

func (*Service) CreateLog

func (s *Service) CreateLog(ctx context.Context, params store.CreateLogParams, data []byte) (store.Log, error)

CreateLog creates a log entry in the database and uploads the data to object storage.

func (*Service) CreateSpecBundle

func (s *Service) CreateSpecBundle(ctx context.Context, params store.CreateSpecBundleParams, data []byte) (store.SpecBundle, error)

CreateSpecBundle creates a spec bundle entry in the database and uploads the bundle to object storage.

func (*Service) WithStore

func (s *Service) WithStore(st store.Store) *Service

WithStore binds blob metadata operations to the caller's database transaction.

Jump to

Keyboard shortcuts

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