advisory

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func ReportAWS added in v0.28.0

func ReportAWS(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB) (table.Writer, error)

func ReportPackages added in v0.39.0

func ReportPackages(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, platform, org, repo, owner, advisoryType string, summaryOutput bool) (table.Writer, error)

Types

type Advisories

type Advisories struct{}

func (*Advisories) AnonymiseData

func (d *Advisories) AnonymiseData(ctx context.Context, sqlDB *sql.DB, orgs []string) (err error)

func (*Advisories) CreateTables

func (*Advisories) CreateTables(ctx context.Context, sqlDB *sql.DB) error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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