packageauditor

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auditor

type Auditor struct {
	DenyPackages       []string
	DenyGroups         []string
	ProtectedPackages  []string
	TyposquatThreshold float64
	TyposquatMode      string
}

Auditor protects against denied packages and suspiciously similar package names.

func (Auditor) Applicable

func (a Auditor) Applicable(_ context.Context, req sdk.AuditRequest) (bool, error)

func (Auditor) Audit

func (Auditor) Descriptor

func (a Auditor) Descriptor() sdk.AuditorDescriptor

func (Auditor) Ready

Jump to

Keyboard shortcuts

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