Documentation
¶
Overview ¶
Package sqlite is the SQLite-backed adapter for the ingestion.Store port.
Index ¶
- Variables
- type Store
- func (s *Store) CreateRepo(ctx context.Context, repo ingestion.NewRepo) (ingestion.Repo, error)
- func (s *Store) DB() *sql.DB
- func (s *Store) GetRepo(ctx context.Context, id string) (ingestion.Repo, error)
- func (s *Store) ListRepos(ctx context.Context) ([]ingestion.Repo, error)
- func (s *Store) RepoToken(ctx context.Context, id string) (string, error)
- func (s *Store) SetIngestionStatus(ctx context.Context, id string, status ingestion.Status, reason string) error
Constants ¶
This section is empty.
Variables ¶
var ErrRepoNotFound = errors.New("repo not found")
ErrRepoNotFound is returned when no repo matches the requested id.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements ingestion.Store against a SQLite database.
func NewStore ¶
NewStore returns a Store that encrypts tokens at rest under key (32 bytes, AES-256).
func (*Store) CreateRepo ¶
CreateRepo implements ingestion.Store.
func (*Store) DB ¶
DB returns the underlying connection, for callers (such as tests) that need to observe storage directly rather than through the port.