-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Keith Zantow <kzantow@gmail.com>
- Loading branch information
Showing
16 changed files
with
219 additions
and
32 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
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 |
---|---|---|
@@ -1,7 +1,24 @@ | ||
package options | ||
|
||
import "github.com/anchore/clio" | ||
|
||
type javaConfig struct { | ||
UseNetwork bool `yaml:"use-network" json:"use-network" mapstructure:"use-network"` | ||
MavenURL string `yaml:"maven-url" json:"maven-url" mapstructure:"maven-url"` | ||
MaxParentRecursiveDepth int `yaml:"max-parent-recursive-depth" json:"max-parent-recursive-depth" mapstructure:"max-parent-recursive-depth"` | ||
} | ||
|
||
var _ interface { | ||
clio.FieldDescriber | ||
} = (*javaConfig)(nil) | ||
|
||
func (o *javaConfig) DescribeFields(descriptions clio.FieldDescriptionSet) { | ||
descriptions.Add(&o.UseNetwork, `enables Syft to use the network to fill in more detailed information about artifacts | ||
currently this enables searching maven-url for license data | ||
when running across pom.xml files that could have more information, syft will | ||
explicitly search maven for license information by querying the online pom when this is true | ||
this option is helpful for when the parent pom has more data, | ||
that is not accessible from within the final built artifact`) | ||
descriptions.Add(&o.MavenURL, `maven repository to use, defaults to Maven central`) | ||
descriptions.Add(&o.MaxParentRecursiveDepth, `depth to recursively resolve parent POMs`) | ||
} |
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 |
---|---|---|
@@ -1,6 +1,17 @@ | ||
package options | ||
|
||
import "github.com/anchore/clio" | ||
|
||
type javaScriptConfig struct { | ||
SearchRemoteLicenses bool `json:"search-remote-licenses" yaml:"search-remote-licenses" mapstructure:"search-remote-licenses"` | ||
NpmBaseURL string `json:"npm-base-url" yaml:"npm-base-url" mapstructure:"npm-base-url"` | ||
} | ||
|
||
var _ interface { | ||
clio.FieldDescriber | ||
} = (*javaScriptConfig)(nil) | ||
|
||
func (o *javaScriptConfig) DescribeFields(descriptions clio.FieldDescriptionSet) { | ||
descriptions.Add(&o.SearchRemoteLicenses, `enables Syft to use the network to fill in more detailed license information`) | ||
descriptions.Add(&o.NpmBaseURL, `base NPM url to use`) | ||
} |
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 |
---|---|---|
@@ -1,5 +1,18 @@ | ||
package options | ||
|
||
import "github.com/anchore/clio" | ||
|
||
type pythonConfig struct { | ||
GuessUnpinnedRequirements bool `json:"guess-unpinned-requirements" yaml:"guess-unpinned-requirements" mapstructure:"guess-unpinned-requirements"` | ||
} | ||
|
||
var _ interface { | ||
clio.FieldDescriber | ||
} = (*pythonConfig)(nil) | ||
|
||
func (o *pythonConfig) DescribeFields(descriptions clio.FieldDescriptionSet) { | ||
descriptions.Add(&o.GuessUnpinnedRequirements, `when running across entries in requirements.txt that do not specify a specific version | ||
(e.g. "sqlalchemy >= 1.0.0, <= 2.0.0, != 3.0.0, <= 3.0.0"), attempt to guess what the version could | ||
be based on the version requirements specified (e.g. "1.0.0"). When enabled the lowest expressible version | ||
when given an arbitrary constraint will be used (even if that version may not be available/published).`) | ||
} |
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
Oops, something went wrong.