Documentation
¶
Index ¶
- type CommaSeparatedString
- type GlobalOptions
- type PluginResult
- type PythonOptions
- type SCAPlugin
- type SCAPluginOptions
- func (o *SCAPluginOptions) WithAllProjects(allProjects bool) *SCAPluginOptions
- func (o *SCAPluginOptions) WithAllowOutOfSync(allowOutOfSync bool) *SCAPluginOptions
- func (o *SCAPluginOptions) WithExclude(exclude []string) *SCAPluginOptions
- func (o *SCAPluginOptions) WithFailFast(failFast bool) *SCAPluginOptions
- func (o *SCAPluginOptions) WithForceIncludeWorkspacePackages(forceIncludeWorkspacePackages bool) *SCAPluginOptions
- func (o *SCAPluginOptions) WithForceSingleGraph(forceSingleGraph bool) *SCAPluginOptions
- func (o *SCAPluginOptions) WithIncludeDev(includeDev bool) *SCAPluginOptions
- func (o *SCAPluginOptions) WithNoBuildIsolation(noBuildIsolation bool) *SCAPluginOptions
- func (o *SCAPluginOptions) WithProjectName(projectName string) *SCAPluginOptions
- func (o *SCAPluginOptions) WithRawFlags(rawflags string) *SCAPluginOptions
- func (o *SCAPluginOptions) WithTargetFile(targetFile string) *SCAPluginOptions
- type SCAResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommaSeparatedString ¶ added in v0.22.0
type CommaSeparatedString []string
CommaSeparatedString is a custom type that parses comma-separated values.
func (*CommaSeparatedString) UnmarshalText ¶ added in v0.22.0
func (c *CommaSeparatedString) UnmarshalText(text []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
type GlobalOptions ¶
type GlobalOptions struct {
TargetFile *string `arg:"--target-file"`
AllProjects bool `arg:"--all-projects"`
IncludeDev bool `arg:"--dev,-d"`
Exclude CommaSeparatedString `arg:"--exclude"`
FailFast bool `arg:"--fail-fast"`
AllowOutOfSync bool // Derived from --strict-out-of-sync (inverted); parsed in NewPluginOptionsFromRawFlags.
ForceSingleGraph bool `arg:"--force-single-graph"`
ForceIncludeWorkspacePackages bool `arg:"--internal-uv-workspace-packages"`
ProjectName *string `arg:"--project-name"`
RawFlags []string
}
GlobalOptions contains options that apply globally across all SCA plugins.
type PluginResult ¶ added in v0.32.1
type PythonOptions ¶
type PythonOptions struct {
NoBuildIsolation bool `arg:"--no-build-isolation"`
}
PythonOptions contains Python-specific options for dependency graph generation.
type SCAPlugin ¶
type SCAPlugin interface {
BuildDepGraphsFromDir(ctx context.Context, log logger.Logger, dir string, options *SCAPluginOptions) (*PluginResult, error)
}
SCAPlugin defines the interface for SCA plugins that build dependency graphs from a directory containing project files.
type SCAPluginOptions ¶
type SCAPluginOptions struct {
Global GlobalOptions
Python PythonOptions
}
SCAPluginOptions contains configuration options for SCA plugins, including global settings and language-specific options.
func NewPluginOptions ¶
func NewPluginOptions() *SCAPluginOptions
func NewPluginOptionsFromRawFlags ¶ added in v0.19.0
func NewPluginOptionsFromRawFlags(rawFlags []string) (*SCAPluginOptions, error)
func (*SCAPluginOptions) WithAllProjects ¶ added in v0.3.0
func (o *SCAPluginOptions) WithAllProjects(allProjects bool) *SCAPluginOptions
func (*SCAPluginOptions) WithAllowOutOfSync ¶ added in v0.32.3
func (o *SCAPluginOptions) WithAllowOutOfSync(allowOutOfSync bool) *SCAPluginOptions
func (*SCAPluginOptions) WithExclude ¶ added in v0.22.0
func (o *SCAPluginOptions) WithExclude(exclude []string) *SCAPluginOptions
func (*SCAPluginOptions) WithFailFast ¶ added in v0.32.3
func (o *SCAPluginOptions) WithFailFast(failFast bool) *SCAPluginOptions
func (*SCAPluginOptions) WithForceIncludeWorkspacePackages ¶ added in v0.32.3
func (o *SCAPluginOptions) WithForceIncludeWorkspacePackages(forceIncludeWorkspacePackages bool) *SCAPluginOptions
func (*SCAPluginOptions) WithForceSingleGraph ¶ added in v0.32.3
func (o *SCAPluginOptions) WithForceSingleGraph(forceSingleGraph bool) *SCAPluginOptions
func (*SCAPluginOptions) WithIncludeDev ¶ added in v0.17.3
func (o *SCAPluginOptions) WithIncludeDev(includeDev bool) *SCAPluginOptions
func (*SCAPluginOptions) WithNoBuildIsolation ¶ added in v0.13.0
func (o *SCAPluginOptions) WithNoBuildIsolation(noBuildIsolation bool) *SCAPluginOptions
func (*SCAPluginOptions) WithProjectName ¶ added in v1.3.0
func (o *SCAPluginOptions) WithProjectName(projectName string) *SCAPluginOptions
func (*SCAPluginOptions) WithRawFlags ¶ added in v0.18.0
func (o *SCAPluginOptions) WithRawFlags(rawflags string) *SCAPluginOptions
func (*SCAPluginOptions) WithTargetFile ¶
func (o *SCAPluginOptions) WithTargetFile(targetFile string) *SCAPluginOptions
type SCAResult ¶
type SCAResult struct {
DepGraph *depgraph.DepGraph `json:"depGraph,omitempty"`
ProjectDescriptor identity.ProjectDescriptor `json:"projectDescriptor"`
Error error `json:"error,omitempty"`
}
SCAResult represents the result of a Software Composition Analysis (SCA), containing the dependency graph and associated project descriptor.