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 (Auditor) Audit ¶
func (a Auditor) Audit(_ context.Context, req sdk.AuditRequest) (sdk.AuditResult, error)
func (Auditor) Descriptor ¶
func (a Auditor) Descriptor() sdk.AuditorDescriptor
Click to show internal directories.
Click to hide internal directories.