scanner

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL