Documentation
¶
Index ¶
- func Rebuild(ctx context.Context, reg *registry.Registry, store *Store, ...) (int, error)
- func UpdateIncremental(ctx context.Context, reg *registry.Registry, store *Store, ...) (int, error)
- type ListOpts
- type Store
- func (s *Store) Close() error
- func (s *Store) Count(opts ListOpts) (int, error)
- func (s *Store) CountByProvider() (map[string]int, error)
- func (s *Store) FindByID(id string) (*model.Summary, error)
- func (s *Store) FindMigration(providerID, originDigest string) (sessionID, storagePath string, ok bool, err error)
- func (s *Store) Get(providerID, id string) (*model.Summary, error)
- func (s *Store) GetMeta(key string) (string, error)
- func (s *Store) List(opts ListOpts) ([]model.Summary, error)
- func (s *Store) NeedsRefresh(providerID string, storagePath string, mtime int64) (bool, error)
- func (s *Store) RecordMigration(providerID, originDigest, sessionID, storagePath string) error
- func (s *Store) SetMeta(key, value string) error
- func (s *Store) Upsert(summary model.Summary) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) FindMigration ¶ added in v0.1.2
func (s *Store) FindMigration(providerID, originDigest string) (sessionID, storagePath string, ok bool, err error)
FindMigration returns a prior migration target for the same origin digest.
func (*Store) NeedsRefresh ¶
func (*Store) RecordMigration ¶ added in v0.1.2
RecordMigration stores a successful migration for deduplication (SQLite and JSONL targets).
Click to show internal directories.
Click to hide internal directories.