Documentation ¶
Index ¶
- func AddDiffScanRecord(rootPath string, isComprehensive bool, d diff.ScanDiff) error
- func AddFullScanRecord(t tree.FileTree) error
- func GetAllScansDiff() *map[string]DiffRecords
- func GetAllScansFull() *map[string]ScanRecords
- func GetLastScanFilename(rootPath string, isDiff bool) string
- func GetNewScanFilename(rootPath string, isDiff bool) string
- func GetScanFilename(rootPath string, index int, isDiff bool) string
- func Load() error
- func RevertDiffScanRecord(rootPath string, isComprehensive bool, d diff.ScanDiff) error
- func RevertFullScanRecord(t tree.FileTree) error
- type AllRecords
- type DiffRecords
- type Record
- type ScanRecords
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDiffScanRecord ¶
Record that a new scan has been generated (i.e. .tree file)
func AddFullScanRecord ¶
Record that a new diff has been generated (i.e. .diff file)
func GetAllScansDiff ¶
func GetAllScansDiff() *map[string]DiffRecords
func GetAllScansFull ¶
func GetAllScansFull() *map[string]ScanRecords
func GetLastScanFilename ¶
Get the filename of the LAST completed scan (for either a 'diff' or 'full' scan)
func GetNewScanFilename ¶
Get the filename for the NEXT scan (for either a 'diff' or 'full' scan)
func GetScanFilename ¶
Get the filename for a scan at an index (for either a 'diff' or 'full' scan)
func RevertDiffScanRecord ¶
Revert the record of the LAST generated scan (i.e. .tree file)
func RevertFullScanRecord ¶
Revert the record of the LAST generated diff (i.e. .diff file)
Types ¶
type AllRecords ¶
type AllRecords struct { Scans map[string]ScanRecords `json:"scans"` Diffs map[string]DiffRecords `json:"diffs"` }
func (*AllRecords) Flush ¶
func (s *AllRecords) Flush() error
type DiffRecords ¶
type DiffRecords struct {
Records []Record `json:"records"`
}
func GetScansDiff ¶
func GetScansDiff(path string) *DiffRecords
type ScanRecords ¶
func GetScansFull ¶
func GetScansFull(path string) *ScanRecords
Click to show internal directories.
Click to hide internal directories.