Skip to content

Commit

Permalink
config: add support for per-scanner configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed May 18, 2020
1 parent badcac4 commit 3ccc6e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"fmt"
"net/url"
"strings"

"gopkg.in/yaml.v3"
)

// Clair Modes
Expand Down Expand Up @@ -83,6 +85,8 @@ type Indexer struct {
//
// Whether Indexer nodes handle migrations to their database.
Migrations bool `yaml:"migrations"`
// Scanner allows for passing configuration options to layer scanners.
Scanner map[string]yaml.Node `yaml:"scanner"`
}

type Matcher struct {
Expand Down

0 comments on commit 3ccc6e0

Please sign in to comment.