Documentation ¶
Index ¶
- Constants
- func CombineTablesIntoAdvisoriesTable(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, pw progress.Writer) error
- func ReportAWS(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB) (table.Writer, error)
- func ReportPackages(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, ...) (table.Writer, error)
- type Advisories
- type AdvisoryType
- type VersionMatchStrategy
Constants ¶
View Source
const ( AdvisoryTypeDeprecated = "DEPRECATED" AdvisoryTypeUnmaintained = "UNMAINTAINED" AdvisoryTypeSecurity = "SECURITY" AdvisoryTypePolicy = "POLICY" AdvisoryTypeOther = "OTHER" )
View Source
const ( VersionMatchStrategyAny = "ANY" VersionMatchStrategyEquals = "EQUALS" VersionMatchStrategyLessThan = "LESS_THAN" VersionMatchStrategyLessOrEqualTo = "LESS_EQUAL" VersionMatchStrategyGreaterThan = "GREATER_THAN" VersionMatchStrategyGreaterOrEqualTo = "GREATER_EQUAL" )
Variables ¶
This section is empty.
Functions ¶
func CombineTablesIntoAdvisoriesTable ¶ added in v0.71.0
func CombineTablesIntoAdvisoriesTable(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, pw progress.Writer) error
CombineTablesIntoAdvisoriesTable migrates package advisories from different tables within dependency-management-data into the `advisories` table, for easier retrieval of data
Types ¶
type Advisories ¶
type Advisories struct{}
func (*Advisories) AnonymiseData ¶
func (*Advisories) CreateTables ¶
func (*Advisories) Name ¶
func (*Advisories) Name() string
type AdvisoryType ¶
type AdvisoryType = string
AdvisoryType is the type of package advisory that is present
type VersionMatchStrategy ¶
type VersionMatchStrategy = string
VersionMatchStrategy defines how the Advisory.Version, if present, should be compared lexicographically with a CurrentVersion
Source Files ¶
Click to show internal directories.
Click to hide internal directories.