Documentation ¶
Index ¶
- Variables
- type ComponentMetadatum
- type DBTX
- type InsertPackageParams
- type Owner
- type Queries
- func (q *Queries) InsertPackage(ctx context.Context, arg InsertPackageParams) error
- func (q *Queries) QueryGolangCILint(ctx context.Context) ([]QueryGolangCILintRow, error)
- func (q *Queries) QueryMostPopularDockerImages(ctx context.Context) ([]QueryMostPopularDockerImagesRow, error)
- func (q *Queries) QueryMostPopularPackageManagers(ctx context.Context) ([]QueryMostPopularPackageManagersRow, error)
- func (q *Queries) RetrieveDistinctPackages(ctx context.Context) ([]RetrieveDistinctPackagesRow, error)
- func (q *Queries) RetrieveDistinctPackagesWithoutSensitivePackages(ctx context.Context) ([]RetrieveDistinctPackagesWithoutSensitivePackagesRow, error)
- func (q *Queries) RetrieveReposAndPackagesForMissingData(ctx context.Context) ([]RetrieveReposAndPackagesForMissingDataRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type QueryGolangCILintRow
- type QueryMostPopularDockerImagesRow
- type QueryMostPopularPackageManagersRow
- type RetrieveDistinctPackagesRow
- type RetrieveDistinctPackagesWithoutSensitivePackagesRow
- type RetrieveReposAndPackagesForMissingDataRow
- type Sbom
- type SensitivePackage
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateTablesQuery string
Functions ¶
This section is empty.
Types ¶
type ComponentMetadatum ¶ added in v0.100.0
type ComponentMetadatum struct { ComponentName string ParentComponentName sql.NullString Platform sql.NullString Organisation sql.NullString Repo sql.NullString Path sql.NullString Vendor sql.NullString Product sql.NullString ProductVersion sql.NullString Owner sql.NullString OwnerNotes sql.NullString ComponentType sql.NullString ComponentUsage sql.NullString Description sql.NullString AdditionalMetadata sql.NullString }
type InsertPackageParams ¶
type InsertPackageParams struct { ComponentName string PackageName string Version sql.NullString CurrentVersion sql.NullString PackageType string PackageUrl string }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) InsertPackage ¶
func (q *Queries) InsertPackage(ctx context.Context, arg InsertPackageParams) error
func (*Queries) QueryGolangCILint ¶ added in v0.65.0
func (q *Queries) QueryGolangCILint(ctx context.Context) ([]QueryGolangCILintRow, error)
TODO: revisit in https://gitlab.com/tanna.dev/dependency-management-data/-/issues/596 and make this a `left join`
func (*Queries) QueryMostPopularDockerImages ¶ added in v0.65.0
func (q *Queries) QueryMostPopularDockerImages(ctx context.Context) ([]QueryMostPopularDockerImagesRow, error)
func (*Queries) QueryMostPopularPackageManagers ¶ added in v0.65.0
func (q *Queries) QueryMostPopularPackageManagers(ctx context.Context) ([]QueryMostPopularPackageManagersRow, error)
func (*Queries) RetrieveDistinctPackages ¶ added in v0.44.0
func (q *Queries) RetrieveDistinctPackages(ctx context.Context) ([]RetrieveDistinctPackagesRow, error)
func (*Queries) RetrieveDistinctPackagesWithoutSensitivePackages ¶ added in v0.47.0
func (q *Queries) RetrieveDistinctPackagesWithoutSensitivePackages(ctx context.Context) ([]RetrieveDistinctPackagesWithoutSensitivePackagesRow, error)
func (*Queries) RetrieveReposAndPackagesForMissingData ¶ added in v0.46.0
func (q *Queries) RetrieveReposAndPackagesForMissingData(ctx context.Context) ([]RetrieveReposAndPackagesForMissingDataRow, error)
type QueryGolangCILintRow ¶ added in v0.65.0
type QueryGolangCILintRow struct { Platform sql.NullString Organisation sql.NullString Repo sql.NullString Owner sql.NullString }
type QueryMostPopularDockerImagesRow ¶ added in v0.65.0
type QueryMostPopularPackageManagersRow ¶ added in v0.65.0
type RetrieveDistinctPackagesRow ¶ added in v0.44.0
type RetrieveDistinctPackagesRow struct { PackageName string Version sql.NullString CurrentVersion sql.NullString PackageType string }
type RetrieveDistinctPackagesWithoutSensitivePackagesRow ¶ added in v0.47.0
type RetrieveDistinctPackagesWithoutSensitivePackagesRow struct { PackageName string Version sql.NullString CurrentVersion sql.NullString PackageType string }
type RetrieveReposAndPackagesForMissingDataRow ¶ added in v0.92.0
type RetrieveReposAndPackagesForMissingDataRow struct { ComponentName string PackageName string Version sql.NullString CurrentVersion sql.NullString PackageType string }
type Sbom ¶
type Sbom struct { ComponentName string PackageName string Version sql.NullString CurrentVersion sql.NullString PackageType string PackageUrl string }
type SensitivePackage ¶ added in v0.47.0
type SensitivePackage struct { PackagePattern string PackageManager sql.NullString MatchStrategy string }
Click to show internal directories.
Click to hide internal directories.