Documentation ¶
Index ¶
- Variables
- func IsKnownType(purlType string) bool
- func NewImporter() importer
- func NewParser() parser
- func ToPurl(dep Dependency) *packageurl.PackageURL
- type Dependency
- type DependencyUpdate
- type Diff
- type HashCode
- type Metadata
- type PackageDataDependency
- type PackageDataDependencyUpdate
- type ParsingSource
- type PurlModifier
- type PurlModifierOpts
- type PurlTypeDeriver
- type Renovate
- func (*Renovate) CreateTables(ctx context.Context, sqlDB *sql.DB) error
- func (*Renovate) Name() string
- func (*Renovate) QueryDistinctProjects(ctx context.Context, sqlDB *sql.DB, queryParams queries.DistinctProjectParams) ([]queries.DistinctProject, error)
- func (*Renovate) QueryGolangCILint(ctx context.Context, sqlDB *sql.DB) (result queries.GolangCILintResult, err error)
- func (*Renovate) QueryMostPopularDockerImages(ctx context.Context, sqlDB *sql.DB) (result queries.MostPopularDockerImagesResult, err error)
- func (*Renovate) QueryMostPopularPackageManagers(ctx context.Context, sqlDB *sql.DB) ([]queries.MostPopularPackageManagersRow, error)
- type SimplifiedDependencyKey
Constants ¶
This section is empty.
Variables ¶
View Source
var PurlModifiers []PurlModifier
View Source
var PurlTypeDerivers []PurlTypeDeriver
Functions ¶
func IsKnownType ¶ added in v0.76.0
func NewImporter ¶
func NewImporter() importer
func ToPurl ¶ added in v0.76.0
func ToPurl(dep Dependency) *packageurl.PackageURL
Types ¶
type Dependency ¶
type Dependency struct { domain.Dependency Datasource string DepTypes []string PackageType string PackageURL string }
func RetrieveAll ¶ added in v0.4.0
type DependencyUpdate ¶ added in v0.14.0
type DependencyUpdate struct { domain.DependencyUpdate Datasource string }
type Diff ¶ added in v0.111.0
type Diff struct { // Notes contains any additional notes that should be presented to the user, as-is Notes []string `json:"notes"` Additions []simplifiedDependency `json:"additions"` Modification []simplifiedDependencyDiff `json:"modification"` Deletion []simplifiedDependency `json:"deletion"` // IsNew notes whether the RepoKey being scanned was not present in the previous data (i.e. it hasn't been scanned before) IsNew bool `json:"isNew"` // IsDeletion notes whether the RepoKey being scanned is no longer present in the new data (i.e. it was previously scanned, and has now been deleted) IsDeletion bool `json:"isDeletion"` }
type Metadata ¶ added in v0.111.0
type Metadata struct { // ParsingSource is the underlying type of data that was parsed ParsingSource ParsingSource // Major is the major version of Renovate being used i.e. `38` Major *int }
type PackageDataDependency ¶ added in v0.111.0
type PackageDataDependency struct { DepName string `json:"depName"` PackageName string `json:"packageName"` // PackageManager comes from the map key Datasource string `json:"datasource"` DepType string `json:"depType"` DepTypes []string `json:"depTypes"` CurrentValue string `json:"currentValue"` LockedVersion string `json:"lockedVersion"` FixedVersion string `json:"fixedVersion"` CurrentVersion string `json:"currentVersion"` CurrentDigest string `json:"currentDigest"` Updates []PackageDataDependencyUpdate `json:"updates"` }
type PackageDataDependencyUpdate ¶ added in v0.111.0
type ParsingSource ¶ added in v0.111.0
type ParsingSource string
const ( // ParsingSourceRenovateGraph indicates that this Renovate data was parsed from a data export produced by `renovate-graph` (https://gitlab.com/tanna.dev/renovate-graph/) ParsingSourceRenovateGraph ParsingSource = "renovate-graph" // ParsingSourceRenovateReport indicates that this Renovate was produced by a Renovate report (see https://dmd.tanna.dev/cookbooks/consuming-renovate-debug-logs/ for more details) ParsingSourceRenovateReport ParsingSource = "renovate-report" // ParsingSourceRenovateDebugLogs indicates that this Renovate was produced by parsing the debug logs from a Renovate instance (see https://dmd.tanna.dev/cookbooks/consuming-renovate-report/for more details) ParsingSourceRenovateDebugLogs ParsingSource = "renovate-debug-logs" )
type PurlModifier ¶ added in v0.78.0
type PurlModifier func(in PurlModifierOpts, dep Dependency) (result PurlModifierOpts, found bool)
type PurlModifierOpts ¶ added in v0.78.0
type PurlTypeDeriver ¶ added in v0.76.0
type Renovate ¶ added in v0.15.1
type Renovate struct{}
func (*Renovate) CreateTables ¶ added in v0.15.1
func (*Renovate) QueryDistinctProjects ¶ added in v0.18.0
func (*Renovate) QueryDistinctProjects(ctx context.Context, sqlDB *sql.DB, queryParams queries.DistinctProjectParams) ([]queries.DistinctProject, error)
func (*Renovate) QueryGolangCILint ¶ added in v0.15.1
func (*Renovate) QueryMostPopularDockerImages ¶ added in v0.15.1
func (*Renovate) QueryMostPopularPackageManagers ¶ added in v0.15.1
type SimplifiedDependencyKey ¶ added in v0.111.0
type SimplifiedDependencyKey string
SimplifiedDependencyKey is a map key for a given SimplifiedDependency, which takes into account key metadata for a SimplifiedDependency for the purpose of partial deduplication
Source Files ¶
Click to show internal directories.
Click to hide internal directories.