Documentation
¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) ExpectedSchemaVersion() int
- func (s *Store) GetAggregatorReleaseCacheByID(ctx context.Context, id string) (*domain.Release, error)
- func (s *Store) MarkReleaseCacheMissing(ctx context.Context, releaseID, reason string) error
- func (s *Store) MarkReleaseCached(ctx context.Context, releaseID string, blobSize int64, blobMtimeUnix int64) error
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) ReconcileBlobCacheIndex(ctx context.Context) error
- func (s *Store) ReconcileReleaseCache(ctx context.Context) error
- func (s *Store) RunMigrations() error
- func (s *Store) SchemaVersion(ctx context.Context) (int, error)
- func (s *Store) SearchAggregatorReleaseCache(ctx context.Context, query string, limit int) ([]*domain.Release, error)
- func (s *Store) UpsertAggregatorReleaseCache(ctx context.Context, releases []*domain.Release) 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) ExpectedSchemaVersion ¶
func (*Store) GetAggregatorReleaseCacheByID ¶
func (s *Store) GetAggregatorReleaseCacheByID(ctx context.Context, id string) (*domain.Release, error)
GetAggregatorReleaseCacheByID returns one cached release by release id.
func (*Store) MarkReleaseCacheMissing ¶
func (*Store) MarkReleaseCached ¶
func (*Store) ReconcileBlobCacheIndex ¶
func (*Store) ReconcileReleaseCache ¶
func (*Store) RunMigrations ¶
func (*Store) SearchAggregatorReleaseCache ¶
func (s *Store) SearchAggregatorReleaseCache(ctx context.Context, query string, limit int) ([]*domain.Release, error)
SearchAggregatorReleaseCache searches cached releases by title.
func (*Store) UpsertAggregatorReleaseCache ¶
UpsertAggregatorReleaseCache stores/replaces release cache entries for Aggregator queries.
Click to show internal directories.
Click to hide internal directories.