mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
add analyzer interface/controller and supporting package/catalog
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
type Scope struct {
|
||||
Option Option
|
||||
Trees []*tree.FileTree
|
||||
Image *image.Image
|
||||
}
|
||||
|
||||
func NewScope(img *image.Image, option Option) (Scope, error) {
|
||||
@@ -40,5 +41,6 @@ func NewScope(img *image.Image, option Option) (Scope, error) {
|
||||
return Scope{
|
||||
Option: option,
|
||||
Trees: trees,
|
||||
Image: img,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user