sqliteuploader

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(dbPath, blobRoot string) (*Store, error)

func (*Store) ClearInboxFailure

func (s *Store) ClearInboxFailure(ctx context.Context, fingerprint string) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) CompleteFederationPublication

func (s *Store) CompleteFederationPublication(ctx context.Context, submissionID, poolID string, state uploader.PublicationState, outcome uploader.PublicationOutcome) (*uploader.FederationPublication, error)

func (*Store) CreateSubmission

func (s *Store) CreateSubmission(ctx context.Context, submission uploader.Submission, nzbBytes []byte, artifacts []uploader.Artifact) (uploader.CreateResult, error)

func (*Store) FailFederationPublication

func (s *Store) FailFederationPublication(ctx context.Context, submissionID, poolID string, cause error) (*uploader.FederationPublication, error)

func (*Store) GetSubmission

func (s *Store) GetSubmission(ctx context.Context, id string) (*uploader.Submission, error)

func (*Store) GetSubmissionByReleaseID

func (s *Store) GetSubmissionByReleaseID(ctx context.Context, releaseID string) (*uploader.Submission, error)

func (*Store) GetSubmissionBySHA256

func (s *Store) GetSubmissionBySHA256(ctx context.Context, hash string) (*uploader.Submission, error)

func (*Store) ListDueFederationPublications

func (s *Store) ListDueFederationPublications(ctx context.Context, limit int) ([]uploader.FederationPublication, error)

func (*Store) ListEvents

func (s *Store) ListEvents(ctx context.Context, submissionID string) ([]uploader.Event, error)

func (*Store) ListFederationPublications

func (s *Store) ListFederationPublications(ctx context.Context, submissionID string) ([]uploader.FederationPublication, error)

func (*Store) ListSubmissions

func (s *Store) ListSubmissions(ctx context.Context, filter uploader.ListFilter) ([]uploader.Submission, error)

func (*Store) OpenArtifact

func (s *Store) OpenArtifact(ctx context.Context, submissionID, artifactID string) (*uploader.Artifact, io.ReadCloser, error)

func (*Store) OpenNZB

func (s *Store) OpenNZB(ctx context.Context, id string) (io.ReadCloser, error)

func (*Store) Ping

func (s *Store) Ping(ctx context.Context) error

func (*Store) RecordInboxFailure

func (s *Store) RecordInboxFailure(ctx context.Context, fingerprint string, modTime time.Time, size int64, code, message string, nextAttempt time.Time) error

func (*Store) RequestFederationPublication

func (s *Store) RequestFederationPublication(ctx context.Context, submissionID, poolID, actor string) (*uploader.FederationPublication, error)

func (*Store) RequestFederationWithdrawal

func (s *Store) RequestFederationWithdrawal(ctx context.Context, submissionID, poolID, actor, note string) (*uploader.FederationPublication, error)

func (*Store) RequestSubmissionWithdrawals

func (s *Store) RequestSubmissionWithdrawals(ctx context.Context, submissionID, actor, note string) error

func (*Store) RunMigrations

func (s *Store) RunMigrations() error

func (*Store) ShouldAttemptInboxPath

func (s *Store) ShouldAttemptInboxPath(ctx context.Context, fingerprint string, modTime time.Time, size int64, now time.Time) (bool, error)

func (*Store) TransitionSubmission

func (s *Store) TransitionSubmission(ctx context.Context, id string, next uploader.State, actor, note string) (*uploader.Submission, error)

func (*Store) UpdateSubmission

func (s *Store) UpdateSubmission(ctx context.Context, id string, update uploader.Update) (*uploader.Submission, error)

func (*Store) ValidateSchema

func (s *Store) ValidateSchema(ctx context.Context) error

Jump to

Keyboard shortcuts

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