db

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateTablesQuery string

Functions

This section is empty.

Types

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 Dependabot added in v0.27.0

type Dependabot struct {
	Platform        string
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	PackageManager  string
	PackageFilePath string
}

type DependabotEndoflife

type DependabotEndoflife struct {
	PackageName    string
	Version        string
	PackageManager string
	ProductName    string
	Cycle          string
}

type EndoflifedateProduct

type EndoflifedateProduct struct {
	ProductName    string
	Cycle          string
	SupportedUntil sql.NullString
	EolFrom        sql.NullString
	InsertedAt     string
}

type InsertDependabotEndOfLifeParams

type InsertDependabotEndOfLifeParams struct {
	PackageName    string
	Version        string
	PackageManager string
	ProductName    string
	Cycle          string
}

type InsertProductCycleParams

type InsertProductCycleParams struct {
	ProductName    string
	Cycle          string
	SupportedUntil sql.NullString
	EolFrom        sql.NullString
	InsertedAt     string
}

type InsertRenovateEndOfLifeParams

type InsertRenovateEndOfLifeParams struct {
	PackageName    string
	Version        string
	CurrentVersion sql.NullString
	PackageManager string
	Datasource     string
	ProductName    string
	Cycle          string
}

type InsertSBOMEndOfLifeParams added in v0.43.0

type InsertSBOMEndOfLifeParams struct {
	PackageName    string
	Version        sql.NullString
	CurrentVersion sql.NullString
	PackageType    string
	ProductName    string
	Cycle          string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AnonymiseDependabotOrgAndRepo added in v0.13.0

func (q *Queries) AnonymiseDependabotOrgAndRepo(ctx context.Context) error

func (*Queries) AnonymiseRenovatePackageNameByOrg added in v0.43.0

func (q *Queries) AnonymiseRenovatePackageNameByOrg(ctx context.Context, packageName string) error

func (*Queries) AnonymiseRenovateVersionByOrg added in v0.13.0

func (q *Queries) AnonymiseRenovateVersionByOrg(ctx context.Context, version string) error

func (*Queries) AnonymiseSBOMCurrentVersionByOrg added in v0.43.0

func (q *Queries) AnonymiseSBOMCurrentVersionByOrg(ctx context.Context, currentVersion sql.NullString) error

func (*Queries) AnonymiseSBOMOrgAndRepo added in v0.43.0

func (q *Queries) AnonymiseSBOMOrgAndRepo(ctx context.Context) error

func (*Queries) AnonymiseSBOMPackageNameByOrg added in v0.43.0

func (q *Queries) AnonymiseSBOMPackageNameByOrg(ctx context.Context, packageName string) error

func (*Queries) AnonymiseSBOMVersionByOrg added in v0.43.0

func (q *Queries) AnonymiseSBOMVersionByOrg(ctx context.Context, version sql.NullString) error

func (*Queries) InsertDependabotEndOfLife

func (q *Queries) InsertDependabotEndOfLife(ctx context.Context, arg InsertDependabotEndOfLifeParams) error

---------- Dependabot

func (*Queries) InsertProductCycle

func (q *Queries) InsertProductCycle(ctx context.Context, arg InsertProductCycleParams) error

func (*Queries) InsertRenovateEndOfLife

func (q *Queries) InsertRenovateEndOfLife(ctx context.Context, arg InsertRenovateEndOfLifeParams) error

func (*Queries) InsertSBOMEndOfLife added in v0.43.0

func (q *Queries) InsertSBOMEndOfLife(ctx context.Context, arg InsertSBOMEndOfLifeParams) error

func (*Queries) RetrieveDistinctRenovateDeps added in v0.27.0

func (q *Queries) RetrieveDistinctRenovateDeps(ctx context.Context) ([]RetrieveDistinctRenovateDepsRow, error)

---------- Renovate

func (*Queries) RetrieveDistinctSBOMDeps added in v0.43.0

func (q *Queries) RetrieveDistinctSBOMDeps(ctx context.Context) ([]RetrieveDistinctSBOMDepsRow, error)

---------- SBOMs

func (*Queries) WithTx

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

type Renovate added in v0.27.0

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

type RenovateEndoflife

type RenovateEndoflife struct {
	PackageName    string
	Version        string
	CurrentVersion sql.NullString
	PackageManager string
	Datasource     string
	ProductName    string
	Cycle          string
}

type RenovateUpdate added in v0.27.0

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

type RetrieveDistinctRenovateDepsRow added in v0.27.0

type RetrieveDistinctRenovateDepsRow struct {
	PackageName    string
	Version        string
	CurrentVersion sql.NullString
	PackageManager string
	Datasource     string
}

func (RetrieveDistinctRenovateDepsRow) DependencyDetails added in v0.27.0

func (d RetrieveDistinctRenovateDepsRow) DependencyDetails() string

type RetrieveDistinctSBOMDepsRow added in v0.43.0

type RetrieveDistinctSBOMDepsRow struct {
	PackageName    string
	Version        sql.NullString
	CurrentVersion sql.NullString
	PackageType    string
}

type Sbom added in v0.43.0

type Sbom struct {
	Platform       string
	Organisation   string
	Repo           string
	PackageName    string
	Version        sql.NullString
	CurrentVersion sql.NullString
	PackageType    string
}

type SbomsEndoflife added in v0.43.0

type SbomsEndoflife struct {
	PackageName    string
	Version        sql.NullString
	CurrentVersion sql.NullString
	PackageType    string
	ProductName    string
	Cycle          string
}

type SensitivePackage added in v0.47.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