packagerecord

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the packagerecord type in the database.
	Label = "package_record"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldVulnIds holds the string denoting the vuln_ids field in the database.
	FieldVulnIds = "vuln_ids"
	// EdgeScan holds the string denoting the scan edge name in mutations.
	EdgeScan = "scan"
	// EdgeVulnerabilities holds the string denoting the vulnerabilities edge name in mutations.
	EdgeVulnerabilities = "vulnerabilities"
	// Table holds the table name of the packagerecord in the database.
	Table = "package_records"
	// ScanTable is the table that holds the scan relation/edge. The primary key declared below.
	ScanTable = "scan_packages"
	// ScanInverseTable is the table name for the Scan entity.
	// It exists in this package in order to avoid circular dependency with the "scan" package.
	ScanInverseTable = "scans"
	// VulnerabilitiesTable is the table that holds the vulnerabilities relation/edge. The primary key declared below.
	VulnerabilitiesTable = "package_record_vulnerabilities"
	// VulnerabilitiesInverseTable is the table name for the Vulnerability entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerability" package.
	VulnerabilitiesInverseTable = "vulnerabilities"
)

Variables

View Source
var (
	// ScanPrimaryKey and ScanColumn2 are the table columns denoting the
	// primary key for the scan relation (M2M).
	ScanPrimaryKey = []string{"scan_id", "package_record_id"}
	// VulnerabilitiesPrimaryKey and VulnerabilitiesColumn2 are the table columns denoting the
	// primary key for the vulnerabilities relation (M2M).
	VulnerabilitiesPrimaryKey = []string{"package_record_id", "vulnerability_id"}
)

Columns holds all SQL columns for packagerecord fields.

Functions

func And

And groups predicates with the AND operator between them.

func HasScan

func HasScan() predicate.PackageRecord

HasScan applies the HasEdge predicate on the "scan" edge.

func HasScanWith

func HasScanWith(preds ...predicate.Scan) predicate.PackageRecord

HasScanWith applies the HasEdge predicate on the "scan" edge with a given conditions (other predicates).

func HasVulnerabilities

func HasVulnerabilities() predicate.PackageRecord

HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.

func HasVulnerabilitiesWith

func HasVulnerabilitiesWith(preds ...predicate.Vulnerability) predicate.PackageRecord

HasVulnerabilitiesWith applies the HasEdge predicate on the "vulnerabilities" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.PackageRecord

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.PackageRecord

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.PackageRecord

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.PackageRecord

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.PackageRecord

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.PackageRecord

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.PackageRecord

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.PackageRecord

IDNotIn applies the NotIn predicate on the ID field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.PackageRecord

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.PackageRecord

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.PackageRecord

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.PackageRecord

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.PackageRecord

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.PackageRecord

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.PackageRecord

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.PackageRecord

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.PackageRecord

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.PackageRecord

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.PackageRecord

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.PackageRecord

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.PackageRecord

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Source

func Source(v string) predicate.PackageRecord

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceContains

func SourceContains(v string) predicate.PackageRecord

SourceContains applies the Contains predicate on the "source" field.

func SourceContainsFold

func SourceContainsFold(v string) predicate.PackageRecord

SourceContainsFold applies the ContainsFold predicate on the "source" field.

func SourceEQ

func SourceEQ(v string) predicate.PackageRecord

SourceEQ applies the EQ predicate on the "source" field.

func SourceEqualFold

func SourceEqualFold(v string) predicate.PackageRecord

SourceEqualFold applies the EqualFold predicate on the "source" field.

func SourceGT

func SourceGT(v string) predicate.PackageRecord

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v string) predicate.PackageRecord

SourceGTE applies the GTE predicate on the "source" field.

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.PackageRecord

SourceHasPrefix applies the HasPrefix predicate on the "source" field.

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.PackageRecord

SourceHasSuffix applies the HasSuffix predicate on the "source" field.

func SourceIn

func SourceIn(vs ...string) predicate.PackageRecord

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.PackageRecord

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v string) predicate.PackageRecord

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v string) predicate.PackageRecord

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...string) predicate.PackageRecord

SourceNotIn applies the NotIn predicate on the "source" field.

func Type

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.PackageRecord

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.PackageRecord

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.PackageRecord

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.PackageRecord

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.PackageRecord

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.PackageRecord

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.PackageRecord

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.PackageRecord

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.PackageRecord

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.PackageRecord

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.PackageRecord

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.PackageRecord

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.PackageRecord

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version

func Version(v string) predicate.PackageRecord

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.PackageRecord

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.PackageRecord

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.PackageRecord

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.PackageRecord

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.PackageRecord

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.PackageRecord

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.PackageRecord

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.PackageRecord

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.PackageRecord

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.PackageRecord

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.PackageRecord

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.PackageRecord

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.PackageRecord

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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