mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
fix(scanner): rescan packages on remote storage via ScanFile
This commit is contained in:
@@ -65,6 +65,12 @@ func (m *Manager) SetFileSource(fs FileSource) {
|
||||
m.stateMu.Unlock()
|
||||
}
|
||||
|
||||
func (m *Manager) currentFileSource() FileSource {
|
||||
m.stateMu.Lock()
|
||||
defer m.stateMu.Unlock()
|
||||
return m.fileSource
|
||||
}
|
||||
|
||||
// Manager manages multiple security scanners
|
||||
type Manager struct {
|
||||
metadataStore metadata.MetadataStore
|
||||
|
||||
Reference in New Issue
Block a user