Documentation ¶
Index ¶
- type Advisory
- type ComponentMetadatum
- type CustomAdvisory
- type DBTX
- type DependencyHealth
- type DepsdevCfe
- type DepsdevDeprecated
- type DepsdevLicense
- type ExternalLicense
- type InsertAdvisoryForPartialRenovatePackageParams
- type InsertAdvisoryForPartialSBOMPackageParams
- type InsertAdvisoryParams
- type Owner
- type Queries
- func (q *Queries) InsertAdvisory(ctx context.Context, arg InsertAdvisoryParams) error
- func (q *Queries) InsertAdvisoryForPartialRenovatePackage(ctx context.Context, arg InsertAdvisoryForPartialRenovatePackageParams) (int64, error)
- func (q *Queries) InsertAdvisoryForPartialSBOMPackage(ctx context.Context, arg InsertAdvisoryForPartialSBOMPackageParams) (int64, error)
- func (q *Queries) RetrieveDistinctReposAndPackages(ctx context.Context) ([]RetrieveDistinctReposAndPackagesRow, error)
- func (q *Queries) RetrieveDistinctReposAndPackagesWithDependencyHealth(ctx context.Context) ([]RetrieveDistinctReposAndPackagesWithDependencyHealthRow, error)
- func (q *Queries) RetrieveDistinctReposAndPackagesWithLicenses(ctx context.Context) ([]RetrieveDistinctReposAndPackagesWithLicensesRow, error)
- func (q *Queries) RetrievePolicyViolations(ctx context.Context) ([]RetrievePolicyViolationsRow, error)
- func (q *Queries) RetrievePolicyViolationsLike(ctx context.Context, arg RetrievePolicyViolationsLikeParams) ([]RetrievePolicyViolationsLikeRow, error)
- func (q *Queries) RetrieveRepoKeysForPolicyViolationResult(ctx context.Context, arg RetrieveRepoKeysForPolicyViolationResultParams) ([]RetrieveRepoKeysForPolicyViolationResultRow, error)
- func (q *Queries) RetrieveRepositoryMetadata(ctx context.Context) ([]RepositoryMetadatum, error)
- func (q *Queries) RetrieveRowsForPolicyEvaluation(ctx context.Context, arg RetrieveRowsForPolicyEvaluationParams) ([]RetrieveRowsForPolicyEvaluationRow, error)
- func (q *Queries) RetrieveRowsForPolicyEvaluation_Base(ctx context.Context, arg RetrieveRowsForPolicyEvaluation_BaseParams) ([]RetrieveRowsForPolicyEvaluation_BaseRow, error)
- func (q *Queries) RetrieveRowsForPolicyEvaluation_Base_DependencyHealth(ctx context.Context, ...) ([]RetrieveRowsForPolicyEvaluation_Base_DependencyHealthRow, error)
- func (q *Queries) RetrieveRowsForPolicyEvaluation_Base_Licenses(ctx context.Context, arg RetrieveRowsForPolicyEvaluation_Base_LicensesParams) ([]RetrieveRowsForPolicyEvaluation_Base_LicensesRow, error)
- func (q *Queries) RetrieveRowsForPolicyEvaluation_Base_RepoKey(ctx context.Context, arg RetrieveRowsForPolicyEvaluation_Base_RepoKeyParams) ([]RetrieveRowsForPolicyEvaluation_Base_RepoKeyRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Renovate
- type RenovateUpdate
- type RepositoryMetadatum
- type RetrieveDistinctReposAndPackagesRow
- type RetrieveDistinctReposAndPackagesWithDependencyHealthRow
- type RetrieveDistinctReposAndPackagesWithLicensesRow
- type RetrievePolicyViolationsLikeParams
- type RetrievePolicyViolationsLikeRow
- type RetrievePolicyViolationsRow
- type RetrieveRepoKeysForPolicyViolationResultParams
- type RetrieveRepoKeysForPolicyViolationResultRow
- type RetrieveRowsForPolicyEvaluationParams
- type RetrieveRowsForPolicyEvaluationRow
- type RetrieveRowsForPolicyEvaluation_BaseParams
- type RetrieveRowsForPolicyEvaluation_BaseRow
- type RetrieveRowsForPolicyEvaluation_Base_DependencyHealthParams
- type RetrieveRowsForPolicyEvaluation_Base_DependencyHealthRow
- type RetrieveRowsForPolicyEvaluation_Base_LicensesParams
- type RetrieveRowsForPolicyEvaluation_Base_LicensesRow
- type RetrieveRowsForPolicyEvaluation_Base_RepoKeyParams
- type RetrieveRowsForPolicyEvaluation_Base_RepoKeyRow
- type Sbom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advisory ¶ added in v0.85.0
type Advisory struct { Platform string Organisation string Repo string PackageName string Version string CurrentVersion sql.NullString PackageManager string PackageFilePath string DepTypes string Level string AdvisoryType string Description string SupportedUntil sql.NullString EolFrom sql.NullString }
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 CustomAdvisory ¶ added in v0.85.0
type CustomAdvisory struct { PackagePattern string PackageManager string Version sql.NullString VersionMatchStrategy sql.NullString Level string AdvisoryType string Description string }
type DependencyHealth ¶ added in v0.76.0
type DependencyHealth struct { PackageName string PackageType string ScorecardScore sql.NullFloat64 ScorecardCodereview sql.NullInt64 ScorecardMaintained sql.NullInt64 ScorecardCiibestpractices sql.NullInt64 ScorecardLicense sql.NullInt64 ScorecardDangerousworkflow sql.NullInt64 ScorecardPackaging sql.NullInt64 ScorecardTokenpermissions sql.NullInt64 ScorecardSignedreleases sql.NullInt64 ScorecardBranchprotection sql.NullInt64 ScorecardBinaryartifacts sql.NullInt64 ScorecardFuzzing sql.NullInt64 ScorecardSecuritypolicy sql.NullInt64 ScorecardSast sql.NullInt64 ScorecardVulnerabilities sql.NullInt64 ScorecardPinneddependencies sql.NullInt64 EcosystemsRepoArchived sql.NullBool EcosystemsRepoPushedAt sql.NullString EcosystemsRepoUpdatedAt sql.NullString EcosystemsRepoLastSyncedAt sql.NullString EcosystemsLastSyncedAt sql.NullString EcosystemsLatestReleasePublishedAt sql.NullString EcosystemsStatus sql.NullString EcosystemsFunding sql.NullString }
type DepsdevCfe ¶ added in v0.57.0
type DepsdevDeprecated ¶ added in v0.99.0
type DepsdevLicense ¶ added in v0.57.0
type ExternalLicense ¶ added in v0.59.0
type InsertAdvisoryForPartialRenovatePackageParams ¶ added in v0.102.0
type InsertAdvisoryForPartialRenovatePackageParams struct { PackageName string Version string CurrentVersion sql.NullString PackageManager string PackageFilePath string DepTypes string Level string AdvisoryType string Description string SupportedUntil sql.NullString EolFrom sql.NullString }
type InsertAdvisoryForPartialSBOMPackageParams ¶ added in v0.102.0
type InsertAdvisoryForPartialSBOMPackageParams struct { PackageName string Version string CurrentVersion sql.NullString PackageManager string PackageFilePath string DepTypes string Level string AdvisoryType string Description string SupportedUntil sql.NullString EolFrom sql.NullString VersioncurrentVersion sql.NullString }
type InsertAdvisoryParams ¶ added in v0.102.0
type InsertAdvisoryParams struct { Platform string Organisation string Repo string PackageName string Version string CurrentVersion sql.NullString PackageManager string PackageFilePath string DepTypes string Level string AdvisoryType string Description string SupportedUntil sql.NullString EolFrom sql.NullString }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) InsertAdvisory ¶ added in v0.102.0
func (q *Queries) InsertAdvisory(ctx context.Context, arg InsertAdvisoryParams) error
func (*Queries) InsertAdvisoryForPartialRenovatePackage ¶ added in v0.102.0
func (*Queries) InsertAdvisoryForPartialSBOMPackage ¶ added in v0.102.0
func (*Queries) RetrieveDistinctReposAndPackages ¶
func (q *Queries) RetrieveDistinctReposAndPackages(ctx context.Context) ([]RetrieveDistinctReposAndPackagesRow, error)
func (*Queries) RetrieveDistinctReposAndPackagesWithDependencyHealth ¶ added in v0.102.0
func (q *Queries) RetrieveDistinctReposAndPackagesWithDependencyHealth(ctx context.Context) ([]RetrieveDistinctReposAndPackagesWithDependencyHealthRow, error)
func (*Queries) RetrieveDistinctReposAndPackagesWithLicenses ¶ added in v0.102.0
func (q *Queries) RetrieveDistinctReposAndPackagesWithLicenses(ctx context.Context) ([]RetrieveDistinctReposAndPackagesWithLicensesRow, error)
func (*Queries) RetrievePolicyViolations ¶
func (q *Queries) RetrievePolicyViolations(ctx context.Context) ([]RetrievePolicyViolationsRow, error)
func (*Queries) RetrievePolicyViolationsLike ¶
func (q *Queries) RetrievePolicyViolationsLike(ctx context.Context, arg RetrievePolicyViolationsLikeParams) ([]RetrievePolicyViolationsLikeRow, error)
func (*Queries) RetrieveRepoKeysForPolicyViolationResult ¶ added in v0.102.0
func (q *Queries) RetrieveRepoKeysForPolicyViolationResult(ctx context.Context, arg RetrieveRepoKeysForPolicyViolationResultParams) ([]RetrieveRepoKeysForPolicyViolationResultRow, error)
func (*Queries) RetrieveRepositoryMetadata ¶ added in v0.67.0
func (q *Queries) RetrieveRepositoryMetadata(ctx context.Context) ([]RepositoryMetadatum, error)
func (*Queries) RetrieveRowsForPolicyEvaluation ¶ added in v0.102.0
func (q *Queries) RetrieveRowsForPolicyEvaluation(ctx context.Context, arg RetrieveRowsForPolicyEvaluationParams) ([]RetrieveRowsForPolicyEvaluationRow, error)
This is not used via sqlc, but via manual query building NOTE this is generated manually via taking the maximal result of `EvaluationInputOpts#Query()`
func (*Queries) RetrieveRowsForPolicyEvaluation_Base ¶ added in v0.102.0
func (q *Queries) RetrieveRowsForPolicyEvaluation_Base(ctx context.Context, arg RetrieveRowsForPolicyEvaluation_BaseParams) ([]RetrieveRowsForPolicyEvaluation_BaseRow, error)
func (*Queries) RetrieveRowsForPolicyEvaluation_Base_DependencyHealth ¶ added in v0.102.0
func (q *Queries) RetrieveRowsForPolicyEvaluation_Base_DependencyHealth(ctx context.Context, arg RetrieveRowsForPolicyEvaluation_Base_DependencyHealthParams) ([]RetrieveRowsForPolicyEvaluation_Base_DependencyHealthRow, error)
func (*Queries) RetrieveRowsForPolicyEvaluation_Base_Licenses ¶ added in v0.102.0
func (q *Queries) RetrieveRowsForPolicyEvaluation_Base_Licenses(ctx context.Context, arg RetrieveRowsForPolicyEvaluation_Base_LicensesParams) ([]RetrieveRowsForPolicyEvaluation_Base_LicensesRow, error)
func (*Queries) RetrieveRowsForPolicyEvaluation_Base_RepoKey ¶ added in v0.102.0
func (q *Queries) RetrieveRowsForPolicyEvaluation_Base_RepoKey(ctx context.Context, arg RetrieveRowsForPolicyEvaluation_Base_RepoKeyParams) ([]RetrieveRowsForPolicyEvaluation_Base_RepoKeyRow, error)
type RenovateUpdate ¶
type RepositoryMetadatum ¶ added in v0.67.0
type RepositoryMetadatum struct { Platform string Organisation string Repo string IsMonorepo bool IsFork bool RepositoryType string RepositoryUsage sql.NullString Visibility string Description sql.NullString AdditionalMetadata sql.NullString }
type RetrieveDistinctReposAndPackagesRow ¶
type RetrieveDistinctReposAndPackagesRow struct { Platform string Organisation string Repo string PackageName string Version string CurrentVersion sql.NullString PackageManager string DepTypes string PackageFilePath string Licenses string PackageName_2 sql.NullString PackageType sql.NullString ScorecardScore sql.NullFloat64 ScorecardCodereview sql.NullInt64 ScorecardMaintained sql.NullInt64 ScorecardCiibestpractices sql.NullInt64 ScorecardLicense sql.NullInt64 ScorecardDangerousworkflow sql.NullInt64 ScorecardPackaging sql.NullInt64 ScorecardTokenpermissions sql.NullInt64 ScorecardSignedreleases sql.NullInt64 ScorecardBranchprotection sql.NullInt64 ScorecardBinaryartifacts sql.NullInt64 ScorecardFuzzing sql.NullInt64 ScorecardSecuritypolicy sql.NullInt64 ScorecardSast sql.NullInt64 ScorecardVulnerabilities sql.NullInt64 ScorecardPinneddependencies sql.NullInt64 EcosystemsRepoArchived sql.NullBool EcosystemsRepoPushedAt sql.NullString EcosystemsRepoUpdatedAt sql.NullString EcosystemsRepoLastSyncedAt sql.NullString EcosystemsLastSyncedAt sql.NullString EcosystemsLatestReleasePublishedAt sql.NullString EcosystemsStatus sql.NullString EcosystemsFunding sql.NullString }
type RetrieveDistinctReposAndPackagesWithDependencyHealthRow ¶ added in v0.102.0
type RetrieveDistinctReposAndPackagesWithDependencyHealthRow struct { Platform string Organisation string Repo string PackageName string Version string CurrentVersion sql.NullString PackageManager string DepTypes string PackageFilePath string PackageName_2 sql.NullString PackageType sql.NullString ScorecardScore sql.NullFloat64 ScorecardCodereview sql.NullInt64 ScorecardMaintained sql.NullInt64 ScorecardCiibestpractices sql.NullInt64 ScorecardLicense sql.NullInt64 ScorecardDangerousworkflow sql.NullInt64 ScorecardPackaging sql.NullInt64 ScorecardTokenpermissions sql.NullInt64 ScorecardSignedreleases sql.NullInt64 ScorecardBranchprotection sql.NullInt64 ScorecardBinaryartifacts sql.NullInt64 ScorecardFuzzing sql.NullInt64 ScorecardSecuritypolicy sql.NullInt64 ScorecardSast sql.NullInt64 ScorecardVulnerabilities sql.NullInt64 ScorecardPinneddependencies sql.NullInt64 EcosystemsRepoArchived sql.NullBool EcosystemsRepoPushedAt sql.NullString EcosystemsRepoUpdatedAt sql.NullString EcosystemsRepoLastSyncedAt sql.NullString EcosystemsLastSyncedAt sql.NullString EcosystemsLatestReleasePublishedAt sql.NullString EcosystemsStatus sql.NullString EcosystemsFunding sql.NullString }
type RetrieveDistinctReposAndPackagesWithLicensesRow ¶ added in v0.102.0
type RetrievePolicyViolationsLikeParams ¶
type RetrievePolicyViolationsLikeParams struct { Platform string Org string Repo string Owner interface{} Level string }
type RetrieveRepoKeysForPolicyViolationResultParams ¶ added in v0.102.0
type RetrieveRepoKeysForPolicyViolationResultParams struct { PackageName string Version string CurrentVersion sql.NullString PackageManager string }
type RetrieveRepoKeysForPolicyViolationResultRow ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluationParams ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluationRow ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluationRow struct { Platform string Organisation string Repo string PackageName string Version string CurrentVersion sql.NullString PackageManager string PackageFilePath string DepTypes string IsMonorepo sql.NullBool IsFork sql.NullBool RepositoryType sql.NullString RepositoryUsage sql.NullString Visibility sql.NullString Description sql.NullString AdditionalMetadata sql.NullString Licenses string ScorecardScore sql.NullFloat64 ScorecardCodereview sql.NullInt64 ScorecardMaintained sql.NullInt64 ScorecardCiibestpractices sql.NullInt64 ScorecardLicense sql.NullInt64 ScorecardDangerousworkflow sql.NullInt64 ScorecardPackaging sql.NullInt64 ScorecardTokenpermissions sql.NullInt64 ScorecardSignedreleases sql.NullInt64 ScorecardBranchprotection sql.NullInt64 ScorecardBinaryartifacts sql.NullInt64 ScorecardFuzzing sql.NullInt64 ScorecardSecuritypolicy sql.NullInt64 ScorecardSast sql.NullInt64 ScorecardVulnerabilities sql.NullInt64 ScorecardPinneddependencies sql.NullInt64 EcosystemsRepoArchived sql.NullBool EcosystemsRepoPushedAt sql.NullString EcosystemsRepoUpdatedAt sql.NullString EcosystemsRepoLastSyncedAt sql.NullString EcosystemsLastSyncedAt sql.NullString EcosystemsLatestReleasePublishedAt sql.NullString EcosystemsStatus sql.NullString EcosystemsFunding sql.NullString }
type RetrieveRowsForPolicyEvaluation_BaseParams ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluation_BaseRow ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluation_Base_DependencyHealthParams ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluation_Base_DependencyHealthRow ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluation_Base_DependencyHealthRow struct { PackageName string Version string CurrentVersion sql.NullString PackageManager string PackageFilePath string DepTypes string PackageName_2 sql.NullString PackageType sql.NullString ScorecardScore sql.NullFloat64 ScorecardCodereview sql.NullInt64 ScorecardMaintained sql.NullInt64 ScorecardCiibestpractices sql.NullInt64 ScorecardLicense sql.NullInt64 ScorecardDangerousworkflow sql.NullInt64 ScorecardPackaging sql.NullInt64 ScorecardTokenpermissions sql.NullInt64 ScorecardSignedreleases sql.NullInt64 ScorecardBranchprotection sql.NullInt64 ScorecardBinaryartifacts sql.NullInt64 ScorecardFuzzing sql.NullInt64 ScorecardSecuritypolicy sql.NullInt64 ScorecardSast sql.NullInt64 ScorecardVulnerabilities sql.NullInt64 ScorecardPinneddependencies sql.NullInt64 EcosystemsRepoArchived sql.NullBool EcosystemsRepoPushedAt sql.NullString EcosystemsRepoUpdatedAt sql.NullString EcosystemsRepoLastSyncedAt sql.NullString EcosystemsLastSyncedAt sql.NullString EcosystemsLatestReleasePublishedAt sql.NullString EcosystemsStatus sql.NullString EcosystemsFunding sql.NullString }
type RetrieveRowsForPolicyEvaluation_Base_LicensesParams ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluation_Base_LicensesRow ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluation_Base_RepoKeyParams ¶ added in v0.102.0
type RetrieveRowsForPolicyEvaluation_Base_RepoKeyRow ¶ added in v0.102.0
type Sbom ¶
type Sbom struct { ComponentName string PackageName string Version sql.NullString CurrentVersion sql.NullString PackageType string PackageUrl string }
Click to show internal directories.
Click to hide internal directories.