Documentation ¶
Index ¶
- func NewLinter(paths []string) (linter.Linter, error)
- func PreparePackageQuery(ctx context.Context, modules []Module) (rego.PreparedEvalQuery, error)
- func ReportPackages(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, platform string, ...) (table.Writer, error)
- type Level
- type Module
- type Policies
- type PolicyViolation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreparePackageQuery ¶
Types ¶
type Policies ¶
type Policies struct{}
func (*Policies) AnonymiseData ¶
func (*Policies) CreateTables ¶
type PolicyViolation ¶
type PolicyViolation struct { domain.Dependency DepTypes []string Level Level AdvisoryType advisory.AdvisoryType Description string }
func EvaluatePolicies ¶
func EvaluatePolicies(ctx context.Context, query rego.PreparedEvalQuery, sqlDB *sql.DB) ([]PolicyViolation, int, error)
func (PolicyViolation) DepTypesAsString ¶
func (v PolicyViolation) DepTypesAsString() string
Click to show internal directories.
Click to hide internal directories.