Documentation ¶
Index ¶
- Constants
- func GenerateAdvisories(ctx context.Context, logger log.Logger, sqlDB *sql.DB, pw progress.Writer) error
- func ReportAWS(ctx context.Context, logger log.Logger, sqlDB *sql.DB) (table.Writer, error)
- func ReportRenovate(ctx context.Context, logger log.Logger, sqlDB *sql.DB) (table.Writer, error)
- type Advisories
- type Advisory
- type AdvisoryType
- type VersionMatchStrategy
Constants ¶
View Source
const ( AdvisoryTypeDeprecated = "DEPRECATED" AdvisoryTypeUnmainatined = "UNMAINTAINED" AdvisoryTypeSecurity = "SECURITY" 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 GenerateAdvisories ¶
Types ¶
type Advisories ¶
type Advisories struct{}
func (*Advisories) AnonymiseData ¶
func (*Advisories) CreateTables ¶
func (*Advisories) Name ¶
func (*Advisories) Name() string
type Advisory ¶
type Advisory struct { // PackagePattern contains a simple wildcard-aware pattern of packages that these advisories are for // For example: // `github.com/gorilla/*` would expect to match `github.com/gorilla/mux` and `github.com/gorilla/` // `git*.com/jamietanna/*` would expect to match `gitlab.com/jamietanna/test` and `github.com/jamietanna/not-test` PackagePattern string PackageManager string // Version contains the version that is expected to match. If nil, will always match Version *string // VersionMatchStrategy: // // VersionMatchStrategy defines the way that the version is expected to lexicographically match. If nil, will always match VersionMatchStrategy *VersionMatchStrategy AdvisoryType AdvisoryType // Description describes why a given advisory is set on this package Description string }
Advisory contains a package advisory, which allows flagging packages (for an optional set of version(s)) for arbitrary reasons
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.