db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	PackagePattern       string
	PackageManager       string
	Version              sql.NullString
	VersionMatchStrategy sql.NullString
	AdvisoryType         string
	Description          string
}

type CountDependenciesForParams

type CountDependenciesForParams struct {
	Platform     string
	Organisation string
	Repo         string
}

type CountPackageAdvisoriesForRepoParams

type CountPackageAdvisoriesForRepoParams struct {
	Platform string
	Org      string
	Repo     string
}

type CountPolicyViolationsForRepoParams

type CountPolicyViolationsForRepoParams struct {
	Platform string
	Org      string
	Repo     string
}

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 DependabotEndoflife

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

type DepsdevCfe

type DepsdevCfe struct {
	PackageName string
	Version     string
	CveID       string
	UpdatedAt   string
}

type DepsdevLicense

type DepsdevLicense struct {
	PackageName string
	Version     string
	License     string
	UpdatedAt   string
}

type EndoflifedateProduct

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

type ListReposLikeParams

type ListReposLikeParams struct {
	Platform     string
	Organisation string
	Repo         string
}

type ListReposLikeRow

type ListReposLikeRow struct {
	Platform     string
	Organisation string
	Repo         string
}

type Owner

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

type PolicyViolation

type PolicyViolation 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
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CountDependenciesFor

func (q *Queries) CountDependenciesFor(ctx context.Context, arg CountDependenciesForParams) ([]int64, error)

func (*Queries) CountPackageAdvisoriesForRepo

func (q *Queries) CountPackageAdvisoriesForRepo(ctx context.Context, arg CountPackageAdvisoriesForRepoParams) ([]int64, error)

func (*Queries) CountPolicyViolationsForRepo

func (q *Queries) CountPolicyViolationsForRepo(ctx context.Context, arg CountPolicyViolationsForRepoParams) ([]int64, error)

func (*Queries) ListReposLike

func (q *Queries) ListReposLike(ctx context.Context, arg ListReposLikeParams) ([]ListReposLikeRow, error)

func (*Queries) RetrieveDependenciesFor

func (q *Queries) RetrieveDependenciesFor(ctx context.Context, arg RetrieveDependenciesForParams) ([]RetrieveDependenciesForRow, error)

func (*Queries) RetrieveOwner

func (q *Queries) RetrieveOwner(ctx context.Context, arg RetrieveOwnerParams) (string, 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
	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

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 RetrieveDependenciesForParams

type RetrieveDependenciesForParams struct {
	Platform     string
	Organisation string
	Repo         string
}

type RetrieveDependenciesForRow

type RetrieveDependenciesForRow struct {
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	PackageManager  string
	DepTypes        string
	PackageFilePath string
}

type RetrieveOwnerParams

type RetrieveOwnerParams struct {
	Platform     string
	Organisation string
	Repo         string
}

type RetrievePackageAdvisoriesForRepoParams

type RetrievePackageAdvisoriesForRepoParams struct {
	Platform string
	Org      string
	Repo     string
}

type RetrievePackageAdvisoriesForRepoRow

type RetrievePackageAdvisoriesForRepoRow struct {
	PackageName     string
	Version         sql.NullString
	CurrentVersion  sql.NullString
	PackageManager  string
	DepTypes        string
	PackageFilePath string
	AdvisoryType    string
	Description     string
	SupportedUntil  interface{}
	EolFrom         interface{}
}

type RetrievePolicyViolationsForRepoParams

type RetrievePolicyViolationsForRepoParams struct {
	Platform string
	Org      string
	Repo     string
}

type RetrievePolicyViolationsForRepoRow

type RetrievePolicyViolationsForRepoRow struct {
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	PackageManager  string
	DepTypes        string
	PackageFilePath string
	Level           string
	AdvisoryType    string
	Description     string
}

type Sbom

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

type SbomsEndoflife

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

Jump to

Keyboard shortcuts

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