Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PackageRecord) predicate.PackageRecord
- func HasScan() predicate.PackageRecord
- func HasScanWith(preds ...predicate.Scan) predicate.PackageRecord
- func HasVulnerabilities() predicate.PackageRecord
- func HasVulnerabilitiesWith(preds ...predicate.Vulnerability) predicate.PackageRecord
- func ID(id int) predicate.PackageRecord
- func IDEQ(id int) predicate.PackageRecord
- func IDGT(id int) predicate.PackageRecord
- func IDGTE(id int) predicate.PackageRecord
- func IDIn(ids ...int) predicate.PackageRecord
- func IDLT(id int) predicate.PackageRecord
- func IDLTE(id int) predicate.PackageRecord
- func IDNEQ(id int) predicate.PackageRecord
- func IDNotIn(ids ...int) predicate.PackageRecord
- func Name(v string) predicate.PackageRecord
- func NameContains(v string) predicate.PackageRecord
- func NameContainsFold(v string) predicate.PackageRecord
- func NameEQ(v string) predicate.PackageRecord
- func NameEqualFold(v string) predicate.PackageRecord
- func NameGT(v string) predicate.PackageRecord
- func NameGTE(v string) predicate.PackageRecord
- func NameHasPrefix(v string) predicate.PackageRecord
- func NameHasSuffix(v string) predicate.PackageRecord
- func NameIn(vs ...string) predicate.PackageRecord
- func NameLT(v string) predicate.PackageRecord
- func NameLTE(v string) predicate.PackageRecord
- func NameNEQ(v string) predicate.PackageRecord
- func NameNotIn(vs ...string) predicate.PackageRecord
- func Not(p predicate.PackageRecord) predicate.PackageRecord
- func Or(predicates ...predicate.PackageRecord) predicate.PackageRecord
- func Source(v string) predicate.PackageRecord
- func SourceContains(v string) predicate.PackageRecord
- func SourceContainsFold(v string) predicate.PackageRecord
- func SourceEQ(v string) predicate.PackageRecord
- func SourceEqualFold(v string) predicate.PackageRecord
- func SourceGT(v string) predicate.PackageRecord
- func SourceGTE(v string) predicate.PackageRecord
- func SourceHasPrefix(v string) predicate.PackageRecord
- func SourceHasSuffix(v string) predicate.PackageRecord
- func SourceIn(vs ...string) predicate.PackageRecord
- func SourceLT(v string) predicate.PackageRecord
- func SourceLTE(v string) predicate.PackageRecord
- func SourceNEQ(v string) predicate.PackageRecord
- func SourceNotIn(vs ...string) predicate.PackageRecord
- func Type(v string) predicate.PackageRecord
- func TypeContains(v string) predicate.PackageRecord
- func TypeContainsFold(v string) predicate.PackageRecord
- func TypeEQ(v string) predicate.PackageRecord
- func TypeEqualFold(v string) predicate.PackageRecord
- func TypeGT(v string) predicate.PackageRecord
- func TypeGTE(v string) predicate.PackageRecord
- func TypeHasPrefix(v string) predicate.PackageRecord
- func TypeHasSuffix(v string) predicate.PackageRecord
- func TypeIn(vs ...string) predicate.PackageRecord
- func TypeLT(v string) predicate.PackageRecord
- func TypeLTE(v string) predicate.PackageRecord
- func TypeNEQ(v string) predicate.PackageRecord
- func TypeNotIn(vs ...string) predicate.PackageRecord
- func ValidColumn(column string) bool
- func Version(v string) predicate.PackageRecord
- func VersionContains(v string) predicate.PackageRecord
- func VersionContainsFold(v string) predicate.PackageRecord
- func VersionEQ(v string) predicate.PackageRecord
- func VersionEqualFold(v string) predicate.PackageRecord
- func VersionGT(v string) predicate.PackageRecord
- func VersionGTE(v string) predicate.PackageRecord
- func VersionHasPrefix(v string) predicate.PackageRecord
- func VersionHasSuffix(v string) predicate.PackageRecord
- func VersionIn(vs ...string) predicate.PackageRecord
- func VersionLT(v string) predicate.PackageRecord
- func VersionLTE(v string) predicate.PackageRecord
- func VersionNEQ(v string) predicate.PackageRecord
- func VersionNotIn(vs ...string) predicate.PackageRecord
Constants ¶
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 ¶
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"} )
var Columns = []string{ FieldID, FieldType, FieldSource, FieldName, FieldVersion, FieldVulnIds, }
Columns holds all SQL columns for packagerecord fields.
Functions ¶
func And ¶
func And(predicates ...predicate.PackageRecord) predicate.PackageRecord
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 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 ¶
func Name(v string) predicate.PackageRecord
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 ¶
func Not(p predicate.PackageRecord) predicate.PackageRecord
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PackageRecord) predicate.PackageRecord
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 ¶
func Type(v string) predicate.PackageRecord
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 ¶
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.