uv

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UvLockFileName          = "uv.lock"
	RequirementsTxtFileName = "requirements.txt"
	PyprojectTomlFileName   = "pyproject.toml"
)

Variables

This section is empty.

Functions

func HasUvLockFile

func HasUvLockFile(dir string, logger *zerolog.Logger) bool

This is copied from cli-extension-os-flows. We could export from here via GAF config and re-use if this duplication becomes a problem, but this duplication is only temporary.

Types

type Client

type Client interface {
	ExportSBOM(inputDir string) (*scaplugin.Finding, error)
	ShouldExportSBOM(inputDir string, logger *zerolog.Logger) bool
}

func NewUvClient

func NewUvClient() Client

func NewUvClientWithExecutor

func NewUvClientWithExecutor(uvBinary string, executor cmdExecutor) Client

NewUvClientWithExecutor creates a new uv client with a custom executor for testing.

func NewUvClientWithPath

func NewUvClientWithPath(uvBinary string) Client

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func NewUvPlugin

func NewUvPlugin(client Client) Plugin

func (Plugin) BuildFindingsFromDir

func (p Plugin) BuildFindingsFromDir(inputDir string, _ scaplugin.Options, logger *zerolog.Logger) ([]scaplugin.Finding, error)

type Version

type Version = [3]int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL