Documentation
¶
Index ¶
Constants ¶
View Source
const ( LockFileName = "uv.lock" RequirementsTxtFileName = "requirements.txt" PyprojectTomlFileName = "pyproject.toml" WorkspacePathProperty = "uv:workspace:path" IsProjectRootProperty = "uv:package:is_project_root" )
View Source
const PluginName = "uv"
Variables ¶
View Source
var ExcludedUVLockFileDirs = map[string]bool{ "node_modules": true, ".build": true, }
ExcludedUVLockFileDirs is a list of directories that are excluded from the uv.lock file search.
Functions ¶
func HasUvLockFile ¶ added in v1.22.0
HasUvLockFile checks if the specified directory contains a uv.lock file or the target file if provided. If searchDeep is true, the function will check if the directory contains a uv.lock file recursively. Otherwise, it will only check if the directory contains a uv.lock file.
Types ¶
type Client ¶ added in v0.32.3
type Client interface {
ExportSBOM(inputDir string, opts *scaecosystems.SCAPluginOptions) (Sbom, error)
}
func NewClientWithExecutor ¶ added in v0.32.3
NewClientWithExecutor creates a new uv client with a custom executor for testing.
func NewClientWithPath ¶ added in v0.32.3
type MockClient ¶ added in v0.32.3
func (*MockClient) ExportSBOM ¶ added in v0.32.3
func (m *MockClient) ExportSBOM(inputDir string, _ *ecosystems.SCAPluginOptions) (Sbom, error)
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func NewPlugin ¶ added in v0.32.3
func NewPlugin(client Client, converter conversion.SBOMConverter, remoteRepoURL string) Plugin
func (Plugin) BuildDepGraphsFromDir ¶
func (p Plugin) BuildDepGraphsFromDir( ctx context.Context, log logger.Logger, inputDir string, options *scaecosystems.SCAPluginOptions, ) (*scaecosystems.PluginResult, error)
type WorkspacePackage ¶ added in v0.32.3
Click to show internal directories.
Click to hide internal directories.