diff options
Diffstat (limited to 'model')
| -rw-r--r-- | model/new.go | 5 | ||||
| -rw-r--r-- | model/source.go | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/model/new.go b/model/new.go index e83c314..94e19a8 100644 --- a/model/new.go +++ b/model/new.go @@ -21,8 +21,9 @@ func NewState(rootFs fs.FS, locations []string, indexers []Indexer, runners []Ru wg.Go(func() { _, dirName := filepath.Split(strings.TrimSuffix(loc, "/")) src := &Source{ - Path: loc, - Identity: identity.New(dirName), + Path: loc, + Identity: identity.New(dirName), + Whitelists: make(map[string][]string), } sources[i] = src loc = strings.TrimSuffix(loc, "/") diff --git a/model/source.go b/model/source.go index 60f4c3d..246929e 100644 --- a/model/source.go +++ b/model/source.go @@ -11,8 +11,9 @@ import ( type Source struct { identity.Identity Tags - Path string - Targets []Target + Path string + Targets []Target + Whitelists map[string][]string } // HydratedSource is a Source with additional hydration |
