-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A root level config key matchers is added to customize the Matcher construction. Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
- Loading branch information
Showing
8 changed files
with
122 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package config | ||
|
||
import ( | ||
"gopkg.in/yaml.v3" | ||
) | ||
|
||
type Matchers struct { | ||
// A slice of strings representing which | ||
// matchers will be used. | ||
// | ||
// If nil all default Matchers will be used | ||
// | ||
// The following names are supported by default: | ||
// "alpine" | ||
// "aws" | ||
// "debian" | ||
// "oracle" | ||
// "photon" | ||
// "python" | ||
// "rhel" | ||
// "suse" | ||
// "ubuntu" | ||
// "crda" - remotematcher calls hosted api via RPC. | ||
Names []string `yaml:"names" json:"names"` | ||
// Config holds configuration blocks for MatcherFactories and Matchers, | ||
// keyed by name. | ||
Config map[string]yaml.Node `yaml:"config" json:"config"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters