uv

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ExportSBOM(inputDir string, opts *scaplugin.Options) (Sbom, error)
}

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 MockClient added in v0.9.1

type MockClient struct {
	CalledDirs []string
	ReturnErr  error
	ErrorDirs  map[string]error
}

func (*MockClient) ExportSBOM added in v0.9.1

func (m *MockClient) ExportSBOM(inputDir string, _ *scaplugin.Options) (Sbom, error)

type Plugin

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

func NewUvPlugin

func NewUvPlugin(client Client, snykClient *snykclient.SnykClient, remoteRepoURL string) Plugin

func (Plugin) BuildFindingsFromDir

func (p Plugin) BuildFindingsFromDir(
	ctx context.Context,
	inputDir string,
	options *scaplugin.Options,
	log logger.Logger,
) ([]scaplugin.Finding, error)

type Sbom added in v0.9.1

type Sbom []byte

type Version

type Version = [3]int

type WorkspacePackage added in v0.9.1

type WorkspacePackage struct {
	Name    string
	Version string
	Path    string // Relative path to the workspace package directory
}

Jump to

Keyboard shortcuts

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