Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Vulnerability) predicate.Vulnerability
- func CvssIsNil() predicate.Vulnerability
- func CvssNotNil() predicate.Vulnerability
- func CweIDIsNil() predicate.Vulnerability
- func CweIDNotNil() predicate.Vulnerability
- func Description(v string) predicate.Vulnerability
- func DescriptionContains(v string) predicate.Vulnerability
- func DescriptionContainsFold(v string) predicate.Vulnerability
- func DescriptionEQ(v string) predicate.Vulnerability
- func DescriptionEqualFold(v string) predicate.Vulnerability
- func DescriptionGT(v string) predicate.Vulnerability
- func DescriptionGTE(v string) predicate.Vulnerability
- func DescriptionHasPrefix(v string) predicate.Vulnerability
- func DescriptionHasSuffix(v string) predicate.Vulnerability
- func DescriptionIn(vs ...string) predicate.Vulnerability
- func DescriptionIsNil() predicate.Vulnerability
- func DescriptionLT(v string) predicate.Vulnerability
- func DescriptionLTE(v string) predicate.Vulnerability
- func DescriptionNEQ(v string) predicate.Vulnerability
- func DescriptionNotIn(vs ...string) predicate.Vulnerability
- func DescriptionNotNil() predicate.Vulnerability
- func FirstSeenAt(v int64) predicate.Vulnerability
- func FirstSeenAtEQ(v int64) predicate.Vulnerability
- func FirstSeenAtGT(v int64) predicate.Vulnerability
- func FirstSeenAtGTE(v int64) predicate.Vulnerability
- func FirstSeenAtIn(vs ...int64) predicate.Vulnerability
- func FirstSeenAtLT(v int64) predicate.Vulnerability
- func FirstSeenAtLTE(v int64) predicate.Vulnerability
- func FirstSeenAtNEQ(v int64) predicate.Vulnerability
- func FirstSeenAtNotIn(vs ...int64) predicate.Vulnerability
- func HasPackages() predicate.Vulnerability
- func HasPackagesWith(preds ...predicate.PackageRecord) predicate.Vulnerability
- func HasStatus() predicate.Vulnerability
- func HasStatusWith(preds ...predicate.VulnStatus) predicate.Vulnerability
- func ID(id string) predicate.Vulnerability
- func IDEQ(id string) predicate.Vulnerability
- func IDGT(id string) predicate.Vulnerability
- func IDGTE(id string) predicate.Vulnerability
- func IDIn(ids ...string) predicate.Vulnerability
- func IDLT(id string) predicate.Vulnerability
- func IDLTE(id string) predicate.Vulnerability
- func IDNEQ(id string) predicate.Vulnerability
- func IDNotIn(ids ...string) predicate.Vulnerability
- func LastModifiedAt(v int64) predicate.Vulnerability
- func LastModifiedAtEQ(v int64) predicate.Vulnerability
- func LastModifiedAtGT(v int64) predicate.Vulnerability
- func LastModifiedAtGTE(v int64) predicate.Vulnerability
- func LastModifiedAtIn(vs ...int64) predicate.Vulnerability
- func LastModifiedAtLT(v int64) predicate.Vulnerability
- func LastModifiedAtLTE(v int64) predicate.Vulnerability
- func LastModifiedAtNEQ(v int64) predicate.Vulnerability
- func LastModifiedAtNotIn(vs ...int64) predicate.Vulnerability
- func Not(p predicate.Vulnerability) predicate.Vulnerability
- func Or(predicates ...predicate.Vulnerability) predicate.Vulnerability
- func ReferencesIsNil() predicate.Vulnerability
- func ReferencesNotNil() predicate.Vulnerability
- func Severity(v string) predicate.Vulnerability
- func SeverityContains(v string) predicate.Vulnerability
- func SeverityContainsFold(v string) predicate.Vulnerability
- func SeverityEQ(v string) predicate.Vulnerability
- func SeverityEqualFold(v string) predicate.Vulnerability
- func SeverityGT(v string) predicate.Vulnerability
- func SeverityGTE(v string) predicate.Vulnerability
- func SeverityHasPrefix(v string) predicate.Vulnerability
- func SeverityHasSuffix(v string) predicate.Vulnerability
- func SeverityIn(vs ...string) predicate.Vulnerability
- func SeverityIsNil() predicate.Vulnerability
- func SeverityLT(v string) predicate.Vulnerability
- func SeverityLTE(v string) predicate.Vulnerability
- func SeverityNEQ(v string) predicate.Vulnerability
- func SeverityNotIn(vs ...string) predicate.Vulnerability
- func SeverityNotNil() predicate.Vulnerability
- func Title(v string) predicate.Vulnerability
- func TitleContains(v string) predicate.Vulnerability
- func TitleContainsFold(v string) predicate.Vulnerability
- func TitleEQ(v string) predicate.Vulnerability
- func TitleEqualFold(v string) predicate.Vulnerability
- func TitleGT(v string) predicate.Vulnerability
- func TitleGTE(v string) predicate.Vulnerability
- func TitleHasPrefix(v string) predicate.Vulnerability
- func TitleHasSuffix(v string) predicate.Vulnerability
- func TitleIn(vs ...string) predicate.Vulnerability
- func TitleIsNil() predicate.Vulnerability
- func TitleLT(v string) predicate.Vulnerability
- func TitleLTE(v string) predicate.Vulnerability
- func TitleNEQ(v string) predicate.Vulnerability
- func TitleNotIn(vs ...string) predicate.Vulnerability
- func TitleNotNil() predicate.Vulnerability
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the vulnerability type in the database. Label = "vulnerability" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFirstSeenAt holds the string denoting the first_seen_at field in the database. FieldFirstSeenAt = "first_seen_at" // FieldLastModifiedAt holds the string denoting the last_modified_at field in the database. FieldLastModifiedAt = "last_modified_at" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldCweID holds the string denoting the cwe_id field in the database. FieldCweID = "cwe_id" // FieldSeverity holds the string denoting the severity field in the database. FieldSeverity = "severity" // FieldCvss holds the string denoting the cvss field in the database. FieldCvss = "cvss" // FieldReferences holds the string denoting the references field in the database. FieldReferences = "references" // EdgePackages holds the string denoting the packages edge name in mutations. EdgePackages = "packages" // EdgeStatus holds the string denoting the status edge name in mutations. EdgeStatus = "status" // Table holds the table name of the vulnerability in the database. Table = "vulnerabilities" // PackagesTable is the table that holds the packages relation/edge. The primary key declared below. PackagesTable = "package_record_vulnerabilities" // PackagesInverseTable is the table name for the PackageRecord entity. // It exists in this package in order to avoid circular dependency with the "packagerecord" package. PackagesInverseTable = "package_records" // StatusTable is the table that holds the status relation/edge. StatusTable = "vuln_status" // StatusInverseTable is the table name for the VulnStatus entity. // It exists in this package in order to avoid circular dependency with the "vulnstatus" package. StatusInverseTable = "vuln_status" // StatusColumn is the table column denoting the status relation/edge. StatusColumn = "vulnerability_status" )
Variables ¶
var Columns = []string{ FieldID, FieldFirstSeenAt, FieldLastModifiedAt, FieldTitle, FieldDescription, FieldCweID, FieldSeverity, FieldCvss, FieldReferences, }
Columns holds all SQL columns for vulnerability fields.
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var ( // PackagesPrimaryKey and PackagesColumn2 are the table columns denoting the // primary key for the packages relation (M2M). PackagesPrimaryKey = []string{"package_record_id", "vulnerability_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.Vulnerability) predicate.Vulnerability
And groups predicates with the AND operator between them.
func CvssIsNil ¶
func CvssIsNil() predicate.Vulnerability
CvssIsNil applies the IsNil predicate on the "cvss" field.
func CvssNotNil ¶
func CvssNotNil() predicate.Vulnerability
CvssNotNil applies the NotNil predicate on the "cvss" field.
func CweIDIsNil ¶
func CweIDIsNil() predicate.Vulnerability
CweIDIsNil applies the IsNil predicate on the "cwe_id" field.
func CweIDNotNil ¶
func CweIDNotNil() predicate.Vulnerability
CweIDNotNil applies the NotNil predicate on the "cwe_id" field.
func Description ¶
func Description(v string) predicate.Vulnerability
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.Vulnerability
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.Vulnerability
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.Vulnerability
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.Vulnerability
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.Vulnerability
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.Vulnerability
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.Vulnerability
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.Vulnerability
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.Vulnerability
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.Vulnerability
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.Vulnerability
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.Vulnerability
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.Vulnerability
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.Vulnerability
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.Vulnerability
DescriptionNotNil applies the NotNil predicate on the "description" field.
func FirstSeenAt ¶
func FirstSeenAt(v int64) predicate.Vulnerability
FirstSeenAt applies equality check predicate on the "first_seen_at" field. It's identical to FirstSeenAtEQ.
func FirstSeenAtEQ ¶
func FirstSeenAtEQ(v int64) predicate.Vulnerability
FirstSeenAtEQ applies the EQ predicate on the "first_seen_at" field.
func FirstSeenAtGT ¶
func FirstSeenAtGT(v int64) predicate.Vulnerability
FirstSeenAtGT applies the GT predicate on the "first_seen_at" field.
func FirstSeenAtGTE ¶
func FirstSeenAtGTE(v int64) predicate.Vulnerability
FirstSeenAtGTE applies the GTE predicate on the "first_seen_at" field.
func FirstSeenAtIn ¶
func FirstSeenAtIn(vs ...int64) predicate.Vulnerability
FirstSeenAtIn applies the In predicate on the "first_seen_at" field.
func FirstSeenAtLT ¶
func FirstSeenAtLT(v int64) predicate.Vulnerability
FirstSeenAtLT applies the LT predicate on the "first_seen_at" field.
func FirstSeenAtLTE ¶
func FirstSeenAtLTE(v int64) predicate.Vulnerability
FirstSeenAtLTE applies the LTE predicate on the "first_seen_at" field.
func FirstSeenAtNEQ ¶
func FirstSeenAtNEQ(v int64) predicate.Vulnerability
FirstSeenAtNEQ applies the NEQ predicate on the "first_seen_at" field.
func FirstSeenAtNotIn ¶
func FirstSeenAtNotIn(vs ...int64) predicate.Vulnerability
FirstSeenAtNotIn applies the NotIn predicate on the "first_seen_at" field.
func HasPackages ¶
func HasPackages() predicate.Vulnerability
HasPackages applies the HasEdge predicate on the "packages" edge.
func HasPackagesWith ¶
func HasPackagesWith(preds ...predicate.PackageRecord) predicate.Vulnerability
HasPackagesWith applies the HasEdge predicate on the "packages" edge with a given conditions (other predicates).
func HasStatus ¶
func HasStatus() predicate.Vulnerability
HasStatus applies the HasEdge predicate on the "status" edge.
func HasStatusWith ¶
func HasStatusWith(preds ...predicate.VulnStatus) predicate.Vulnerability
HasStatusWith applies the HasEdge predicate on the "status" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id string) predicate.Vulnerability
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.Vulnerability
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.Vulnerability
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.Vulnerability
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.Vulnerability
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.Vulnerability
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.Vulnerability
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.Vulnerability
IDNotIn applies the NotIn predicate on the ID field.
func LastModifiedAt ¶
func LastModifiedAt(v int64) predicate.Vulnerability
LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.
func LastModifiedAtEQ ¶
func LastModifiedAtEQ(v int64) predicate.Vulnerability
LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.
func LastModifiedAtGT ¶
func LastModifiedAtGT(v int64) predicate.Vulnerability
LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.
func LastModifiedAtGTE ¶
func LastModifiedAtGTE(v int64) predicate.Vulnerability
LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.
func LastModifiedAtIn ¶
func LastModifiedAtIn(vs ...int64) predicate.Vulnerability
LastModifiedAtIn applies the In predicate on the "last_modified_at" field.
func LastModifiedAtLT ¶
func LastModifiedAtLT(v int64) predicate.Vulnerability
LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.
func LastModifiedAtLTE ¶
func LastModifiedAtLTE(v int64) predicate.Vulnerability
LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.
func LastModifiedAtNEQ ¶
func LastModifiedAtNEQ(v int64) predicate.Vulnerability
LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.
func LastModifiedAtNotIn ¶
func LastModifiedAtNotIn(vs ...int64) predicate.Vulnerability
LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.
func Not ¶
func Not(p predicate.Vulnerability) predicate.Vulnerability
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Vulnerability) predicate.Vulnerability
Or groups predicates with the OR operator between them.
func ReferencesIsNil ¶
func ReferencesIsNil() predicate.Vulnerability
ReferencesIsNil applies the IsNil predicate on the "references" field.
func ReferencesNotNil ¶
func ReferencesNotNil() predicate.Vulnerability
ReferencesNotNil applies the NotNil predicate on the "references" field.
func Severity ¶
func Severity(v string) predicate.Vulnerability
Severity applies equality check predicate on the "severity" field. It's identical to SeverityEQ.
func SeverityContains ¶
func SeverityContains(v string) predicate.Vulnerability
SeverityContains applies the Contains predicate on the "severity" field.
func SeverityContainsFold ¶
func SeverityContainsFold(v string) predicate.Vulnerability
SeverityContainsFold applies the ContainsFold predicate on the "severity" field.
func SeverityEQ ¶
func SeverityEQ(v string) predicate.Vulnerability
SeverityEQ applies the EQ predicate on the "severity" field.
func SeverityEqualFold ¶
func SeverityEqualFold(v string) predicate.Vulnerability
SeverityEqualFold applies the EqualFold predicate on the "severity" field.
func SeverityGT ¶
func SeverityGT(v string) predicate.Vulnerability
SeverityGT applies the GT predicate on the "severity" field.
func SeverityGTE ¶
func SeverityGTE(v string) predicate.Vulnerability
SeverityGTE applies the GTE predicate on the "severity" field.
func SeverityHasPrefix ¶
func SeverityHasPrefix(v string) predicate.Vulnerability
SeverityHasPrefix applies the HasPrefix predicate on the "severity" field.
func SeverityHasSuffix ¶
func SeverityHasSuffix(v string) predicate.Vulnerability
SeverityHasSuffix applies the HasSuffix predicate on the "severity" field.
func SeverityIn ¶
func SeverityIn(vs ...string) predicate.Vulnerability
SeverityIn applies the In predicate on the "severity" field.
func SeverityIsNil ¶
func SeverityIsNil() predicate.Vulnerability
SeverityIsNil applies the IsNil predicate on the "severity" field.
func SeverityLT ¶
func SeverityLT(v string) predicate.Vulnerability
SeverityLT applies the LT predicate on the "severity" field.
func SeverityLTE ¶
func SeverityLTE(v string) predicate.Vulnerability
SeverityLTE applies the LTE predicate on the "severity" field.
func SeverityNEQ ¶
func SeverityNEQ(v string) predicate.Vulnerability
SeverityNEQ applies the NEQ predicate on the "severity" field.
func SeverityNotIn ¶
func SeverityNotIn(vs ...string) predicate.Vulnerability
SeverityNotIn applies the NotIn predicate on the "severity" field.
func SeverityNotNil ¶
func SeverityNotNil() predicate.Vulnerability
SeverityNotNil applies the NotNil predicate on the "severity" field.
func Title ¶
func Title(v string) predicate.Vulnerability
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
func TitleContains(v string) predicate.Vulnerability
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
func TitleContainsFold(v string) predicate.Vulnerability
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEQ ¶
func TitleEQ(v string) predicate.Vulnerability
TitleEQ applies the EQ predicate on the "title" field.
func TitleEqualFold ¶
func TitleEqualFold(v string) predicate.Vulnerability
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleGT ¶
func TitleGT(v string) predicate.Vulnerability
TitleGT applies the GT predicate on the "title" field.
func TitleGTE ¶
func TitleGTE(v string) predicate.Vulnerability
TitleGTE applies the GTE predicate on the "title" field.
func TitleHasPrefix ¶
func TitleHasPrefix(v string) predicate.Vulnerability
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
func TitleHasSuffix(v string) predicate.Vulnerability
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIn ¶
func TitleIn(vs ...string) predicate.Vulnerability
TitleIn applies the In predicate on the "title" field.
func TitleIsNil ¶
func TitleIsNil() predicate.Vulnerability
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleLT ¶
func TitleLT(v string) predicate.Vulnerability
TitleLT applies the LT predicate on the "title" field.
func TitleLTE ¶
func TitleLTE(v string) predicate.Vulnerability
TitleLTE applies the LTE predicate on the "title" field.
func TitleNEQ ¶
func TitleNEQ(v string) predicate.Vulnerability
TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNotIn ¶
func TitleNotIn(vs ...string) predicate.Vulnerability
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
func TitleNotNil() predicate.Vulnerability
TitleNotNil applies the NotNil predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.