Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanResult ¶
type ScanResult struct {
Changed []lib.Task // tasks whose content changed (new or modified)
Deleted []lib.TaskIdentifier // task identifiers that were previously known but are now gone
}
ScanResult holds the outcome of a single vault scan cycle.
type VaultScanner ¶
type VaultScanner interface {
// Run starts the polling loop. Blocks until ctx is cancelled.
Run(ctx context.Context) error
// Results returns a channel that receives ScanResult on each cycle.
Results() <-chan ScanResult
}
func NewVaultScanner ¶
func NewVaultScanner( gitClient gitclient.GitClient, taskDir string, pollInterval time.Duration, ) VaultScanner
NewVaultScanner creates a VaultScanner that polls git and scans the task directory.
Click to show internal directories.
Click to hide internal directories.