Documentation
¶
Overview ¶
Package blobpersist provides a service for persisting blob data with coordinated database metadata and object storage writes.
Index ¶
- type Service
- func (s *Service) CreateArtifactBundle(ctx context.Context, params store.CreateArtifactBundleParams, bundle []byte) (store.ArtifactBundle, error)
- func (s *Service) CreateDiff(ctx context.Context, params store.CreateDiffParams, patch []byte) (store.Diff, error)
- func (s *Service) CreateLog(ctx context.Context, params store.CreateLogParams, data []byte) (store.Log, error)
- func (s *Service) CreateSpecBundle(ctx context.Context, params store.CreateSpecBundleParams, data []byte) (store.SpecBundle, error)
- func (s *Service) WithStore(st store.Store) *Service
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 (*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.
Click to show internal directories.
Click to hide internal directories.