db

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Owner

type Owner struct {
	Platform     string
	Organisation string
	Repo         string
	Owner        string
	Notes        sql.NullString
	UpdatedAt    string
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) ReportFunding added in v0.87.0

func (q *Queries) ReportFunding(ctx context.Context) ([]ReportFundingRow, error)

func (*Queries) ReportHacktoberfestForRepoKey added in v0.106.0

func (q *Queries) ReportHacktoberfestForRepoKey(ctx context.Context, repoKey domain.RepoKey, packageParams []ReportHacktoberfestForRepoKeyParams) ([]ReportHacktoberfestRow, error)

func (*Queries) RetrieveReposDependentOn

func (q *Queries) RetrieveReposDependentOn(ctx context.Context, arg RetrieveReposDependentOnParams) ([]RetrieveReposDependentOnRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Renovate

type Renovate struct {
	Platform        string
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	Digest          sql.NullString
	PackageManager  string
	PackageFilePath string
	Datasource      string
	DepTypes        string
	PackageType     string
	PackageUrl      string
}

type RenovateUpdate

type RenovateUpdate struct {
	Platform        string
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	Digest          sql.NullString
	PackageManager  string
	PackageFilePath string
	Datasource      string
	NewVersion      string
	NewDigest       sql.NullString
	UpdateType      string
}

type ReportFundingRow added in v0.87.0

type ReportFundingRow struct {
	PackageName       string
	PackageManager    string
	NumberUsages      string
	PercentageUsage   string
	TotalDependencies string
	NumberRepos       string
	PercentageRepos   string
	TotalRepos        string

	Funding map[string]string
	// contains filtered or unexported fields
}

type ReportHacktoberfestForRepoKeyParams added in v0.106.0

type ReportHacktoberfestForRepoKeyParams struct {
	PackageName string
	PackageType string
}

type ReportHacktoberfestRow added in v0.106.0

type ReportHacktoberfestRow struct {
	PackageName       string
	PackageType       string
	NumberUsages      string
	PercentageUsage   string
	NumberRepos       string
	PercentageRepos   string
	TotalDependencies string
	TotalRepos        string
}

type RetrieveDistinctPackagesForRepoKeyWithoutSensitivePackagesParams added in v0.106.0

type RetrieveDistinctPackagesForRepoKeyWithoutSensitivePackagesParams struct {
	Platform     string
	Organisation string
	Repo         string
}

type RetrieveDistinctPackagesForRepoKeyWithoutSensitivePackagesRow added in v0.106.0

type RetrieveDistinctPackagesForRepoKeyWithoutSensitivePackagesRow struct {
	PackageName string
	PackageType string
	Datasource  string
}

type RetrieveReposDependentOnForCurrentVersionParams

type RetrieveReposDependentOnForCurrentVersionParams struct {
	PackageName    string
	PackageManager string
	CurrentVersion sql.NullString
}

type RetrieveReposDependentOnForCurrentVersionRow

type RetrieveReposDependentOnForCurrentVersionRow struct {
	Platform        sql.NullString
	Organisation    sql.NullString
	Repo            sql.NullString
	Version         sql.NullString
	DepTypes        string
	PackageFilePath string
	Owner           sql.NullString
	OwnerNotes      sql.NullString
}

type RetrieveReposDependentOnForVersionParams

type RetrieveReposDependentOnForVersionParams struct {
	PackageName    string
	PackageManager string
	Version        sql.NullString
}

type RetrieveReposDependentOnForVersionRow

type RetrieveReposDependentOnForVersionRow struct {
	Platform        sql.NullString
	Organisation    sql.NullString
	Repo            sql.NullString
	CurrentVersion  sql.NullString
	DepTypes        string
	PackageFilePath string
	Owner           sql.NullString
	OwnerNotes      sql.NullString
}

type RetrieveReposDependentOnParams

type RetrieveReposDependentOnParams struct {
	PackageName    string
	PackageManager string
}

type RetrieveReposDependentOnRow

type RetrieveReposDependentOnRow struct {
	Platform        sql.NullString
	Organisation    sql.NullString
	Repo            sql.NullString
	Version         sql.NullString
	CurrentVersion  sql.NullString
	DepTypes        string
	PackageFilePath string
	Owner           sql.NullString
	OwnerNotes      sql.NullString
}

type Sbom

type Sbom struct {
	ComponentName  string
	PackageName    string
	Version        sql.NullString
	CurrentVersion sql.NullString
	PackageType    string
	PackageUrl     string
}

type SensitivePackage added in v0.106.0

type SensitivePackage struct {
	PackagePattern string
	PackageManager sql.NullString
	MatchStrategy  string
}

Jump to

Keyboard shortcuts

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