Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VulnEqual) predicate.VulnEqual
- func Collector(v string) predicate.VulnEqual
- func CollectorContains(v string) predicate.VulnEqual
- func CollectorContainsFold(v string) predicate.VulnEqual
- func CollectorEQ(v string) predicate.VulnEqual
- func CollectorEqualFold(v string) predicate.VulnEqual
- func CollectorGT(v string) predicate.VulnEqual
- func CollectorGTE(v string) predicate.VulnEqual
- func CollectorHasPrefix(v string) predicate.VulnEqual
- func CollectorHasSuffix(v string) predicate.VulnEqual
- func CollectorIn(vs ...string) predicate.VulnEqual
- func CollectorLT(v string) predicate.VulnEqual
- func CollectorLTE(v string) predicate.VulnEqual
- func CollectorNEQ(v string) predicate.VulnEqual
- func CollectorNotIn(vs ...string) predicate.VulnEqual
- func EqualVulnID(v uuid.UUID) predicate.VulnEqual
- func EqualVulnIDEQ(v uuid.UUID) predicate.VulnEqual
- func EqualVulnIDIn(vs ...uuid.UUID) predicate.VulnEqual
- func EqualVulnIDNEQ(v uuid.UUID) predicate.VulnEqual
- func EqualVulnIDNotIn(vs ...uuid.UUID) predicate.VulnEqual
- func HasVulnerabilityA() predicate.VulnEqual
- func HasVulnerabilityAWith(preds ...predicate.VulnerabilityID) predicate.VulnEqual
- func HasVulnerabilityB() predicate.VulnEqual
- func HasVulnerabilityBWith(preds ...predicate.VulnerabilityID) predicate.VulnEqual
- func ID(id uuid.UUID) predicate.VulnEqual
- func IDEQ(id uuid.UUID) predicate.VulnEqual
- func IDGT(id uuid.UUID) predicate.VulnEqual
- func IDGTE(id uuid.UUID) predicate.VulnEqual
- func IDIn(ids ...uuid.UUID) predicate.VulnEqual
- func IDLT(id uuid.UUID) predicate.VulnEqual
- func IDLTE(id uuid.UUID) predicate.VulnEqual
- func IDNEQ(id uuid.UUID) predicate.VulnEqual
- func IDNotIn(ids ...uuid.UUID) predicate.VulnEqual
- func Justification(v string) predicate.VulnEqual
- func JustificationContains(v string) predicate.VulnEqual
- func JustificationContainsFold(v string) predicate.VulnEqual
- func JustificationEQ(v string) predicate.VulnEqual
- func JustificationEqualFold(v string) predicate.VulnEqual
- func JustificationGT(v string) predicate.VulnEqual
- func JustificationGTE(v string) predicate.VulnEqual
- func JustificationHasPrefix(v string) predicate.VulnEqual
- func JustificationHasSuffix(v string) predicate.VulnEqual
- func JustificationIn(vs ...string) predicate.VulnEqual
- func JustificationLT(v string) predicate.VulnEqual
- func JustificationLTE(v string) predicate.VulnEqual
- func JustificationNEQ(v string) predicate.VulnEqual
- func JustificationNotIn(vs ...string) predicate.VulnEqual
- func Not(p predicate.VulnEqual) predicate.VulnEqual
- func Or(predicates ...predicate.VulnEqual) predicate.VulnEqual
- func Origin(v string) predicate.VulnEqual
- func OriginContains(v string) predicate.VulnEqual
- func OriginContainsFold(v string) predicate.VulnEqual
- func OriginEQ(v string) predicate.VulnEqual
- func OriginEqualFold(v string) predicate.VulnEqual
- func OriginGT(v string) predicate.VulnEqual
- func OriginGTE(v string) predicate.VulnEqual
- func OriginHasPrefix(v string) predicate.VulnEqual
- func OriginHasSuffix(v string) predicate.VulnEqual
- func OriginIn(vs ...string) predicate.VulnEqual
- func OriginLT(v string) predicate.VulnEqual
- func OriginLTE(v string) predicate.VulnEqual
- func OriginNEQ(v string) predicate.VulnEqual
- func OriginNotIn(vs ...string) predicate.VulnEqual
- func ValidColumn(column string) bool
- func VulnID(v uuid.UUID) predicate.VulnEqual
- func VulnIDEQ(v uuid.UUID) predicate.VulnEqual
- func VulnIDIn(vs ...uuid.UUID) predicate.VulnEqual
- func VulnIDNEQ(v uuid.UUID) predicate.VulnEqual
- func VulnIDNotIn(vs ...uuid.UUID) predicate.VulnEqual
- func VulnerabilitiesHash(v string) predicate.VulnEqual
- func VulnerabilitiesHashContains(v string) predicate.VulnEqual
- func VulnerabilitiesHashContainsFold(v string) predicate.VulnEqual
- func VulnerabilitiesHashEQ(v string) predicate.VulnEqual
- func VulnerabilitiesHashEqualFold(v string) predicate.VulnEqual
- func VulnerabilitiesHashGT(v string) predicate.VulnEqual
- func VulnerabilitiesHashGTE(v string) predicate.VulnEqual
- func VulnerabilitiesHashHasPrefix(v string) predicate.VulnEqual
- func VulnerabilitiesHashHasSuffix(v string) predicate.VulnEqual
- func VulnerabilitiesHashIn(vs ...string) predicate.VulnEqual
- func VulnerabilitiesHashLT(v string) predicate.VulnEqual
- func VulnerabilitiesHashLTE(v string) predicate.VulnEqual
- func VulnerabilitiesHashNEQ(v string) predicate.VulnEqual
- func VulnerabilitiesHashNotIn(vs ...string) predicate.VulnEqual
- type OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByEqualVulnID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJustification(opts ...sql.OrderTermOption) OrderOption
- func ByOrigin(opts ...sql.OrderTermOption) OrderOption
- func ByVulnID(opts ...sql.OrderTermOption) OrderOption
- func ByVulnerabilitiesHash(opts ...sql.OrderTermOption) OrderOption
- func ByVulnerabilityAField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByVulnerabilityBField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the vulnequal type in the database. Label = "vuln_equal" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVulnID holds the string denoting the vuln_id field in the database. FieldVulnID = "vuln_id" // FieldEqualVulnID holds the string denoting the equal_vuln_id field in the database. FieldEqualVulnID = "equal_vuln_id" // FieldJustification holds the string denoting the justification field in the database. FieldJustification = "justification" // FieldOrigin holds the string denoting the origin field in the database. FieldOrigin = "origin" // FieldCollector holds the string denoting the collector field in the database. FieldCollector = "collector" // FieldVulnerabilitiesHash holds the string denoting the vulnerabilities_hash field in the database. FieldVulnerabilitiesHash = "vulnerabilities_hash" // EdgeVulnerabilityA holds the string denoting the vulnerability_a edge name in mutations. EdgeVulnerabilityA = "vulnerability_a" // EdgeVulnerabilityB holds the string denoting the vulnerability_b edge name in mutations. EdgeVulnerabilityB = "vulnerability_b" // Table holds the table name of the vulnequal in the database. Table = "vuln_equals" // VulnerabilityATable is the table that holds the vulnerability_a relation/edge. VulnerabilityATable = "vuln_equals" // VulnerabilityAInverseTable is the table name for the VulnerabilityID entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package. VulnerabilityAInverseTable = "vulnerability_ids" // VulnerabilityAColumn is the table column denoting the vulnerability_a relation/edge. VulnerabilityAColumn = "vuln_id" // VulnerabilityBTable is the table that holds the vulnerability_b relation/edge. VulnerabilityBTable = "vuln_equals" // VulnerabilityBInverseTable is the table name for the VulnerabilityID entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package. VulnerabilityBInverseTable = "vulnerability_ids" // VulnerabilityBColumn is the table column denoting the vulnerability_b relation/edge. VulnerabilityBColumn = "equal_vuln_id" )
Variables ¶
var Columns = []string{ FieldID, FieldVulnID, FieldEqualVulnID, FieldJustification, FieldOrigin, FieldCollector, FieldVulnerabilitiesHash, }
Columns holds all SQL columns for vulnequal fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func Collector ¶
Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.
func CollectorContains ¶
CollectorContains applies the Contains predicate on the "collector" field.
func CollectorContainsFold ¶
CollectorContainsFold applies the ContainsFold predicate on the "collector" field.
func CollectorEQ ¶
CollectorEQ applies the EQ predicate on the "collector" field.
func CollectorEqualFold ¶
CollectorEqualFold applies the EqualFold predicate on the "collector" field.
func CollectorGT ¶
CollectorGT applies the GT predicate on the "collector" field.
func CollectorGTE ¶
CollectorGTE applies the GTE predicate on the "collector" field.
func CollectorHasPrefix ¶
CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.
func CollectorHasSuffix ¶
CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.
func CollectorIn ¶
CollectorIn applies the In predicate on the "collector" field.
func CollectorLT ¶
CollectorLT applies the LT predicate on the "collector" field.
func CollectorLTE ¶
CollectorLTE applies the LTE predicate on the "collector" field.
func CollectorNEQ ¶
CollectorNEQ applies the NEQ predicate on the "collector" field.
func CollectorNotIn ¶
CollectorNotIn applies the NotIn predicate on the "collector" field.
func EqualVulnID ¶ added in v0.5.0
EqualVulnID applies equality check predicate on the "equal_vuln_id" field. It's identical to EqualVulnIDEQ.
func EqualVulnIDEQ ¶ added in v0.5.0
EqualVulnIDEQ applies the EQ predicate on the "equal_vuln_id" field.
func EqualVulnIDIn ¶ added in v0.5.0
EqualVulnIDIn applies the In predicate on the "equal_vuln_id" field.
func EqualVulnIDNEQ ¶ added in v0.5.0
EqualVulnIDNEQ applies the NEQ predicate on the "equal_vuln_id" field.
func EqualVulnIDNotIn ¶ added in v0.5.0
EqualVulnIDNotIn applies the NotIn predicate on the "equal_vuln_id" field.
func HasVulnerabilityA ¶ added in v0.5.0
HasVulnerabilityA applies the HasEdge predicate on the "vulnerability_a" edge.
func HasVulnerabilityAWith ¶ added in v0.5.0
func HasVulnerabilityAWith(preds ...predicate.VulnerabilityID) predicate.VulnEqual
HasVulnerabilityAWith applies the HasEdge predicate on the "vulnerability_a" edge with a given conditions (other predicates).
func HasVulnerabilityB ¶ added in v0.5.0
HasVulnerabilityB applies the HasEdge predicate on the "vulnerability_b" edge.
func HasVulnerabilityBWith ¶ added in v0.5.0
func HasVulnerabilityBWith(preds ...predicate.VulnerabilityID) predicate.VulnEqual
HasVulnerabilityBWith applies the HasEdge predicate on the "vulnerability_b" edge with a given conditions (other predicates).
func Justification ¶
Justification applies equality check predicate on the "justification" field. It's identical to JustificationEQ.
func JustificationContains ¶
JustificationContains applies the Contains predicate on the "justification" field.
func JustificationContainsFold ¶
JustificationContainsFold applies the ContainsFold predicate on the "justification" field.
func JustificationEQ ¶
JustificationEQ applies the EQ predicate on the "justification" field.
func JustificationEqualFold ¶
JustificationEqualFold applies the EqualFold predicate on the "justification" field.
func JustificationGT ¶
JustificationGT applies the GT predicate on the "justification" field.
func JustificationGTE ¶
JustificationGTE applies the GTE predicate on the "justification" field.
func JustificationHasPrefix ¶
JustificationHasPrefix applies the HasPrefix predicate on the "justification" field.
func JustificationHasSuffix ¶
JustificationHasSuffix applies the HasSuffix predicate on the "justification" field.
func JustificationIn ¶
JustificationIn applies the In predicate on the "justification" field.
func JustificationLT ¶
JustificationLT applies the LT predicate on the "justification" field.
func JustificationLTE ¶
JustificationLTE applies the LTE predicate on the "justification" field.
func JustificationNEQ ¶
JustificationNEQ applies the NEQ predicate on the "justification" field.
func JustificationNotIn ¶
JustificationNotIn applies the NotIn predicate on the "justification" field.
func Origin ¶
Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.
func OriginContains ¶
OriginContains applies the Contains predicate on the "origin" field.
func OriginContainsFold ¶
OriginContainsFold applies the ContainsFold predicate on the "origin" field.
func OriginEqualFold ¶
OriginEqualFold applies the EqualFold predicate on the "origin" field.
func OriginHasPrefix ¶
OriginHasPrefix applies the HasPrefix predicate on the "origin" field.
func OriginHasSuffix ¶
OriginHasSuffix applies the HasSuffix predicate on the "origin" field.
func OriginNotIn ¶
OriginNotIn applies the NotIn predicate on the "origin" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VulnID ¶ added in v0.5.0
VulnID applies equality check predicate on the "vuln_id" field. It's identical to VulnIDEQ.
func VulnIDNotIn ¶ added in v0.5.0
VulnIDNotIn applies the NotIn predicate on the "vuln_id" field.
func VulnerabilitiesHash ¶ added in v0.5.0
VulnerabilitiesHash applies equality check predicate on the "vulnerabilities_hash" field. It's identical to VulnerabilitiesHashEQ.
func VulnerabilitiesHashContains ¶ added in v0.5.0
VulnerabilitiesHashContains applies the Contains predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashContainsFold ¶ added in v0.5.0
VulnerabilitiesHashContainsFold applies the ContainsFold predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashEQ ¶ added in v0.5.0
VulnerabilitiesHashEQ applies the EQ predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashEqualFold ¶ added in v0.5.0
VulnerabilitiesHashEqualFold applies the EqualFold predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashGT ¶ added in v0.5.0
VulnerabilitiesHashGT applies the GT predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashGTE ¶ added in v0.5.0
VulnerabilitiesHashGTE applies the GTE predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashHasPrefix ¶ added in v0.5.0
VulnerabilitiesHashHasPrefix applies the HasPrefix predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashHasSuffix ¶ added in v0.5.0
VulnerabilitiesHashHasSuffix applies the HasSuffix predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashIn ¶ added in v0.5.0
VulnerabilitiesHashIn applies the In predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashLT ¶ added in v0.5.0
VulnerabilitiesHashLT applies the LT predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashLTE ¶ added in v0.5.0
VulnerabilitiesHashLTE applies the LTE predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashNEQ ¶ added in v0.5.0
VulnerabilitiesHashNEQ applies the NEQ predicate on the "vulnerabilities_hash" field.
func VulnerabilitiesHashNotIn ¶ added in v0.5.0
VulnerabilitiesHashNotIn applies the NotIn predicate on the "vulnerabilities_hash" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the VulnEqual queries.
func ByCollector ¶
func ByCollector(opts ...sql.OrderTermOption) OrderOption
ByCollector orders the results by the collector field.
func ByEqualVulnID ¶ added in v0.5.0
func ByEqualVulnID(opts ...sql.OrderTermOption) OrderOption
ByEqualVulnID orders the results by the equal_vuln_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByJustification ¶
func ByJustification(opts ...sql.OrderTermOption) OrderOption
ByJustification orders the results by the justification field.
func ByOrigin ¶
func ByOrigin(opts ...sql.OrderTermOption) OrderOption
ByOrigin orders the results by the origin field.
func ByVulnID ¶ added in v0.5.0
func ByVulnID(opts ...sql.OrderTermOption) OrderOption
ByVulnID orders the results by the vuln_id field.
func ByVulnerabilitiesHash ¶ added in v0.5.0
func ByVulnerabilitiesHash(opts ...sql.OrderTermOption) OrderOption
ByVulnerabilitiesHash orders the results by the vulnerabilities_hash field.
func ByVulnerabilityAField ¶ added in v0.5.0
func ByVulnerabilityAField(field string, opts ...sql.OrderTermOption) OrderOption
ByVulnerabilityAField orders the results by vulnerability_a field.
func ByVulnerabilityBField ¶ added in v0.5.0
func ByVulnerabilityBField(field string, opts ...sql.OrderTermOption) OrderOption
ByVulnerabilityBField orders the results by vulnerability_b field.