Documentation
¶
Index ¶
- type Store
- func (s *Store) ClearInboxFailure(ctx context.Context, fingerprint string) error
- func (s *Store) Close() error
- func (s *Store) CompleteFederationPublication(ctx context.Context, submissionID, poolID string, ...) (*uploader.FederationPublication, error)
- func (s *Store) CreateSubmission(ctx context.Context, submission uploader.Submission, nzbBytes []byte, ...) (uploader.CreateResult, error)
- func (s *Store) FailFederationPublication(ctx context.Context, submissionID, poolID string, cause error) (*uploader.FederationPublication, error)
- func (s *Store) GetSubmission(ctx context.Context, id string) (*uploader.Submission, error)
- func (s *Store) GetSubmissionByReleaseID(ctx context.Context, releaseID string) (*uploader.Submission, error)
- func (s *Store) GetSubmissionBySHA256(ctx context.Context, hash string) (*uploader.Submission, error)
- func (s *Store) ListDueFederationPublications(ctx context.Context, limit int) ([]uploader.FederationPublication, error)
- func (s *Store) ListEvents(ctx context.Context, submissionID string) ([]uploader.Event, error)
- func (s *Store) ListFederationPublications(ctx context.Context, submissionID string) ([]uploader.FederationPublication, error)
- func (s *Store) ListSubmissions(ctx context.Context, filter uploader.ListFilter) ([]uploader.Submission, error)
- func (s *Store) OpenArtifact(ctx context.Context, submissionID, artifactID string) (*uploader.Artifact, io.ReadCloser, error)
- func (s *Store) OpenNZB(ctx context.Context, id string) (io.ReadCloser, error)
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) RecordInboxFailure(ctx context.Context, fingerprint string, modTime time.Time, size int64, ...) error
- func (s *Store) RequestFederationPublication(ctx context.Context, submissionID, poolID, actor string) (*uploader.FederationPublication, error)
- func (s *Store) RequestFederationWithdrawal(ctx context.Context, submissionID, poolID, actor, note string) (*uploader.FederationPublication, error)
- func (s *Store) RequestSubmissionWithdrawals(ctx context.Context, submissionID, actor, note string) error
- func (s *Store) RunMigrations() error
- func (s *Store) ShouldAttemptInboxPath(ctx context.Context, fingerprint string, modTime time.Time, size int64, ...) (bool, error)
- func (s *Store) TransitionSubmission(ctx context.Context, id string, next uploader.State, actor, note string) (*uploader.Submission, error)
- func (s *Store) UpdateSubmission(ctx context.Context, id string, update uploader.Update) (*uploader.Submission, error)
- func (s *Store) ValidateSchema(ctx context.Context) error
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 (*Store) ClearInboxFailure ¶
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 (*Store) FailFederationPublication ¶
func (*Store) GetSubmission ¶
func (*Store) GetSubmissionByReleaseID ¶
func (*Store) GetSubmissionBySHA256 ¶
func (*Store) ListDueFederationPublications ¶
func (*Store) ListEvents ¶
func (*Store) ListFederationPublications ¶
func (*Store) ListSubmissions ¶
func (s *Store) ListSubmissions(ctx context.Context, filter uploader.ListFilter) ([]uploader.Submission, error)
func (*Store) OpenArtifact ¶
func (*Store) RecordInboxFailure ¶
func (*Store) RequestFederationPublication ¶
func (*Store) RequestFederationWithdrawal ¶
func (*Store) RequestSubmissionWithdrawals ¶
func (*Store) RunMigrations ¶
func (*Store) ShouldAttemptInboxPath ¶
func (*Store) TransitionSubmission ¶
func (*Store) UpdateSubmission ¶
Click to show internal directories.
Click to hide internal directories.